p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   SQL Language (http://p2p.wrox.com/forumdisplay.php?f=100)
-   -   Check for items with low values (http://p2p.wrox.com/showthread.php?t=42195)

adias May 5th, 2006 02:01 PM

Check for items with low values
Hi all

I am using this forum because nobody uses the VBA forum and since this question is very similar to other forums, I hope that someone will read this one and give me some assistance.

How can you condition whether a form needs to be pop up or not when you start Access?

I have a table with three fields, Part No, Qty in Stock, Reorder Level.

What I want to do is to pop up a form listing the Part No of the products that needs to be reordered when I open the application in Access. That is, if the Qty in Stock field is less than the Reorder Level field for that record, I want to write that record to a form when I start Access. Of course, if all the products doesn't meet this criteria, meaning that the Qty in Stock is not LESS than the Reorder Level field, then the form should not Pop Up.

This is not specificially applied to Access, but may be for other databases. In other words, the logic is the same whether you work in Access, DB2 or SQL.

I simply could not find out how to condition this at run time. Remember that Access does NOT support triggers.

Any ideas would be welcome.


(443) 386-7960

All times are GMT -4. The time now is 12:22 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.