Voltron
Defender of the universe
- Local time
- Today, 10:38
- Joined
- Jul 9, 2009
- Messages
- 77
I have two combo boxes that contain information that needs to match. The combo boxes are Assignment ID and User ID. I have these choices in the combo boxes directly linked to the field in the table where they can be located.
The table that these two need to match up in are in a table for reassigning work. The Assignment ID is an autonumber from its original table and UserID is an actual ID that is typed in in the originating table.
I would like to make it so that the user must make sure that the Assignment ID that is chosen matches up with the User ID that is chosen.
I tried making it so that the user can view both columns in the drop-down list in the combo box and so that the input is bound to the correct column, but when my code...
If comboAssignmentID <> comboUserID Then
MsgBox ("Your Assignment ID and UserID do not match. Please double check this.")
End
End If
... is executed it always gives me the error message. I assume this is because it is storing a number in the Assignment ID and a different ID (anything consisting of alpha-numerics for up to 10 characters) in User ID.
Any ideas on how I can fix this/get this to work?
The table that these two need to match up in are in a table for reassigning work. The Assignment ID is an autonumber from its original table and UserID is an actual ID that is typed in in the originating table.
I would like to make it so that the user must make sure that the Assignment ID that is chosen matches up with the User ID that is chosen.
I tried making it so that the user can view both columns in the drop-down list in the combo box and so that the input is bound to the correct column, but when my code...
If comboAssignmentID <> comboUserID Then
MsgBox ("Your Assignment ID and UserID do not match. Please double check this.")
End
End If
... is executed it always gives me the error message. I assume this is because it is storing a number in the Assignment ID and a different ID (anything consisting of alpha-numerics for up to 10 characters) in User ID.
Any ideas on how I can fix this/get this to work?