skippypower
Registered User.
- Local time
- Today, 14:44
- Joined
- Jan 6, 2012
- Messages
- 10
Hi Everyone,
Kinda new to VBA and been lurking on here and learnt a lot already.
OK ... i have 2 forms:
TestForm1
TestForm2
In TestForm1 i have a text box called TextBox1 and Button called Button1. im trying to open TestForm2 when u click Button1 and go to the record in TextBox1. The priamary record in TestForm2 is ID.
All i seem to be getting is enter parameter value box!!! what am i doing wrong?? i have tryed a number of diffrent things; brackets in diffrent places, me.TextBox1, commers in diffrent places.... nothing seems to be working. Nightmare!
Private Sub Button1_Click()
DoCmd.OpenForm "TestForm2", , , "ID = TextBox1"
End Sub
Kinda new to VBA and been lurking on here and learnt a lot already.
OK ... i have 2 forms:
TestForm1
TestForm2
In TestForm1 i have a text box called TextBox1 and Button called Button1. im trying to open TestForm2 when u click Button1 and go to the record in TextBox1. The priamary record in TestForm2 is ID.
All i seem to be getting is enter parameter value box!!! what am i doing wrong?? i have tryed a number of diffrent things; brackets in diffrent places, me.TextBox1, commers in diffrent places.... nothing seems to be working. Nightmare!
Private Sub Button1_Click()
DoCmd.OpenForm "TestForm2", , , "ID = TextBox1"
End Sub