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

Returning a Value back from an MS Access Function in VB Script

Status
Not open for further replies.

yamyam

MIS
Jul 3, 2002
19
0
1
GB
I am trying to use the returned code from a function in MS Access to determine what futher events i need to act upon with my vb script code.

set accessapp = createobject("access.application")
accessapp.run "GetCurrentPrice"

GetCurrentPrice returns the current price of an item

if > 50 then
....
endif

 
Like this ?
myCurPrice = accessapp.Run("GetCurrentPrice")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top