G
Guest
Hi
This one's driving me mad.
I am trying to 'copy' a linked table into my database. The table is three
fields: two that are text fields and one that is a number. The first record
is dodgy and has a empty second text field and #Num! instead of a number. I
cannot change these as it's a linked table.
I can't use CopyObject because it just copies the linked table as another
linked table.
I have set up a MakeTable query in which the criteria is Is Not Null for the
blank field and >0 for the number field. This runs OK the first time
(correctly ignoring the dodgy record) but subsequent times it falls over
with a numeric overflow error. If I edit the query in any way and run it
again it runs once correctly and then errors every other time.
I got so frustrated with this that I decided a different approach. I created
a blank table and used a delete query to clear it, followed by an append
query (from the linked table, with the above criteria) to refresh it. The
delete query runs fine every time but the append query only runs once
correctly and then errors every other time!!
Anybody got any ideas of what else I could try?
Thanks!
This one's driving me mad.
I am trying to 'copy' a linked table into my database. The table is three
fields: two that are text fields and one that is a number. The first record
is dodgy and has a empty second text field and #Num! instead of a number. I
cannot change these as it's a linked table.
I can't use CopyObject because it just copies the linked table as another
linked table.
I have set up a MakeTable query in which the criteria is Is Not Null for the
blank field and >0 for the number field. This runs OK the first time
(correctly ignoring the dodgy record) but subsequent times it falls over
with a numeric overflow error. If I edit the query in any way and run it
again it runs once correctly and then errors every other time.
I got so frustrated with this that I decided a different approach. I created
a blank table and used a delete query to clear it, followed by an append
query (from the linked table, with the above criteria) to refresh it. The
delete query runs fine every time but the append query only runs once
correctly and then errors every other time!!
Anybody got any ideas of what else I could try?
Thanks!