B
Bob
Hi there stranger,
I was wondering if you can help!
I have a combo box on formA which has the following code
on its double click event:
***************************************************
Dim s_LkCrit As String
s_LkCrit = "[InvP_ID]=" & Me![InvP_ID]
DoCmd.OpenForm "frm_InvP", acNormal, , s_LkCrit, ,acDialog
***************************************************
When I double click on this combo box in formA, the
frm_InvP form should open on the record where its InvP_ID
field matches the InvP_ID field on the formA(which is the
name of my combo box and also is the name of its first
column).
However at the [DoCmd.OpenForm.....] line, I get a little
window which in its title bar says "Enter parameter
value" where I should enter a value for "InvP_ID". I have
used the above code fragment aproximately 100 times all
over my applications without ever getting this. This is
the first time and I am wondering if there is some
property setting in the frm_InvP that should be set.
Another thing is that the record source for the frm_InvP
form is a query, however, there is only 1 field there.
Output all fields is also set to "yes".
Would you have any ideas why this "Enter parameters
value" window mysteriously comes up!
Thanking you in advance, Bob.
I was wondering if you can help!
I have a combo box on formA which has the following code
on its double click event:
***************************************************
Dim s_LkCrit As String
s_LkCrit = "[InvP_ID]=" & Me![InvP_ID]
DoCmd.OpenForm "frm_InvP", acNormal, , s_LkCrit, ,acDialog
***************************************************
When I double click on this combo box in formA, the
frm_InvP form should open on the record where its InvP_ID
field matches the InvP_ID field on the formA(which is the
name of my combo box and also is the name of its first
column).
However at the [DoCmd.OpenForm.....] line, I get a little
window which in its title bar says "Enter parameter
value" where I should enter a value for "InvP_ID". I have
used the above code fragment aproximately 100 times all
over my applications without ever getting this. This is
the first time and I am wondering if there is some
property setting in the frm_InvP that should be set.
Another thing is that the record source for the frm_InvP
form is a query, however, there is only 1 field there.
Output all fields is also set to "yes".
Would you have any ideas why this "Enter parameters
value" window mysteriously comes up!
Thanking you in advance, Bob.