W
Wayne-I-M
Hi All
I am importing a FP database (after clients have input data) onto a simple
access database.
BUT – mad little commas are appearing in “some†of the form fields.
You can see it for yourself (fill in the forms then submit) if you view
source on the next page you will see the commas (just on some forms) – go to
the bottom of the form : hidden fields.
When filling in the text boxes on this form
http://www.folgarida.co.uk/Page_Room3_booking2.asp
The result is this
value="wayne, "
Note that there is a space after the name and “most irritating†there is a
comma.
But when filling in the same form (I have just deleted one of the tables to
make the 3rd room not there)
http://www.folgarida.co.uk/Page_Room2_booking2.asp
The result is this
value="wayne"
Note that there is no space after the name and “most important†there is no
comma.
Does anyone know where the comma is coming from. The commas will mess up
the path to the field in access (If I left them where they are)
Of course I can easily get rid of the commas and spaces on the first import
into access by adding this to the import table append
SELECT Replace([tblImportAppend ]![FieldName],",","") AS New
FROM tblImportAppend;
This would be run on the tblImportAppend (note the path is wrong on this
code as I’m using a memory stick to test this ….. E:\SkiBookingDetails.mdb
Private Sub HideImportNewButon_Click()
Dim WayneIMPfile As TableDef
For Each WayneIMPfile In CurrentDb.TableDefs
If WayneIMPfile.Name = "tblImportAppend" Then
CurrentDb.TableDefs.Delete WayneIMPfile.Name
End If
Next
DoCmd.TransferDatabase acImport, "Microsoft Access", "
E:\SkiBookingDetails.mdb ", acTable, "Results", "tblImportAppend"
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryImportAppend"
DoCmd.SetWarnings True
CurrentDb.TableDefs.Delete "tblImportAppend"
Me.HideImportOnLineBookingsSubForm.Requery
End Sub
So I “can†get rid of the commas – but does anyone know “why†they would
appear.
Thank you
I am importing a FP database (after clients have input data) onto a simple
access database.
BUT – mad little commas are appearing in “some†of the form fields.
You can see it for yourself (fill in the forms then submit) if you view
source on the next page you will see the commas (just on some forms) – go to
the bottom of the form : hidden fields.
When filling in the text boxes on this form
http://www.folgarida.co.uk/Page_Room3_booking2.asp
The result is this
value="wayne, "
Note that there is a space after the name and “most irritating†there is a
comma.
But when filling in the same form (I have just deleted one of the tables to
make the 3rd room not there)
http://www.folgarida.co.uk/Page_Room2_booking2.asp
The result is this
value="wayne"
Note that there is no space after the name and “most important†there is no
comma.
Does anyone know where the comma is coming from. The commas will mess up
the path to the field in access (If I left them where they are)
Of course I can easily get rid of the commas and spaces on the first import
into access by adding this to the import table append
SELECT Replace([tblImportAppend ]![FieldName],",","") AS New
FROM tblImportAppend;
This would be run on the tblImportAppend (note the path is wrong on this
code as I’m using a memory stick to test this ….. E:\SkiBookingDetails.mdb
Private Sub HideImportNewButon_Click()
Dim WayneIMPfile As TableDef
For Each WayneIMPfile In CurrentDb.TableDefs
If WayneIMPfile.Name = "tblImportAppend" Then
CurrentDb.TableDefs.Delete WayneIMPfile.Name
End If
Next
DoCmd.TransferDatabase acImport, "Microsoft Access", "
E:\SkiBookingDetails.mdb ", acTable, "Results", "tblImportAppend"
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryImportAppend"
DoCmd.SetWarnings True
CurrentDb.TableDefs.Delete "tblImportAppend"
Me.HideImportOnLineBookingsSubForm.Requery
End Sub
So I “can†get rid of the commas – but does anyone know “why†they would
appear.
Thank you