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

Updating using Function

Status
Not open for further replies.

hongbin81

Technical User
Jul 4, 2003
61
KR
I have a function that I made in Modules called modFunc...

fGetCost([Date],[Time],[Duration])

This function results in indicating a Cost according to Date, Time and Duration.

I need to update ALL RECORDS using this function.

Is there a way of applying this function using update query to update all records in my table?

I tried using this
UPDATE YourTable
SET FieldYouWantToUpdate=fGetCost([Date],[Time],[Duration]);

But it didn't work and this is driving me nuts.
What am I doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top