To anyone who can help,
On the "Purchase Info" form you can type in various info about the purchase. Also, I want to have a button that will open another form called "Purchase Status". On this form I will enter information such as whether it has been paid already.
Now, what I want is when I click on that button it will open the "Purchase status" for that specific purchase. However, if the status has not been entered yet, it should open a new blank "Purchase Status" form.
I've tried doing it by using the following where condition:
Forms![Puchase Status]![Purchase #]=Forms![Purchase Info]![Purchase #]
However, when I use this condition it will open a complete white form with nothing on it when there's no "purchase status" info for that specific purchase. It should open a new blank form so I can enter the purchase status.
Please help me fix this problem. If you are explaining using VB script, please write the whole code as I am not that great in VB.
Let me know if you need more info as well.
Thanks,
Stupiet
On the "Purchase Info" form you can type in various info about the purchase. Also, I want to have a button that will open another form called "Purchase Status". On this form I will enter information such as whether it has been paid already.
Now, what I want is when I click on that button it will open the "Purchase status" for that specific purchase. However, if the status has not been entered yet, it should open a new blank "Purchase Status" form.
I've tried doing it by using the following where condition:
Forms![Puchase Status]![Purchase #]=Forms![Purchase Info]![Purchase #]
However, when I use this condition it will open a complete white form with nothing on it when there's no "purchase status" info for that specific purchase. It should open a new blank form so I can enter the purchase status.
Please help me fix this problem. If you are explaining using VB script, please write the whole code as I am not that great in VB.
Let me know if you need more info as well.
Thanks,
Stupiet