dbTalk Databases Forums  

Import excel Sheet - Not A Valid Bookmark

comp.databases.ms-access comp.databases.ms-access


Discuss Import excel Sheet - Not A Valid Bookmark in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
paul
 
Posts: n/a

Default Import excel Sheet - Not A Valid Bookmark - 01-26-2009 , 05:51 AM






Hi

I regularly import excel worksheets into my Access 2000 DB using
"File... get external data..." Recently however, every time i try to
import a sheet i get the message "not a valid bookmark" and the file
will not import.

Any ideas what is going wrong here?
Thanks for any suggestions.
Paul

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: Import excel Sheet - Not A Valid Bookmark - 01-26-2009 , 06:34 AM






paul wrote:
Quote:
Hi

I regularly import excel worksheets into my Access 2000 DB using
"File... get external data..." Recently however, every time i try to
import a sheet i get the message "not a valid bookmark" and the file
will not import.

Any ideas what is going wrong here?
Thanks for any suggestions.
Paul
Have you looked at spreadsheet? Are columns heading the same, same
column count, etc?

As a test, can you save the Excel file as a text file, maybe CSV. Then
copy to table struct and attempt to import from the text file into the
new structure? Maybe that will point you to an offending row. Are the
row counts the same?


Reply With Quote
  #3  
Old   
paul
 
Posts: n/a

Default Re: Import excel Sheet - Not A Valid Bookmark - 01-26-2009 , 07:48 AM



I've tried importing the file as a text file into an existing table of
the same structure and am still getting the error. Its strange as the
problem has only started to occur recently.

I have a workaround in that i can import the excel sheet into another
application i use (Mapinfo) and this program will then allow me to
save it directly into the mdb but obviously this is a bit more long
winded/annoying that importing directly!

Cheers for any other ideas!
Paul


On Jan 26, 12:34*pm, Salad <o... (AT) vinegar (DOT) com> wrote:
Quote:
paul wrote:
Hi

I regularly import excel worksheets into my Access 2000 DB using
"File... get external data..." Recently however, every time i try to
import a sheet i get the message "not a valid bookmark" and the file
will not import.

Any ideas what is going wrong here?
Thanks for any suggestions.
Paul

Have you looked at spreadsheet? *Are columns heading the same, same
column count, etc?

As a test, can you save the Excel file as a text file, maybe CSV. *Then
copy to table struct and attempt to import from the text file into the
new structure? *Maybe that will point you to an offending row. *Are the
row counts the same?


Reply With Quote
  #4  
Old   
Salad
 
Posts: n/a

Default Re: Import excel Sheet - Not A Valid Bookmark - 01-26-2009 , 08:06 AM



paul wrote:
Quote:
I've tried importing the file as a text file into an existing table of
the same structure and am still getting the error. Its strange as the
problem has only started to occur recently.

I have a workaround in that i can import the excel sheet into another
application i use (Mapinfo) and this program will then allow me to
save it directly into the mdb but obviously this is a bit more long
winded/annoying that importing directly!

Cheers for any other ideas!
Paul
Well, if you can program...I might take that text file and read it
manually...field by field. Ex:
Dim strFile As String
Dim strLine As String
Open strFile For Input As #1
Do While Not EOF(1) ' Loop until end of file.
Line Input #1, strLine ' Read data line
'now parse out each field and read/append data to recordset
Loop

I wonder if there is some punctuation that isn't expected in the Excel
file or something that confuses the import. That's why I'm thinking is
you can read it line by line and then try to update the table you can
find the line it bombs on.


Quote:

On Jan 26, 12:34 pm, Salad <o... (AT) vinegar (DOT) com> wrote:

paul wrote:

Hi

I regularly import excel worksheets into my Access 2000 DB using
"File... get external data..." Recently however, every time i try to
import a sheet i get the message "not a valid bookmark" and the file
will not import.

Any ideas what is going wrong here?
Thanks for any suggestions.
Paul

Have you looked at spreadsheet? Are columns heading the same, same
column count, etc?

As a test, can you save the Excel file as a text file, maybe CSV. Then
copy to table struct and attempt to import from the text file into the
new structure? Maybe that will point you to an offending row. Are the
row counts the same?



Reply With Quote
  #5  
Old   
robert.waters
 
Posts: n/a

Default Re: Import excel Sheet - Not A Valid Bookmark - 01-26-2009 , 03:41 PM




Quote:
I wonder if there is some punctuation that isn't expected in the Excel
file or something that confuses the import.
In my experience, this is the main reason for importing to fail in
general.
There may be some invalid character in the data (a null or non-
printable), or god forbid a stray accidental delimiter or quote..
You might try trimming the file down to N records, seeing what works.
Like, for a 500 row file, try just the first 5 rows, and if there's no
error, keep going until you find where the problem is.
I am not sure that this would cause an invalid bookmark error though.

Your destination table or database may be corrupted, did you try and
compact/repair?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.