Simplest way to run 2 queries invoked by a form?
- From: Jeremy <newspostings@xxxxxxxxxxxxxx>
- Date: Wed, 17 Aug 2005 08:32:08 +0100
Here's the requirement.
User needs to be able to enter 2 items of data onto a form and press a
button. The code behind the button needs to check that both fields have
a valid entry (one is a pick list of values 1-3 the other is a date) and
then execute 2 SQL statements.
1) do i put the sql statements into individual queries?
2) presuming I use the "on click" method on the button, how would I code
references to the two fields on the orm?
3) within the sql, how do I refer to values of the two fields on the
form?
This is part of a voluntary project - not my area of expertise at all,
so appreciate some simple code examples or pointers to where I can get a
primer in how to do this elementary stuff with Access.
BTW it is Access 2003.
TIA
--
jeremy
.
- Follow-Ups:
- Re: Simplest way to run 2 queries invoked by a form?
- From: John Vinson
- Re: Simplest way to run 2 queries invoked by a form?
- Prev by Date: Re: pass form field to subform?
- Next by Date: Re: table query......
- Previous by thread: Context help from forms
- Next by thread: Re: Simplest way to run 2 queries invoked by a form?
- Index(es):