I am importing data from content controls in Word to Access 2010. When the data is imported, "Click here to enter text" shows up in the DB table. This is when a user leaves that content control empty on the Form. I would like to Have "n/a" show up in the DB table. The code I am using is working for some DB fields but not all. Here is a sample:
I am using the Title of the content controls to gather the user input.
Any suggestions would be great.
Code:
Case "CP Goal" If cc.Range.Text <> cc.PlaceholderText Then cpGoal = cc.Range.Text Else: cpGoal = "n/a" End If Case "1st Focus Sector" If cc.Range.Text <> cc.PlaceholderText Then firstFocSec = cc.Range.Text Else: firstFocSec = "n/a" End If
Any suggestions would be great.
Comment