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

When moving to new Data Entry record, make certain fields same as prev 1

Status
Not open for further replies.

pdbowling

Programmer
Mar 28, 2003
267
US
Hi all.
I have a form that autostarts at 'New Record', so it starts out blank except for default values in the table design. I would like to have a 'Next' Button that goes to the next new record and autofills certain fields with the same data that was just entered in the previous record (most of the data entry is done in related batches so some fields remain the same for a long while). Any suggestions on how to accomplish this?
Thanks everyone.
PB
 
there are servel other options but the way I find the easiest is to utilize the default value propery to your advantage

in each fields you want to carry over after update event place code something like

Me.fieldname.DefaultValue = "'" & Me.fieldname.value & "'"

for a date field change the ' to a #
Me.fieldname.DefaultValue = "#" & Me.fieldname.value & "#"

will not carry over when a new form is opened
good luck



 
gol4
Worked perfectly for me, have a star!

JR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top