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

Duplicate field(s) from previous record?

Status
Not open for further replies.

Panchdara

Programmer
Nov 28, 2008
3
BM
I have a fishing entries database. Members submit catches and an Angler may have multiple entries on same date. How to populate the [Angler] and [DateCaught] fields based on the just inserted record? ie, I'm trying to autofill the fields based on the previous record that was inserted? AND, I need to make sure that if entering the very first record in that session that these fields are filled with blank data.

Makes sense.

Oh.. just joined this forum. I hope to learn and participate in a very constructive way.

Hugh
 
Use the AfterUpdate event of the relevant controls to set the default value property:

[tt]Me!SomeControl.DefaultValue = "=" & Chr(34) & Me!SomeControl.Value & Chr(34)[/tt]
 
Do both you and mcongdon go to the same school?
 
Works like a champ.... I saw mcongdons' question and I was shocked and amused! Great minds...! :)

Ciao
 
Great! Welcome to the forums, wander around, learn, enjoy, read the FAQs :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top