Re: Help with code to run query and test a field in the record
From: tina (nospam_at_address.com)
Date: 04/30/04
- Next message: Allen Browne: "Re: Count Based on Date"
- Previous message: Dennis: "SQL in Report"
- In reply to: Van T. Dinh: "Re: Help with code to run query and test a field in the record"
- Next in thread: Van T. Dinh: "Re: Help with code to run query and test a field in the record"
- Reply: Van T. Dinh: "Re: Help with code to run query and test a field in the record"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 02:20:44 GMT
hi Van.
Kate did post the SQL, in a separate thread 3:59 pm this date, subject line:
I'm struggling with my limited knowledge of code.
i posted an answer, but maybe you'll come up with something better on
looking at it?
tina :)
"Van T. Dinh" <VanThien.Dinh@discussions.microsoft.com> wrote in message
news:%23aqTudlLEHA.1264@TK2MSFTNGP12.phx.gbl...
> Post the SQL String of your QueryAv.
>
> Do you use Parameters in this Query?
>
> If you do, you need to resolve the Parameters before passing to JET for
> processing.
>
> --
> HTH
> Van T. Dinh
> MVP (Access)
>
>
> "Kate" <anonymous@discussions.microsoft.com> wrote in message
> news:61d301c42e37$2268f7c0$a401280a@phx.gbl...
> > Tried the following and get the message too few parameters
> > expected 3. The following statement gets highlighted:
> >
> > Set rs = db.OpenRecordset("QueryAv")
> >
> > Any idea? Thanks
> >
> >
> > Dim db As DAO.Database
> > Dim rs As DAO.Recordset
> >
> > Set db = CurrentDb()
> > Set rs = db.OpenRecordset("QueryAv")
> >
> > If rs![Booking ID] = 1 Then
> > DoCmd.OpenForm "SINGLE BOOKING DETAIL"
> > End If
> >
> > rs.Close : Set rs = Nothing
> > Set db = Nothing
> >
> >
> > >MVP [MS Access]
> >
>
>
- Next message: Allen Browne: "Re: Count Based on Date"
- Previous message: Dennis: "SQL in Report"
- In reply to: Van T. Dinh: "Re: Help with code to run query and test a field in the record"
- Next in thread: Van T. Dinh: "Re: Help with code to run query and test a field in the record"
- Reply: Van T. Dinh: "Re: Help with code to run query and test a field in the record"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|