jaji2000
12-18-2003, 04:18 PM
Why doesn't this work????
'Checks to see if data in MakeTable
strSQL = "SELECT * from [T_Audit_MakeTable]"
recMakeTable.Open strSQL, cnnRetDtbse, adOpenDynamic, adLockOptimistic
If recMakeTable.RecordCount < 1 Then
Beep
MsgBox "No records available for the selected month.", vbOKOnly
Screen.MousePointer = vbDefault '
Unload Me
Exit Sub
End If
'''I keep getting a -1 for recordcount even though I know that the table has records. No matter what I've tried, I get -1.....WHY??? :huh:
Please help....Thanks :D
'Checks to see if data in MakeTable
strSQL = "SELECT * from [T_Audit_MakeTable]"
recMakeTable.Open strSQL, cnnRetDtbse, adOpenDynamic, adLockOptimistic
If recMakeTable.RecordCount < 1 Then
Beep
MsgBox "No records available for the selected month.", vbOKOnly
Screen.MousePointer = vbDefault '
Unload Me
Exit Sub
End If
'''I keep getting a -1 for recordcount even though I know that the table has records. No matter what I've tried, I get -1.....WHY??? :huh:
Please help....Thanks :D