D
Dominic
Here is the general problem:
Information is taken from a form (consisting of text boxes, drop down
lists et cetera) and submitted to an Access database. Before the data
is inserted into the database, trailing and leading spaces are removed
using a call to the Trim()function.
This works the first time data is inserted into the database. However,
if the data is modified (via web forms) and then resubmitted (after
calling the Trim() function) an extra leading space (occasionally two)
is randomly inserted.
For example,
I enter info for the following variables:
NAME: ' Bill'
AGE: ' 20 '
The Access database looks like this:
NAME: 'Bill'
AGE: '20'
I then edit the record in the database, changing the name to 'Peter'
and age to '30':
NAME: ' Peter '
AGE: ' 30 '
The Access database then looks like this:
NAME: ' Peter'
Age: ' 30'
OR
sometimes like this:
NAME: ' Peter'
AGE: '30'
It appears to be total random, anyone have any suggestions?
Information is taken from a form (consisting of text boxes, drop down
lists et cetera) and submitted to an Access database. Before the data
is inserted into the database, trailing and leading spaces are removed
using a call to the Trim()function.
This works the first time data is inserted into the database. However,
if the data is modified (via web forms) and then resubmitted (after
calling the Trim() function) an extra leading space (occasionally two)
is randomly inserted.
For example,
I enter info for the following variables:
NAME: ' Bill'
AGE: ' 20 '
The Access database looks like this:
NAME: 'Bill'
AGE: '20'
I then edit the record in the database, changing the name to 'Peter'
and age to '30':
NAME: ' Peter '
AGE: ' 30 '
The Access database then looks like this:
NAME: ' Peter'
Age: ' 30'
OR
sometimes like this:
NAME: ' Peter'
AGE: '30'
It appears to be total random, anyone have any suggestions?