G
Guest
I've been searching this group for days looking for an answer that exactly
fits my problem. I sure hope some of you fine people can help me.
Access2003
Two of the fields in one table- CustStreetNumber and CustAddress - contain
the number and name of a street. I originally had these set as the PK to
avoid duplicates but now they want duplicates to be allowed but they want a
pop-up warning so they can check the other address to see if it's the same
job. I know how to create the msgbox with VB. *I know enough VB to usually
break things and cause problems*
The real problem is that I can't figure out how to check this scenario in
the table. I have experimented with Dlookup to no avail - I'm sure Microsoft
couldn't make that syntax more complicated! I've seen some examples using a
combination of Dlookup and DCount but I believe I burned some brain cells
reading them. I can create a query to find these duplicates. I just keep
hitting a wall bringing it all together. The answer is probably simple but I
feel like I am too close to figure it out!
How do you make two fields an optional unique index with a msgbox to prompt?
Thanks in advance.
fits my problem. I sure hope some of you fine people can help me.
Access2003
Two of the fields in one table- CustStreetNumber and CustAddress - contain
the number and name of a street. I originally had these set as the PK to
avoid duplicates but now they want duplicates to be allowed but they want a
pop-up warning so they can check the other address to see if it's the same
job. I know how to create the msgbox with VB. *I know enough VB to usually
break things and cause problems*
The real problem is that I can't figure out how to check this scenario in
the table. I have experimented with Dlookup to no avail - I'm sure Microsoft
couldn't make that syntax more complicated! I've seen some examples using a
combination of Dlookup and DCount but I believe I burned some brain cells
reading them. I can create a query to find these duplicates. I just keep
hitting a wall bringing it all together. The answer is probably simple but I
feel like I am too close to figure it out!
How do you make two fields an optional unique index with a msgbox to prompt?
Thanks in advance.