S
Synergy
I want my form to open up to a blank record, so I assigned the RecordSource
property to a record in a dummy table with no data. My intention is to have
the Recordsource become assigned when the user selects a record from a
Combobox. I reassign the Recordsource then the code uses the DAO find
method to bring the selected record up. I am getting a problem however
Dimming the Recordsource to the recordsetclone. Here is the Code snippet in
the AfterUpdate event of the ComboBox:
If Me.RecordSource = "" Or IsNull(Me.RecordSource) Or Me.RecordSource =
"Order Entry Header Blank" Then
Me.RecordSource = "SELECT [Order Entry Header].*, Customers.Custcode,
DateDiff('d',[ordDate],Date()) AS Days FROM [Order Entry Header] LEFT
JOIN Customers ON [Order Entry Header].ordCustID = Customers.Custid WHERE
(((DateDiff('d',[ordDate],Date()))<=" & [DaySet] & ")) ORDER BY
[Order Entry Header].ordJob;"
[TabCtl23].Enabled = True
End If
'Remove Filter/Sort if it is on
If Me.FilterOn = True Then
Me.FilterOn = False
End If
Dim rs As Recordset
The Code then Bombs on the Dim rs line above The error is "Object Doesn't
support this property or method"
Any ideas on how to get around this? I tried requerying the recordsetclone
before dimming the recordset.
God Bless,
Mark A. Sam
property to a record in a dummy table with no data. My intention is to have
the Recordsource become assigned when the user selects a record from a
Combobox. I reassign the Recordsource then the code uses the DAO find
method to bring the selected record up. I am getting a problem however
Dimming the Recordsource to the recordsetclone. Here is the Code snippet in
the AfterUpdate event of the ComboBox:
If Me.RecordSource = "" Or IsNull(Me.RecordSource) Or Me.RecordSource =
"Order Entry Header Blank" Then
Me.RecordSource = "SELECT [Order Entry Header].*, Customers.Custcode,
DateDiff('d',[ordDate],Date()) AS Days FROM [Order Entry Header] LEFT
JOIN Customers ON [Order Entry Header].ordCustID = Customers.Custid WHERE
(((DateDiff('d',[ordDate],Date()))<=" & [DaySet] & ")) ORDER BY
[Order Entry Header].ordJob;"
[TabCtl23].Enabled = True
End If
'Remove Filter/Sort if it is on
If Me.FilterOn = True Then
Me.FilterOn = False
End If
Dim rs As Recordset
The Code then Bombs on the Dim rs line above The error is "Object Doesn't
support this property or method"
Any ideas on how to get around this? I tried requerying the recordsetclone
before dimming the recordset.
God Bless,
Mark A. Sam