J
Jeff Freilich
Hi All
I have a way I am dong this but I know there has to be a better/
different way:
I have the following on a form:
Textbox - txt1
ListBox - lst1
lst1 recordssource = SELECT tblProjects.ProjectID,
tblProjects.ProjectClientID FROM tblProjects WHERE
((tblProjects.ProjectClientID) Like [Forms]![frmMain].[txtClientID]));
lst1 recordsouce returns a list of records and I refresh the listcount
of lst1 to txt1 when I want to get the number of records from the
query.
What I want is a way to find the count without using the listbox - I
can write the new SQL query:
SELECT Count(tblProjects.ProjectID) AS CountOfProjectID,
tblProjects.ProjectClientID FROM tblProjects
GROUP BY tblProjects.ProjectClientID HAVING
(((tblProjects.ProjectClientID) Like [Forms]![frmMain].
[txtClientID]));
I just dont know how to actually get this SQL to run and to get this
information and extract the 1 record that this new query into txt1
I hope I explained everything well - if not please let me know
Thanks for our help
Jeff
I have a way I am dong this but I know there has to be a better/
different way:
I have the following on a form:
Textbox - txt1
ListBox - lst1
lst1 recordssource = SELECT tblProjects.ProjectID,
tblProjects.ProjectClientID FROM tblProjects WHERE
((tblProjects.ProjectClientID) Like [Forms]![frmMain].[txtClientID]));
lst1 recordsouce returns a list of records and I refresh the listcount
of lst1 to txt1 when I want to get the number of records from the
query.
What I want is a way to find the count without using the listbox - I
can write the new SQL query:
SELECT Count(tblProjects.ProjectID) AS CountOfProjectID,
tblProjects.ProjectClientID FROM tblProjects
GROUP BY tblProjects.ProjectClientID HAVING
(((tblProjects.ProjectClientID) Like [Forms]![frmMain].
[txtClientID]));
I just dont know how to actually get this SQL to run and to get this
information and extract the 1 record that this new query into txt1
I hope I explained everything well - if not please let me know
Thanks for our help
Jeff