Lanason Registered User. Local time Today, 17:27 Joined Sep 12, 2003 Messages 258 Nov 15, 2012 #1 hi guys, I have a form with 2 fields (Despatch Note Number and Customer Code) on it - I want to check a table to see if a record exists with these 2 fields. Is there a simple bit of code I can use to do this?
hi guys, I have a form with 2 fields (Despatch Note Number and Customer Code) on it - I want to check a table to see if a record exists with these 2 fields. Is there a simple bit of code I can use to do this?
John Big Booty AWF VIP Local time Tomorrow, 04:27 Joined Aug 29, 2005 Messages 8,243 Nov 15, 2012 #2 Re: Records Exisit ?? You could use the DCount() function to check if that combination already exists.
Re: Records Exisit ?? You could use the DCount() function to check if that combination already exists.
Lanason Registered User. Local time Today, 17:27 Joined Sep 12, 2003 Messages 258 Nov 16, 2012 #3 Re: Records Exisit ?? John Big Booty said: You could use the DCount() function to check if that combination already exists. Click to expand... tried that but could not get the syntax working - so I used a select query and counted the number of records found. Also gave me good control over the records selected
Re: Records Exisit ?? John Big Booty said: You could use the DCount() function to check if that combination already exists. Click to expand... tried that but could not get the syntax working - so I used a select query and counted the number of records found. Also gave me good control over the records selected