Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QDefs return different results

Status
Not open for further replies.

lrfcbabe

Programmer
Jul 19, 2001
108
US
Private Function Get_Query(QName As String)
Dim Q As QueryDef
Dim db As Database
Dim rs As Recordset
Set db = DBEngine.Workspaces(0).OpenDatabase(strDBname)
Set Q = db.QueryDefs(QName)
Set rs = Q.OpenRecordset()
Set frmMain.Data1.Recordset = rs
End Function

this QDef function when run from VB6 only returns about half of the records that it does if i had run it from Access. Any suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top