oohmygod831
Registered User.
- Local time
- Today, 20:57
- Joined
- Feb 16, 2005
- Messages
- 43
not sure how to get my database to do what i need.
i have a form that uses cascading combos to filter records before they are entered on a form. When the last combo box has had its value selected i need something like an AfterUpdate event to either trigger vba.
i need a simple calculation performed and depending on the results of that calculation either display a message and clear the current record or save the current record.
using vba i had thought along these lines:
Dim bkValue As String
Dim facStock As String
Dim totStock As String
bkValue = "Select Booked_Value from tblBooked"
facStock = "Select Factory_Stock from tblTool"
totStock = facStock + bkValue
if totStock <1
then "Display Error Message"
clear current record
Endif
i am very new to this and i am trying to get my head around vba any help pointing me in the right direction would be great.
i have a form that uses cascading combos to filter records before they are entered on a form. When the last combo box has had its value selected i need something like an AfterUpdate event to either trigger vba.
i need a simple calculation performed and depending on the results of that calculation either display a message and clear the current record or save the current record.
using vba i had thought along these lines:
Dim bkValue As String
Dim facStock As String
Dim totStock As String
bkValue = "Select Booked_Value from tblBooked"
facStock = "Select Factory_Stock from tblTool"
totStock = facStock + bkValue
if totStock <1
then "Display Error Message"
clear current record
Endif
i am very new to this and i am trying to get my head around vba any help pointing me in the right direction would be great.