mactheknife
Registered User.
- Local time
- Today, 23:58
- Joined
- Jan 6, 2014
- Messages
- 12
Hullo there Guru's.
Had a quick look for this as I thought it'd be quite a common problem but can't seem to find a soloution.
I have 2 tables.
tblOrderType
tblArea
On my form I have two list boxes: An Order Type List box, and an Area Listbox.
What query criteria or VBA code would I use so that I could populate a text box with the relevant order number based on the selections of the list boxes. i.e. MaintenanceOrder & Area Z would display MaintenanceOrderNoZ
Any help would be much appreciated as I have no idea the best way forward.
Had a quick look for this as I thought it'd be quite a common problem but can't seem to find a soloution.
I have 2 tables.
tblOrderType
1 - Maintenance Order
2 - Breakdown Order
3 - Greasing Order
tblArea
1 - AreaX - MaintenanceOrderNoX - BreakdownOrderNoX - GreasingOrdernoX
2 - AreaY - MaintenanceOrderNoY - BreakdownOrderNoY - GreasingOrdernoY
3 - AreaZ - MaintenanceOrderNoZ - BreakdownOrderNoZ - GreasingOrdernoZ
On my form I have two list boxes: An Order Type List box, and an Area Listbox.
What query criteria or VBA code would I use so that I could populate a text box with the relevant order number based on the selections of the list boxes. i.e. MaintenanceOrder & Area Z would display MaintenanceOrderNoZ
Any help would be much appreciated as I have no idea the best way forward.