OK, I have a form with a dop down box on it that allows me to pick other people in a registration table to list them as a roommate. The events looks like this:
If Nz(Me.Roommate, 0) > 0 Then
strSQL = "UPDATE Registration SET RoomMate = " _
& Me.RecNumber & " WHERE RecNumber = " & Roommate
DoCmd.SetWarnings (False) 'turn off wanring prompt
DoCmd.RunSQL strSQL
DoCmd.SetWarnings (True) 'turn warnings back on
End If
and the row source is:
SELECT Registration.RecNumber, [First name] & " " & [last Name] AS [Full name]
FROM Registration;
On this form i also have a sub form that allows me to register a guest of that person. This is a one to one relationship in the same table, just like the roommate field is.
When I register a person as a guest, they do not appear in the roommate combo box. What is going on here?
If Nz(Me.Roommate, 0) > 0 Then
strSQL = "UPDATE Registration SET RoomMate = " _
& Me.RecNumber & " WHERE RecNumber = " & Roommate
DoCmd.SetWarnings (False) 'turn off wanring prompt
DoCmd.RunSQL strSQL
DoCmd.SetWarnings (True) 'turn warnings back on
End If
and the row source is:
SELECT Registration.RecNumber, [First name] & " " & [last Name] AS [Full name]
FROM Registration;
On this form i also have a sub form that allows me to register a guest of that person. This is a one to one relationship in the same table, just like the roommate field is.
When I register a person as a guest, they do not appear in the roommate combo box. What is going on here?