R
R Tanner
Any ideas what is wrong with the following with statement? I have
been coding ASP.NET pages in C# for the past several weeks so coming
back to VB in Access 2007 is really kinda throwing me off. I'm trying
to figure out the equivalent of myInt = (int)MyComm.executeScalar();
in VB and stuff...
With RS
.ActiveConnection = CurrentProject.Connection
.Open ("SELECT Date FROM dbo_Data WHERE DT = #" & Forms!
[UpdateRecord]![Date] & "# AND Scope = '" & Forms![UpdateRecord]!
[Scope] & "' AND " &
"Department = '" & Forms![UpdateRecord]![Dept] &
"';",currentproject.Connection)
If .Fields(0) = Null Then
MsgBox "False"
Else
MsgBox "True"
End If
End With
Thanks guys for your help...
been coding ASP.NET pages in C# for the past several weeks so coming
back to VB in Access 2007 is really kinda throwing me off. I'm trying
to figure out the equivalent of myInt = (int)MyComm.executeScalar();
in VB and stuff...
With RS
.ActiveConnection = CurrentProject.Connection
.Open ("SELECT Date FROM dbo_Data WHERE DT = #" & Forms!
[UpdateRecord]![Date] & "# AND Scope = '" & Forms![UpdateRecord]!
[Scope] & "' AND " &
"Department = '" & Forms![UpdateRecord]![Dept] &
"';",currentproject.Connection)
If .Fields(0) = Null Then
MsgBox "False"
Else
MsgBox "True"
End If
End With
Thanks guys for your help...