I'm really just beginning creating forms in Access 2007, and I'm trying to get a form to open with customer information if I click on the Customer's name in a list box.
Here is what the lookup query is:
SELECT msm_customers_extended.id AS ID, UCase([filed_name]) AS [Customer Name], UCase([address1]) & " " & UCase([address2]) AS Address
FROM msm_customers_extended
ORDER BY UCase([filed_name]);
So I have the bound column set to "1", and the Control Source set to "Customer ID". I have a macro under the double click event set to:
Action: OpenForm Arguments:
- Form Name: Customer Detail
- View: Form
- Filter Name: (Blank)
- Where Condition: [ID] = [Customer ID]
- Data Mode: (Blank)
- Window Mode: Dialog
When I test it out, I get an input box saying "Customer ID", so I'm assuming I'm not grabbing the ID from my list box. How do I get the ID from the list to link to my 2nd form that I'm trying to open?
ORDER BY UCase([filed_name])toORDER BY [filed_name], since case doesn't matter. - David-W-Fenton