P
Peter
Hi all..i am really stucked with this, too most of you a very simple, issue…
In form A I have a text field (search field) and a command button..
On the “Click†event of the command button I want to find related data in a
table and IF the data exists..i want to open Form B with this data…IF not I
want to create a msgbox or open “DoCmd.Open†an additional form that prompts
me for further action…
1. Do I use a Dlookup for the table or ?
Private Sub Command35_Click()
stDocName = “Fruitsâ€
If DCount("*", "Fruits", "[Apples] ='" & Me.Fruits & "'") > 0 Then
DoCmd. OpenForm. stDocname,,,
And then my brain crashes……
Thanks!
In form A I have a text field (search field) and a command button..
On the “Click†event of the command button I want to find related data in a
table and IF the data exists..i want to open Form B with this data…IF not I
want to create a msgbox or open “DoCmd.Open†an additional form that prompts
me for further action…
1. Do I use a Dlookup for the table or ?
Private Sub Command35_Click()
stDocName = “Fruitsâ€
If DCount("*", "Fruits", "[Apples] ='" & Me.Fruits & "'") > 0 Then
DoCmd. OpenForm. stDocname,,,
And then my brain crashes……
Thanks!