P
Patrick
HI!!
I would like to know if I can send the results presently
stored in one of my recordSets to a ListBox.
Here's my code:
number = Text1.Value
Set qd = db.QueryDefs![replaceWojoForOrderNumberInMedical]
qd.Parameters![Prnbr] = number
Set rs = qd.OpenRecordset()
' here I've put my 'qd' in a recordSet to check
RecordCount.
cpt = rs.RecordCount
If cpt = 0 Then
MsgBox "No data was found for this number: " & number
& ",try again!"
Text1.Value = Null
Text1.SetFocus
Else
lrep.RowSource = rs 'list box
end if
'lrep' being my listbox. CAN it be done.Perhaps you see
another way of doing things.PLEASE HELP!!
thanx in advance
PAtrick
I would like to know if I can send the results presently
stored in one of my recordSets to a ListBox.
Here's my code:
number = Text1.Value
Set qd = db.QueryDefs![replaceWojoForOrderNumberInMedical]
qd.Parameters![Prnbr] = number
Set rs = qd.OpenRecordset()
' here I've put my 'qd' in a recordSet to check
RecordCount.
cpt = rs.RecordCount
If cpt = 0 Then
MsgBox "No data was found for this number: " & number
& ",try again!"
Text1.Value = Null
Text1.SetFocus
Else
lrep.RowSource = rs 'list box
end if
'lrep' being my listbox. CAN it be done.Perhaps you see
another way of doing things.PLEASE HELP!!
thanx in advance
PAtrick