Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use VBA function in WHERE clause

Status
Not open for further replies.

jwstockwell

Programmer
Sep 21, 1999
13
US
Can you use a VBA function in a WHERE clause - either in query designer and run it immed or using ado/dao in immed window ?

I want to :

UPDATE mytable SET field1 = "JANE" WHERE iseven(mytable.idnumber)

TIA
 
Why don't you try it and then report back on your findings :)


Hint :-
I'm expecting a positive report.


G LS
 
I get an undefined function error when I try it in the query designer - should i try immed window?
 
Make it a Public function in the standards module and Access should be able to find it any place in the application.
 
Thanks - Finally got it when I switched to the SQL view and watched what happened in design view when I coded the query - I was trying to put 'iseven(idnumber) = TRUE' in the criteria for field1 - hahaha - the where clause was pretty funky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top