Hi,
I am developing a database or two and currently they only have access 97 installed. Several of the template databases i have used are access 2000. Rather than going through all my work again i need to be able to add the reference library for DAO in to this database. Is there anywhere i may be able to get a hold of it? Failing that i will have to recode my VB. Please find below the current Access2K code. The code is for a combo box that should a value that is not in the table that the combo box is linked to it will ask to confirm whether the value should be addded to the table.
Private Sub cboTest_NotInList(NewData As String, Response As Integer)
If MsgBox("Do you really want to add this item?", vbQuestion + vbYesNo, sPrgName) = vbYes Then
Dim DB As Database
Dim sSQL As String
sSQL = "INSERT INTO
(FIELD_Name) VALUES(" & Chr(34) & (cboTest.Text) & Chr(34) & "
"
Set DB = CurrentDb
DB.Execute sSQL
DB.Close
Set DB = Nothing
' Continue without displaying default error message.
Response = acDataErrAdded
Else
Response = acDataErrContinue
End If
End Sub
I am developing a database or two and currently they only have access 97 installed. Several of the template databases i have used are access 2000. Rather than going through all my work again i need to be able to add the reference library for DAO in to this database. Is there anywhere i may be able to get a hold of it? Failing that i will have to recode my VB. Please find below the current Access2K code. The code is for a combo box that should a value that is not in the table that the combo box is linked to it will ask to confirm whether the value should be addded to the table.
Private Sub cboTest_NotInList(NewData As String, Response As Integer)
If MsgBox("Do you really want to add this item?", vbQuestion + vbYesNo, sPrgName) = vbYes Then
Dim DB As Database
Dim sSQL As String
sSQL = "INSERT INTO

Set DB = CurrentDb
DB.Execute sSQL
DB.Close
Set DB = Nothing
' Continue without displaying default error message.
Response = acDataErrAdded
Else
Response = acDataErrContinue
End If
End Sub