Linking fields on a form

Ekly

New Member
Joined
Jan 13, 2004
Messages
3
I'm making a form where a user can add people to a class. The fields on the form are CID (persons ID), First Name(person's first name), LastName (peron's last name), ClassName (name of the class), and Paid (amount they paid for the class). There's a button I put on the form that inserts the selected data into an enrollment table. The CID field is hidden to the user.

I have 2 questions:

1) I want to combine the FirstName and LastName fields together, so when you pull the drop down list it is displayed as "Last, First" and sorted ascending by last name. How do I do this?

2) How can I link the CID and name fields together so that when the name is selected, the CID field changes and displays the correct CID?

Thanks in advance; any help would be greatly appreciated.

Kyle
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,221,680
Messages
6,161,251
Members
451,692
Latest member
jmaskin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top