Hi all,
I am using word to create several forms that use bookmarks. I then use VBA in Access to export the data to the appropriate form in word.
My problem is the SSN and Telephone fields lose formating in the word bookmark field. The date fields do not.
I have the bookmark fields as TEXT, since that is what they are in Access. I tried changing the bookmark to NUMBER and formated the SSN field as ##-###-####, but that did not work either.
Any suggestions?
Thanks
Dom
Sample Access Code:
I am using word to create several forms that use bookmarks. I then use VBA in Access to export the data to the appropriate form in word.
My problem is the SSN and Telephone fields lose formating in the word bookmark field. The date fields do not.
I have the bookmark fields as TEXT, since that is what they are in Access. I tried changing the bookmark to NUMBER and formated the SSN field as ##-###-####, but that did not work either.
Any suggestions?
Thanks
Dom
Sample Access Code:
Code:
ActiveDocument.Bookmarks("EmplSSN").Select
.Selection.Text = (CStr(Me!EmplSSN))
.ActiveDocument.Bookmarks("EmplDOB").Select
.Selection.Text = (CStr(Me!EmplDOB))[\code]