I am using this code in an Access database to have a command button (stop sign) appear if there are any records in a specific query. (queried by <Date()).
If Nz(DCount("*", "OTP-2 StopError"
, 0) > 0 Then
cmdOTP2SE.Visible = True
OTP2.Visible = False
Else
cmdOTP2SE.Visible = False
OTP2.Visible = True
End If
I have the same structure on an html page that has command buttons that call data access page with the queries. I'm at a loss, this is not my area, I usually just put the databases together. Will this code work with asp and can it perform the same function?
Thanks for any help Annalyst
If Nz(DCount("*", "OTP-2 StopError"
cmdOTP2SE.Visible = True
OTP2.Visible = False
Else
cmdOTP2SE.Visible = False
OTP2.Visible = True
End If
I have the same structure on an html page that has command buttons that call data access page with the queries. I'm at a loss, this is not my area, I usually just put the databases together. Will this code work with asp and can it perform the same function?
Thanks for any help Annalyst