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 Mike Lewis 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 in table to number that equals current recordset 1

Status
Not open for further replies.

cstringer

MIS
Nov 9, 2003
32
0
0
US
Hello all,

I have a form to enter info into a table called "Database". In this table there is a field called "ID" (Data Type: Number). Is there a way I can set the value of this field to equal the current recordset number by using one of the events on the data entry form?

Thanks!
 
You can use the Form_current event:

Me.ID = Me.CurrentRecord

-Gary
 
Worked great! Knew it was something simple, but I guess you can look at something too long and go brain dead.
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top