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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filling in related data

Status
Not open for further replies.

brbarto

Technical User
Sep 6, 2001
34
I am trying to use the following:

Private Sub AdjustmentDate_AfterUpdate()
Me!TransactionDate = Me!AdjustmentDate
End Sub

I would like to have today’s date as the default for AdjustmentDate; however, if the default is used, the TransactionDate doesn’t get updated. Is there a solution to my problem?

Thanks, NewToAccess, BB
 
Put the the default value for the AdjustmentDate to be Date() and the the default value for TranzactionDate to be AdjustmentDate.Value

 
The reason it doesn't get updated is that the AfterUpdate event doesn't fire when a default is accepted. I agree with bagheera's solution... Terry M. Hoey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top