I am attempting to create the following form:
- Invoice Number: (Required, Auto Number, Invoice table and enterable)
- Date: (Required, Invoice table and Enterable)
- Customer (Unbound and Display only – Passed from Prior form)
- Address (Unbound Display Only – Passed from Prior form)
Sub Form (where the problems are):
- ID - Invoice Item Table, Auto Number and want to hide it
- Invoice Number - Invoice Item Table, Copied from above and want to hide it
- Item Code - Invoice Item Table, will get from next field and want to hide it
- Item Code Combo Box to select Item Code. Here is the select statement:
SELECT [Item Code].ID, [Item Code].[Item Code], [Item Code].Description
FROM [Item Code]
ORDER BY [Item Code].[Item Code];
- Description - Unbound, Display Only and Code is put in via the On-Change event on the combo.
Description = DLookup("[Description ]", "Item Code", "[ID] = " & Me!ItemCode)
Here is a picture of my subform with 1 row entered:
ID Invoice Number Item Code Item Code Combo Description
3 50 9 3157 Light Bulb
New 50 Light Blub
My problems:- ID, Invoice and Item code will not be hidden. I have changed the visible, locked and enabled priorities to be No. They are still Display only.
- When I add a new Item Code (via the combo) you can see the second line entered.
- I would like to have the Item Code combo copy the value over to the Item code Field. The number is the ID from the Item Code Table.
If you got this far I applaud you. Any and all help on this is appreciated.
Thanks!