S
Smouch Com
i am trying to call a VBscript that works in 2000 but not in 2003 because
its all changed and its saying that DAO.QueryDb and DAO.RecordSet is
undefined.
Private Sub Form_Current()
If Me.[Case ID] Then
Dim rs As DAO.Recordset
Dim qry As DAO.QueryDef
Set qry = CurrentDb.CreateQueryDef("", "select Date, LastName, [Case
Id], from [Case table] where Case ID=" & Str(Me..[Case ID]))
Set rs = qry.OpenRecordset
With rs
.MoveFirst
Me.text15 = !LastDate
End With
End If
its all changed and its saying that DAO.QueryDb and DAO.RecordSet is
undefined.
Private Sub Form_Current()
If Me.[Case ID] Then
Dim rs As DAO.Recordset
Dim qry As DAO.QueryDef
Set qry = CurrentDb.CreateQueryDef("", "select Date, LastName, [Case
Id], from [Case table] where Case ID=" & Str(Me..[Case ID]))
Set rs = qry.OpenRecordset
With rs
.MoveFirst
Me.text15 = !LastDate
End With
End If