I know it is strictly not acceptable from a purists point of view...(Here comes the BIG BUT!).
BUT
I have two queries, that work fully...
Week.week just specifies a list of "increments" not including weekends.
"2" will be a foreign key in the following table, as will service_ID and "week" is just a text input.
I understand Cartesian Products and why they happen and could be useful but I simply want to take A, B and D from one query and slide C in from another. They are completely unrelated though and do not share similar fields, so sorry no UNION SELECT either!
The table I need to fill from the gathered data has [Allocation_ID] (AutoNo), [Duty_ID] (from 2nd query), [Service_ID] (from 2nd query), [Date] (from 1st query) and [Day] (from 2nd query).
Last bit of info is that I have never used VB (Visual Basic) and would like to avoid it if at all possible. I am doing this as a project/degree thing so altering tables and stuff is fine as long as I can back my reasons.
Please help.
BUT
I have two queries, that work fully...
Code:
[FONT=Century Gothic][FONT=Century Gothic]SELECT (DateSerial(Year(Now()),(Month(Now())+1),1)+week) AS [Date][/FONT]
[FONT=Century Gothic]FROM Week;[/FONT]
[/FONT]
Week.week just specifies a list of "increments" not including weekends.
Code:
[FONT=Century Gothic][FONT=Century Gothic]SELECT "2", Service_ID, "Week"[/FONT]
[FONT=Century Gothic]FROM 2IC_Week;[/FONT]
[/FONT]
"2" will be a foreign key in the following table, as will service_ID and "week" is just a text input.
I understand Cartesian Products and why they happen and could be useful but I simply want to take A, B and D from one query and slide C in from another. They are completely unrelated though and do not share similar fields, so sorry no UNION SELECT either!
The table I need to fill from the gathered data has [Allocation_ID] (AutoNo), [Duty_ID] (from 2nd query), [Service_ID] (from 2nd query), [Date] (from 1st query) and [Day] (from 2nd query).
Last bit of info is that I have never used VB (Visual Basic) and would like to avoid it if at all possible. I am doing this as a project/degree thing so altering tables and stuff is fine as long as I can back my reasons.
Please help.
Last edited: