chrisjames25
Registered User.
- Local time
- Today, 22:30
- Joined
- Dec 1, 2014
- Messages
- 404
Hi All
First post here and just starting trying to build a stock system at work. Understand a bit about VBA etc form Excel but first project on Access.
Anyhow, my question is this:
1) Is there an accepted method that is best practice for checking that an entry in a textbox on a userform is not duplicating data that already exists in the linked table. FOr example is it is a fastfood table and im adding a new one i dont want to add KFC twice (even though it is finger licking good)
I have seen a method online using dlookup in afterupdate event on the textbox to do this task and i have seen people also say just use the inbuilt "Allow duplicates - No function".
So are either of the above the correct approach or is there a better method.
2)Id dlookup is way to go i have follow up question - Someone i worked with has said that they have read dlookups can be dangerous if there is a chance in the future of moving database to sql. Is this correct?
Thanks in advance for all your help/
First post here and just starting trying to build a stock system at work. Understand a bit about VBA etc form Excel but first project on Access.
Anyhow, my question is this:
1) Is there an accepted method that is best practice for checking that an entry in a textbox on a userform is not duplicating data that already exists in the linked table. FOr example is it is a fastfood table and im adding a new one i dont want to add KFC twice (even though it is finger licking good)
I have seen a method online using dlookup in afterupdate event on the textbox to do this task and i have seen people also say just use the inbuilt "Allow duplicates - No function".
So are either of the above the correct approach or is there a better method.
2)Id dlookup is way to go i have follow up question - Someone i worked with has said that they have read dlookups can be dangerous if there is a chance in the future of moving database to sql. Is this correct?
Thanks in advance for all your help/