Dachande11
Registered User.
- Local time
- Today, 21:11
- Joined
- May 1, 2001
- Messages
- 41
I have a list box and I want to set the record source within VBA using SQL.
I have a query and its SQL code, what I would like to know is if the SQL code I have got can be used as I would like or if it cannot, what can I do to change this? Thanks to anyone who can help. The code is as follows;
SELECT [C/PTable].Description, Sum(ROVER1DT.[1999]) AS Qty
FROM ROVER1DT INNER JOIN [C/PTable] ON ROVER1DT.[C/P] = [C/PTable].Code
WHERE (((ROVER1DT.[Dealer Code])=[forms]![dealerparc]![dummy]) AND ((ROVER1DT.[Model Range]) Like [forms]![dealerparc]![model]))
GROUP BY [C/PTable].Description, ROVER1DT.[C/P]
ORDER BY ROVER1DT.[C/P];
Thanks
Mark
I have a query and its SQL code, what I would like to know is if the SQL code I have got can be used as I would like or if it cannot, what can I do to change this? Thanks to anyone who can help. The code is as follows;
SELECT [C/PTable].Description, Sum(ROVER1DT.[1999]) AS Qty
FROM ROVER1DT INNER JOIN [C/PTable] ON ROVER1DT.[C/P] = [C/PTable].Code
WHERE (((ROVER1DT.[Dealer Code])=[forms]![dealerparc]![dummy]) AND ((ROVER1DT.[Model Range]) Like [forms]![dealerparc]![model]))
GROUP BY [C/PTable].Description, ROVER1DT.[C/P]
ORDER BY ROVER1DT.[C/P];
Thanks
Mark