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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Visual Basic from an update query

Status
Not open for further replies.

texan1956

IS-IT--Management
Mar 26, 2001
4
US
As a new user of Access I need to do two things: 1) create a function, 2) run the function from my update query. I'm pretty sure I can create the function as a module, but how do I call the module from my query?
 
What does the function do?

Ordinarily you place it in hte query grid just as you would use Now() or Iif(...) or Cint([x]).


Dave
 
Hi,

Create the module, write the function in the module.

In your query use a calculated field to call the function like:

Coast: GetCoast([CityName])

where Coast is my calculated field, GetCoast() is my function, and CityName is a field in the query.

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top