Re: Default values in queries
- From: "Jeff Boyce" <JeffBoyce_IF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Jan 2006 07:08:05 -0800
Ian
Queries are ... SQL statements. An alternative to running a query is
running a procedure with the SQL statement in it. Note that you can modify
the SQL string to include the fields and values you now use field defaults
to set.
Another approach might be to create functions that "gather" that information
from the form's fields, and use those functions to come up with the query's
field values. An example might be (untested aircode):
Function ThisUser() as String
ThisUser = Forms!YourFormName!YourUserField
End Function
--
Regards
Jeff Boyce
<Office/Access MVP>
"NoviceIan" <NoviceIan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2F55177B-823D-4EDA-8C11-ABD109433F18@xxxxxxxxxxxxxxxx
> Hi,
>
> We have a staff database with primitive user level security which
basically
> consists of several fields that default to the user's initials and stamp
the
> time that the record was created/updated.
>
> This works fine for us using forms however when records are updated using
> queries we do not currently capture this information. How can we
configure
> the queries to capture this information?
>
> Ian
.
- Prev by Date: Re: Default values in queries
- Next by Date: Re: Is Null and Is Not Null for criteria
- Previous by thread: Re: Default values in queries
- Next by thread: Re: Is Null and Is Not Null for criteria
- Index(es):
Relevant Pages
|