T
Tom
Using Access 2002, I am using the following code to set the source for a
subform
Dim strSQL As String
strSQL = "SELECT * From UnInvStockQ"
Me![StockSub].Form.RecordSource = ""
Me![StockSub].Form.RecordSource = strSQL
That works OK.
What I want to achieve is to use DCount to count the number of records found
and for that number to be shown on the main form
Any advice would be appreciated
tom
subform
Dim strSQL As String
strSQL = "SELECT * From UnInvStockQ"
Me![StockSub].Form.RecordSource = ""
Me![StockSub].Form.RecordSource = strSQL
That works OK.
What I want to achieve is to use DCount to count the number of records found
and for that number to be shown on the main form
Any advice would be appreciated
tom