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!

Open up a form based on another forms record 1

Status
Not open for further replies.

wbwillson

Technical User
Oct 7, 2002
52
GB
I'm trying to open a form whose ID needs to be based on another forms ID number. I thought something like

Dim strWhere As String

strWhere = "[FORM1ID]=" & me!FORM2ID

DoCmd.OpenForm frmNamesEntry, acNormal, , strWhere

But this doesn't work...I just need Form2 to go to whatever record I'm currently on in Form1 any help would be greatly appreciated.

Bill
 
On strwhere try using
strwhere=me("form1ID")
Life's a journey enjoy the ride...

jazzz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top