mission2java_78
12-03-2002, 10:29 AM
I have the following:
Function FileSynced(fname As String) As Long
On Error GoTo Handle_It
Dim db As Database
Dim rs As Recordset
Dim arrFileArray() As String
Dim strFileString As String 'file name without path
arrFileArray = Split(fname, "\", , vbTextCompare)
strFileString = arrFileArray(UBound(arrFileArray))
Dim strTable As String
strTable = "tblFiles"
Set db = CurrentDb
Set rs = db.OpenRecordset(strTable)
Right when I hit set rs = db.openrecordset(strTable)
I get an error message as a type mismatch...not sure why I always open recordsets like this...
Jon
Function FileSynced(fname As String) As Long
On Error GoTo Handle_It
Dim db As Database
Dim rs As Recordset
Dim arrFileArray() As String
Dim strFileString As String 'file name without path
arrFileArray = Split(fname, "\", , vbTextCompare)
strFileString = arrFileArray(UBound(arrFileArray))
Dim strTable As String
strTable = "tblFiles"
Set db = CurrentDb
Set rs = db.OpenRecordset(strTable)
Right when I hit set rs = db.openrecordset(strTable)
I get an error message as a type mismatch...not sure why I always open recordsets like this...
Jon