Epsilon101
Programmer
Me!TxtUserID = Me!TxtUserID & ", " & Me!CboxUserName
TxtUserId is the unique identifier for each member of a team, and looks like this example = J3L.
CboxUserName is a combo box with 2 columns, first is the ID J3L and the second is the users full name.
The code above is used in an after update command. Where you look through the CboxUserName combo box for the right user, select them and the code above adds that to a text box.
I end up with the text box showing something like this:
J3L, L2H, T1S
It can then be used in an SQL filter on a report, except it will not work because i think i need quotes around each ID.
Does anyone know how to add quotes around these IDs without giving an error and asking for the parameter??
---------------------------------------
When im awake, i dont want to sleep, and when im asleep i dont want to wake.
TxtUserId is the unique identifier for each member of a team, and looks like this example = J3L.
CboxUserName is a combo box with 2 columns, first is the ID J3L and the second is the users full name.
The code above is used in an after update command. Where you look through the CboxUserName combo box for the right user, select them and the code above adds that to a text box.
I end up with the text box showing something like this:
J3L, L2H, T1S
It can then be used in an SQL filter on a report, except it will not work because i think i need quotes around each ID.
Does anyone know how to add quotes around these IDs without giving an error and asking for the parameter??
---------------------------------------
When im awake, i dont want to sleep, and when im asleep i dont want to wake.