T
TonyT
Hi,
I have the following code in the on_Open event of a form opened from another
form;
If IsLoaded("frmCustInfo1") Then
lngCRefNum = [Forms]![frmCustInfo1].[CID]
strSQLRecSrc = "SELECT * FROM tblCont WHERE ContCRefNum = " &
lngCRefNum & ""
Me.RecordSource = strSQLRecSrc
How can I find how many records, if any, fill the criteria? eg if 0 then i
will make form data entry, if 1 I will default to data entry = false if more
than 1 then I can add further code.
thanks in advance.
I have the following code in the on_Open event of a form opened from another
form;
If IsLoaded("frmCustInfo1") Then
lngCRefNum = [Forms]![frmCustInfo1].[CID]
strSQLRecSrc = "SELECT * FROM tblCont WHERE ContCRefNum = " &
lngCRefNum & ""
Me.RecordSource = strSQLRecSrc
How can I find how many records, if any, fill the criteria? eg if 0 then i
will make form data entry, if 1 I will default to data entry = false if more
than 1 then I can add further code.
thanks in advance.