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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get query Data???

Status
Not open for further replies.

cppiston

Programmer
Feb 27, 2002
23
0
0
US
Private Sub TextJobID_LostFocus()

Dim stRunCheck As String
stRunCheck = "qryJobID_Check"

DoCmd.OpenQuery stRunCheck, acViewNormal, acEdit



Dim inJobID As Integer
Dim inCheckResult As Integer

inJobID = Forms!frmOP2.TextJobID
inCheckResult = ??????????? <<<This is for
the result of
qryJobID_Check

If (inJobID <> inCheckResult) Then MsgBox &quot;Job not Found!&quot;

Question: How can I get the data retrieved by the query and assign it to inCheckResult, so I can compare the two...

Or, does anyone have a better Idea???

Thanks....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top