I have completed a project in Access 2K and I have 'converted to a prior version' ie Access 97 using the wizard. In doing this I have encountered an error whilst using a section DAO record search :-
Dim Rs1 As New ADODB.Recordset
Dim cnn As ADODB.Connection
Dim StrSQL, StrDteA As String
Dim DteLow(6) As Date
Dim IntA, IntB, IntC As Integer
'start search
Set Rs1 = New ADODB.Recordset
Set cnn = CurrentProject.Connection
my program errors out on the last line above with the CurrentProject highlited.
It works fine in 2K so is there any way I can emulate the CurrentProject connection ?? to make it run in '97.
Maybe I'm just missing a refference, but the object browser doesn't pick it up !
Steady ...![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Dim Rs1 As New ADODB.Recordset
Dim cnn As ADODB.Connection
Dim StrSQL, StrDteA As String
Dim DteLow(6) As Date
Dim IntA, IntB, IntC As Integer
'start search
Set Rs1 = New ADODB.Recordset
Set cnn = CurrentProject.Connection
my program errors out on the last line above with the CurrentProject highlited.
It works fine in 2K so is there any way I can emulate the CurrentProject connection ?? to make it run in '97.
Maybe I'm just missing a refference, but the object browser doesn't pick it up !
Steady ...
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)