Hi.
I have some VBA that has been working for a long time, but has suddenly decided to stop!
The following steps are run via vba:
- open a table
- filter for a specific record
- copy that record
- Paste append record into a temporary table (and close original table)
- run a query which pastes the records in the temporary table back into the original table with one of the primary key fields changed. (Rev is changed to Rev + 1)
This was working fine, but for some reason, now it misses off information from some of the fields (i.e. Title is blank). I can't see any patern, and when i carry out the steps manually (rather than through the vba) it works fine.
I thought it might be that the records were too big to paste in time before the query is run, so I added a pause to the code after the paste append but that seemed to make it worse.
To add to the quandry... it only happens to some records! I carried out this 'up-rev' procedure to a test record we have and it worked ok, but when I later tried to do it to a real record (which happened to be larger - could that cause it?) it didnt work.
Any suggestions would be greatly appreciated!
Thank you
I have some VBA that has been working for a long time, but has suddenly decided to stop!
The following steps are run via vba:
- open a table
- filter for a specific record
- copy that record
- Paste append record into a temporary table (and close original table)
- run a query which pastes the records in the temporary table back into the original table with one of the primary key fields changed. (Rev is changed to Rev + 1)
This was working fine, but for some reason, now it misses off information from some of the fields (i.e. Title is blank). I can't see any patern, and when i carry out the steps manually (rather than through the vba) it works fine.
I thought it might be that the records were too big to paste in time before the query is run, so I added a pause to the code after the paste append but that seemed to make it worse.
To add to the quandry... it only happens to some records! I carried out this 'up-rev' procedure to a test record we have and it worked ok, but when I later tried to do it to a real record (which happened to be larger - could that cause it?) it didnt work.
Any suggestions would be greatly appreciated!
Thank you