|
-
April 25th, 2005, 09:01 PM
#2
Re: Help! Synchronizing Two Fields (DAO)...
Do you mean table A and B vs field A and B?
On the addition part are there records that are in table A that are not in table B that you want to move over?
Select * from Table A WHERE FieldA NOT IN (Select Field B From TableB)
do while not rst.eof
'Insert record code here....
rst.movenext
loop
You can do the deletion pretty easy with a query...
Delete from TableB Where Fieldb NOT IN (Select FieldA From TableA)
Not exactly sure if that is what you are looking for, because I am not quite understanding the problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|