Hi All,
Having a little trouble here. What I am trying to do is take the value entered by a user and compare it to data in a table, which will then pop up a message box that tells them the data is already there and to please use a different Asset number.
For example:
Form Template opens up. The users enters in a Asset number, the number is then compared to a seperate table. If the Asset number does not exsist, it enters it as a new record. If it does already exsists, it prompts them to enter a different number.
I have the insertion part working but not the if already exsists part. Anyone have a idea what is the best way to do this?
Info:
Form "frmTemplate" with a field named "Asset" then checks my table "tblMainU" field "Asset_tag_new_Current" to see if it is already there. If it does exsist, it will tell them that and go back to the Asset Field. If it does not it enters it as a new record onto "tblMainU".
Thank you for any help and or ideas,
ScorpioX
Having a little trouble here. What I am trying to do is take the value entered by a user and compare it to data in a table, which will then pop up a message box that tells them the data is already there and to please use a different Asset number.
For example:
Form Template opens up. The users enters in a Asset number, the number is then compared to a seperate table. If the Asset number does not exsist, it enters it as a new record. If it does already exsists, it prompts them to enter a different number.
I have the insertion part working but not the if already exsists part. Anyone have a idea what is the best way to do this?
Info:
Form "frmTemplate" with a field named "Asset" then checks my table "tblMainU" field "Asset_tag_new_Current" to see if it is already there. If it does exsist, it will tell them that and go back to the Asset Field. If it does not it enters it as a new record onto "tblMainU".
Thank you for any help and or ideas,
ScorpioX