R
Robin Chapple
I have a table of suburbs and postcodes where I use a combo box to
select the suburb which is them stored in my database.
I am attempting to store the postcode field as well.
This is the code:
Private Sub cboSuburb_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[PostCode] = '" & Me![cboSuburb] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
The PostCode field is a long integer number in each database and I get
the error message:
"Type mismatch"
What have I done wrong?
Thanks,
Robin Chapple
select the suburb which is them stored in my database.
I am attempting to store the postcode field as well.
This is the code:
Private Sub cboSuburb_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[PostCode] = '" & Me![cboSuburb] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
The PostCode field is a long integer number in each database and I get
the error message:
"Type mismatch"
What have I done wrong?
Thanks,
Robin Chapple