Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set value of field to be same as last record?

Status
Not open for further replies.

djayam

Technical User
Aug 16, 2005
95
GB
Hi all (again)

I have my Orders subform (Record Source = Orders) within the Customers form. When I add a new order, I want the default Description field value to be the same as the Description field on the last record. Any ideas?

Thanks,

Jason
 
Hi
Maybe:
Code:
Private Sub LastName_AfterUpdate()
Me.[i]Description[/i].DefaultValue = Chr(34) & Me.[i]Description[/i] & Chr(34)
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top