Message box

K

Kathy

Hi, I am building an Inventory DB. On the form I want to
have a message pop-up when the QtyOnHand drops below 5
pieces. Whats the best approach for doing this. Any help
is very much appreciated.
Regards,
Kathy
 
A

Arvin Meyer

I'd use the OnCurrent event of the form (which fires with each record
change). Create an [Event Procedure] which looks something like this
(aircode):

Sub Form_Current()
If Me.txtQtyOnHand <5 Then
MsgBox "Inventory is less than 5", vbOKOnly, "Low Inventory"
End If
End Sub
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access
 
K

Kathy

Thanks Arvin..appreciate the quick response.
Kathy
-----Original Message-----
I'd use the OnCurrent event of the form (which fires with each record
change). Create an [Event Procedure] which looks something like this
(aircode):

Sub Form_Current()
If Me.txtQtyOnHand <5 Then
MsgBox "Inventory is less than 5", vbOKOnly, "Low Inventory"
End If
End Sub
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access

Hi, I am building an Inventory DB. On the form I want to
have a message pop-up when the QtyOnHand drops below 5
pieces. Whats the best approach for doing this. Any help
is very much appreciated.
Regards,
Kathy


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top