squeakie
10-28-2004, 12:05 AM
:cool:
I need help with this!!!! i have a connection established and all. i am trying to run a query that only returns distinct titles.
Here's an example of how it would look in MS Access
SELECT Customers.ContactTitle, Count(Customers.ContactTitle) AS CountOfContactTitle
FROM Customers INNER JOIN Orders ON Customers.CustomerID=Orders.CustomerID
GROUP BY Customers.ContactTitle
ORDER BY Customers.ContactTitle;
However my problem is that I want to do the same similar thing in vb, although I want it to prompt the user to enter the first letter of the contactTitle in which to search for. Diplsay that information in Excel, and if there are ContactTitles that start with the same letter however they are different, the program should inform the user of the different types of contactTitles available. The user should choose the contactTitle of their choice, and then the program should end. All of this information is coming from a MS db, and the queries performed should be displayed in Excel.If anyone could help me in any way I would greatly appreciate it. Any advice would help.
If anyone know of any other way to do this please let me know.
Thanks
Squeakie
I need help with this!!!! i have a connection established and all. i am trying to run a query that only returns distinct titles.
Here's an example of how it would look in MS Access
SELECT Customers.ContactTitle, Count(Customers.ContactTitle) AS CountOfContactTitle
FROM Customers INNER JOIN Orders ON Customers.CustomerID=Orders.CustomerID
GROUP BY Customers.ContactTitle
ORDER BY Customers.ContactTitle;
However my problem is that I want to do the same similar thing in vb, although I want it to prompt the user to enter the first letter of the contactTitle in which to search for. Diplsay that information in Excel, and if there are ContactTitles that start with the same letter however they are different, the program should inform the user of the different types of contactTitles available. The user should choose the contactTitle of their choice, and then the program should end. All of this information is coming from a MS db, and the queries performed should be displayed in Excel.If anyone could help me in any way I would greatly appreciate it. Any advice would help.
If anyone know of any other way to do this please let me know.
Thanks
Squeakie