By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,783 Members | 1,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,783 IT Pros & Developers. It's quick & easy.

Check whether records exist in Access table

P: 14
Can somebody help me? How do I know if records in Table1 are also in Table2, using VB6 code?

For example:

If Table1 has 1111 in column1 and also Table2 has 1111 in column2
msgox "Existing record in Table2"
else
msgbox "No record in Table2"
Dec 28 '07 #1
Share this Question
Share on Google+
1 Reply


debasisdas
Expert 5K+
P: 8,127
you need to pass the value of table1 and check the same in table2 using COUNT().

if count returns more than 0 then the data exists else does not exist.
Dec 28 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.