On Feb 21, 6:09 pm, Damian S <Dami...@discussions.microsoft.com>
wrote:
> Hi,
>
> How about something like this:
>
> if not isnull(dlookup("FIELDNAME", "TABLENAME", "FIELDNAME = " &
> me.CONTROL)) then
> ' run your sql code
> docmd.runsql "SQL code goes here"
> endif
>
> Damian.
>
>
>
> "zions...@gmail.com" wrote:
> > how do I create a if then statment like this
> > if me."controlname" is in this table where... then run sql
> > else
> > dont run
>
> > anyone can help?
> > thanks- Hide quoted text -
>
> - Show quoted text -
thank you!!! Damian
|