J
Jake O.R.
I am converting a client's program to work with data in an
SQL 2000 database. Previously the data was linked to a separate
Access mdb file. now it is linked via ODBC to SQL 2000.
The following snipet works if the data
is in an Access table but once the table is in SQL the
function left(string, number) stops the Access engine
from even entering the procedure. I put a msgbox "Hi" at the beginning
of the funtion and it did not even come up. I do not get any error msgs it
just does
nothing!
Any Clue??
If Left(Me.CUSTID.Value, 3) = "IDG" Then
Dim valoare2 As String
Dim strDocName2 As String
Dim strWhere2 As String
valoare2 = Me.AR_
MsgBox valoare2
strDocName2 = "REPAIRS REPORTIDG"
strWhere2 = "[ar_no] like '" & valoare2 & "'"
DoCmd.OpenReport strDocName2, acPreview, ,
strWhere2
Else
End If
SQL 2000 database. Previously the data was linked to a separate
Access mdb file. now it is linked via ODBC to SQL 2000.
The following snipet works if the data
is in an Access table but once the table is in SQL the
function left(string, number) stops the Access engine
from even entering the procedure. I put a msgbox "Hi" at the beginning
of the funtion and it did not even come up. I do not get any error msgs it
just does
nothing!
Any Clue??
If Left(Me.CUSTID.Value, 3) = "IDG" Then
Dim valoare2 As String
Dim strDocName2 As String
Dim strWhere2 As String
valoare2 = Me.AR_
MsgBox valoare2
strDocName2 = "REPAIRS REPORTIDG"
strWhere2 = "[ar_no] like '" & valoare2 & "'"
DoCmd.OpenReport strDocName2, acPreview, ,
strWhere2
Else
End If