I am trying to write a SELECT statement to count the InitPW from a table where the PWord is null and the textbox on the form "txtNewPass" is = InitPW but some reaseon this isn't working does anyone see something wrong with the below select statement
Dim sqlText As String
sqlText = "SELECT Count(InitPW) as X FROM tblUser WHERE PWord Is Null" & "And " & "InitPW ='" & txtNewPass & "'"
Thanks in advance!
Dim sqlText As String
sqlText = "SELECT Count(InitPW) as X FROM tblUser WHERE PWord Is Null" & "And " & "InitPW ='" & txtNewPass & "'"
Thanks in advance!