Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - CreateQueries2.mdb (intermediate)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Please consider donating $1 per sample downloaded, (find out why here)

CreateQueries2.mdb (intermediate)

 Post Reply Post Reply
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP

Joined: 20 Feb 2008
Status: Offline
Points: 261
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: CreateQueries2.mdb (intermediate)
    Posted: 01 Aug 2008 at 6:32am

Please consider donating $1 per sample downloaded, find out why here.


This database illustrates several examples of programmatically creating queries.

Form 2: Creates a simple Select query called "qryMyQuery" based on the table GLTable. It uses two criteria and allows you to choose the logical operators "AND" or "OR".

Form2a: Does the same as Form2, but has three criteria.

Form3: Allows you to choose the comparison operators (=, >, Like, etc), the values from combo boxes, and the Logical operator between two criteria.

Form 4: A more flexible version of Form3 with three criteria. Criterias 2 and 3 only become active if a logical operator is chosen. A more complete version of this is in the file CreateQueries4.mdb.

Form 5: Changes the criteria for a report.

Form 6: Uses a multi-select list box
Access 97 (89 KB):
Access 2000 DAO (60 KB):

Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.