D
David
This will take a little bit of explaining but I'm sure there is a very simple
explanation so please bear with me:
As part of a business operation for a charity I am doing some volunteer work
for, we need to be able to copy data from an Access data sheet and paste it
into a web form.
This has been working well until recently. We found that not all the
records were being imported by the web form correctly and it appears this is
because when Access does the copying it copies each record a bit differently.
The problem seems to be with a mobile number field which contains numbers
but is a text data type in the table.
When I copy this field (by selecting in the Access data sheet) and using
Ctrl + C and then paste into Notepad, I get mixed results like this:
Mobile
" 0274 863 000"
" 0274 111099"
" 0274 12345"
" 41 79 2222272"
021 0345 888
021 3336441
021 02 980 777
So some of the mobile numbers get pasted with quotes around them and some
don't. And the thing is when I look at the data in my forms and in the
underlying table the mobile numbers look exactly the same i.e. there doesn't
appear to be any leading or trailing spaces or anything like that.
Another clue may be that when I open the underlying table and sort a->Z on
the mobile field, they sort in a nonsensical alpahnumeric order. And then if
I select the column copy and paste into Notepad, all the records with mobile
numbers with quotes around them are at the top (seen as first in the
ascending order) for some reason and then all the others without quotes
follow.
Note that there are definitely no quotes in the actual data in Access,
they're added when I copy and paste - to some of the values???!! Most
unusual.
Can anybody help?
The problem is the web form I'm pasting into can't handle the quotes.
explanation so please bear with me:
As part of a business operation for a charity I am doing some volunteer work
for, we need to be able to copy data from an Access data sheet and paste it
into a web form.
This has been working well until recently. We found that not all the
records were being imported by the web form correctly and it appears this is
because when Access does the copying it copies each record a bit differently.
The problem seems to be with a mobile number field which contains numbers
but is a text data type in the table.
When I copy this field (by selecting in the Access data sheet) and using
Ctrl + C and then paste into Notepad, I get mixed results like this:
Mobile
" 0274 863 000"
" 0274 111099"
" 0274 12345"
" 41 79 2222272"
021 0345 888
021 3336441
021 02 980 777
So some of the mobile numbers get pasted with quotes around them and some
don't. And the thing is when I look at the data in my forms and in the
underlying table the mobile numbers look exactly the same i.e. there doesn't
appear to be any leading or trailing spaces or anything like that.
Another clue may be that when I open the underlying table and sort a->Z on
the mobile field, they sort in a nonsensical alpahnumeric order. And then if
I select the column copy and paste into Notepad, all the records with mobile
numbers with quotes around them are at the top (seen as first in the
ascending order) for some reason and then all the others without quotes
follow.
Note that there are definitely no quotes in the actual data in Access,
they're added when I copy and paste - to some of the values???!! Most
unusual.
Can anybody help?
The problem is the web form I'm pasting into can't handle the quotes.