Triscuit
Registered User.
- Local time
- Today, 12:40
- Joined
- Jul 20, 2010
- Messages
- 27
I have searched for this for a while and I think I've come up with maybe an idea of how to do it.
I have a form for a Sample where one field takes in an auto-number userID for which ever person received the sample. The auto-number userID comes from a linked table name tblUsers that along with the PK auto-number userID has fields for the First Name, M Initial and Last Name.
When the user uses the form I would rather they see a concatenated version of the FName, MInitial and LName instead of a non descriptive auto-number userID.
On the data entry form I changed it to a combo box with the row source set as a query for the concatenated full name but this cannot be used because of the RI link to the tblUsers.userID and the Full name is not a number.
The most recent idea I've had is to use an update query where I update the record.
UPDATE
tblSample INNER JOIN tblUsers on tblSample.userID = tblUsers.userID
SET tblSample.userID = tblUsers.userID
WHERE tblUsers.txtFName AND " " AND tblUsers.txtMInitial AND " " AND tblUsers.LName = Me.cboFullName
where cboFullName is a combo box on the form with the rowsource set to a query concatenation of the user's Name.
Any ideas, I'm stumped.
I have a form for a Sample where one field takes in an auto-number userID for which ever person received the sample. The auto-number userID comes from a linked table name tblUsers that along with the PK auto-number userID has fields for the First Name, M Initial and Last Name.
When the user uses the form I would rather they see a concatenated version of the FName, MInitial and LName instead of a non descriptive auto-number userID.
On the data entry form I changed it to a combo box with the row source set as a query for the concatenated full name but this cannot be used because of the RI link to the tblUsers.userID and the Full name is not a number.
The most recent idea I've had is to use an update query where I update the record.
UPDATE
tblSample INNER JOIN tblUsers on tblSample.userID = tblUsers.userID
SET tblSample.userID = tblUsers.userID
WHERE tblUsers.txtFName AND " " AND tblUsers.txtMInitial AND " " AND tblUsers.LName = Me.cboFullName
where cboFullName is a combo box on the form with the rowsource set to a query concatenation of the user's Name.
Any ideas, I'm stumped.