antonyx
Arsenal Supporter
- Local time
- Today, 13:52
- Joined
- Jan 7, 2005
- Messages
- 556
i have 3 tables..
tblJob
tblPerson
tblPlace
ids are linked in the following way
http://www.londonheathrowcars.com/3tablelayout.jpg
once the booker id and passenger id fields are populated on the job entry form, i want my 'JobFrom' and 'JobTo' drop downs to be populated with places previously visited by either the booker or customer.
i will set the rowsource of the drop down OnEnter but i cant quite get my head around the sql..
i imagine it will resemble something like this..
any ideas?
tblJob
tblPerson
tblPlace
ids are linked in the following way
http://www.londonheathrowcars.com/3tablelayout.jpg
once the booker id and passenger id fields are populated on the job entry form, i want my 'JobFrom' and 'JobTo' drop downs to be populated with places previously visited by either the booker or customer.
i will set the rowsource of the drop down OnEnter but i cant quite get my head around the sql..
i imagine it will resemble something like this..
Code:
SELECT [tblPlace].[PlaceID], [tblPlace].[Place] FROM [tblPlace]
where that place is used in a job record....
WHERE [tblJob].[fkBookerID] =" & Me.txtbooker & " OR [tblJob].[fkPassengerID] =" & Me.txtpassenger & "
any ideas?