cath_hopes
10-15-2007, 04:04 AM
Hello again!
I am trying to pass parameters between two forms. The second form opens but not at the record I want because the parameter (Primary key) doesn't seem to be picked up by the second form.
The code from Form1 is:
Dim Num As Integer
Num = Combo17.Value
DoCmd.OpenForm "Property Form", , , "Property.[Property ID] = " & Num
Property Id is the primary key of the second form (Property). Num contains the value of the Property ID selected from combo 17 in Form1.
The second form opens with none of its Property fields populated.
I'd really appreciate some help with this as I've going round in circles for some time now!!
Thanks heaps in advance,
Catherine
I am trying to pass parameters between two forms. The second form opens but not at the record I want because the parameter (Primary key) doesn't seem to be picked up by the second form.
The code from Form1 is:
Dim Num As Integer
Num = Combo17.Value
DoCmd.OpenForm "Property Form", , , "Property.[Property ID] = " & Num
Property Id is the primary key of the second form (Property). Num contains the value of the Property ID selected from combo 17 in Form1.
The second form opens with none of its Property fields populated.
I'd really appreciate some help with this as I've going round in circles for some time now!!
Thanks heaps in advance,
Catherine