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

Open Form and show records based on Autonumber

Status
Not open for further replies.

neepshed

IS-IT--Management
Aug 17, 2002
27
GB
Hi. I want to open a form based on the result of an autonumber for a newly added record.

The form I want to open will be a data sheet with no rows as the autonumber value will not be present in the table.

I have tried DoCmd.OpenForm "frmAssignments", , , "LessonID = AutoNumber"

But it doesnt seem to do what I want.

Any ideas anyone?

Thanks.
 

DoCmd.OpenForm "frmAssignments", , , "LessonID =" & TheAutoNumberHere

Better post in forum702 or forum705
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top