D davey3389 Registered User. Local time Today, 15:44 Joined Jul 16, 2012 Messages 30 Jul 18, 2012 #1 On the Openform option on Macro's what do I need to type in to get my form to open where the "ID" field from "Employee Phone Search" form matche the "ID" field from "Employee Details" form Cheers
On the Openform option on Macro's what do I need to type in to get my form to open where the "ID" field from "Employee Phone Search" form matche the "ID" field from "Employee Details" form Cheers
pbaldy Wino Moderator Staff member Local time Today, 07:44 Joined Aug 30, 2003 Messages 36,272 Jul 18, 2012 #2 If you want to use VBA instead of a macro: http://www.baldyweb.com/wherecondition.htm If you want to stay with the macro, hit F1 while in that option and you should get context sensitive help on the syntax.
If you want to use VBA instead of a macro: http://www.baldyweb.com/wherecondition.htm If you want to stay with the macro, hit F1 while in that option and you should get context sensitive help on the syntax.
D davey3389 Registered User. Local time Today, 15:44 Joined Jul 16, 2012 Messages 30 Jul 18, 2012 #3 F1 didn't seem to help me much But I tried "[ID] =" & [Forms]![Employee Details]![ID] and that did not seem to work
F1 didn't seem to help me much But I tried "[ID] =" & [Forms]![Employee Details]![ID] and that did not seem to work
pbaldy Wino Moderator Staff member Local time Today, 07:44 Joined Aug 30, 2003 Messages 36,272 Jul 18, 2012 #4 In a macro? The syntax is different there, which is why I suggested looking in help.
pbaldy Wino Moderator Staff member Local time Today, 07:44 Joined Aug 30, 2003 Messages 36,272 Jul 18, 2012 #5 My help shows this as the format for a macro: [fieldname] = Forms![formname]![controlname on other form]
My help shows this as the format for a macro: [fieldname] = Forms![formname]![controlname on other form]
D davey3389 Registered User. Local time Today, 15:44 Joined Jul 16, 2012 Messages 30 Jul 18, 2012 #6 When i typed that in, it opened the form but showed no results
pbaldy Wino Moderator Staff member Local time Today, 07:44 Joined Aug 30, 2003 Messages 36,272 Jul 18, 2012 #7 Can you post the db here so we can fix it?