I am trying to get two fields from a table so I can update one of them based on the other.
Set db = CurrentDb
strSQL = "SELECT tblInvoiceDetails.companyid, tblInvoiceDetails.invoiceid " _
& "FROM tblInvoiceDetails WHERE [invoiceid] is null "
Set rs = db.OpenRecordset(strSQL)
CustCnt = rs.RecordCount
When I check CustCnt to see it worked it CustCnt = 1 but my companyid field is null i.e. no records were returned.
any help much appreciated.