sambo
Registered User.
- Local time
- Today, 05:04
- Joined
- Aug 29, 2002
- Messages
- 289
What is wrong with this Sub Procedure?
Private Sub Form_Open(Cancel As Integer)
Dim whichSet As String
whichSet = "SELECT tblHistory.Comment, tblRma.SerialNum, tblRma.RmaID " & _
"FROM tblRma INNER JOIN tblHistory ON tblRma.RmaID = tblHistory.RmaID " & _
"WHERE (tblRma.SerialNum)=" & commentOpener.finalSerial '![Comment Form]![serialHolder]))"
Set Me.Recordset = whichSet
Call fillRecords(Me.Recordset, Me.SerialHolder)
End Sub
I am trying to resest the Recordset Dynamically upon entry to the form.
[commentOpener.finalSerial] is a global variable that I get from the function that calls the Form to Open.
I get the error "Object Required". Probably syntax w/ my Recordset statement.
Private Sub Form_Open(Cancel As Integer)
Dim whichSet As String
whichSet = "SELECT tblHistory.Comment, tblRma.SerialNum, tblRma.RmaID " & _
"FROM tblRma INNER JOIN tblHistory ON tblRma.RmaID = tblHistory.RmaID " & _
"WHERE (tblRma.SerialNum)=" & commentOpener.finalSerial '![Comment Form]![serialHolder]))"
Set Me.Recordset = whichSet
Call fillRecords(Me.Recordset, Me.SerialHolder)
End Sub
I am trying to resest the Recordset Dynamically upon entry to the form.
[commentOpener.finalSerial] is a global variable that I get from the function that calls the Form to Open.
I get the error "Object Required". Probably syntax w/ my Recordset statement.