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

Run macro when cretin criteria is met

Status
Not open for further replies.

Greg25

Technical User
May 30, 2001
159
US
I have a table inventory

I guess this would have to be done from a query
Create query when stock [on hand] is =< 10000
Would like to run macro send mail

Is this possible?
Greg

K & G Design
kgdesign@warwick.net

 
dlookup() or dsum() would also accomplish this. I would put it in the forms after insert event

if dsum(&quot;[stockonhand]&quot;,&quot;yourtable&quot;,&quot;stocknum = &quot;& me.stocknum) > 10000 then
do this
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top