G
Guest
This is probably a simple question, but how do I keep the defined value for a
variable and use it in another form?
I have a variable named 'PartNoToAdd' that is set in one form when the given
'PartNo' is not in the 'Inventory' Table. (Set PartNoToAdd = Me.PartNo) I
then open a form that asks if the user would like to add the part to
inventory with two buttons 'Yes' and 'No'. The 'Yes' button opens a 'AddInv'
Form where there is a combo box that I want to auto-fill with the given
'PartNoToAdd'. I can get it to set the variable correctly, but when I call
it again in the 'AddInv' Form, it is empty.
I've tried declaring it in the 'general declarations' and tried setting it
with both 'Public' and 'Static' according to the help files, but it always
come up empty.
Any ideas?
Thanks in advance for any help!
Parker
variable and use it in another form?
I have a variable named 'PartNoToAdd' that is set in one form when the given
'PartNo' is not in the 'Inventory' Table. (Set PartNoToAdd = Me.PartNo) I
then open a form that asks if the user would like to add the part to
inventory with two buttons 'Yes' and 'No'. The 'Yes' button opens a 'AddInv'
Form where there is a combo box that I want to auto-fill with the given
'PartNoToAdd'. I can get it to set the variable correctly, but when I call
it again in the 'AddInv' Form, it is empty.
I've tried declaring it in the 'general declarations' and tried setting it
with both 'Public' and 'Static' according to the help files, but it always
come up empty.
Any ideas?
Thanks in advance for any help!
Parker