Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FAQ 702-2379 Runtime error 424

Status
Not open for further replies.

Amadea

Technical User
Joined
Oct 11, 2003
Messages
49
Location
US
Read the FAQ, including it's predecessor (702-242121) but I'm getting a runtime error. Here's a snippet of the code.

.ActiveDocument.Bookmarks("CourseID").Select
.Selection.Text = (CStr(Forms!frmChangeForm!CourseID))
.ActiveDocument.Bookmarks.Add Name:=CourseID, Range:=Selection.Range

This is the first form field to be filled in and it actually does fill in the correct information (through Namd:-CourseID). However, it seems stuck at Range:=Selection.Range.

Now, I know that your documentation says "Range = Selection.Range" ...without the colon. But Access seems to balk at that syntax, but likes the colon, except on execution.

I've tried getting an answer from within Access and am at a loss. Can you help?

Nathalie
 
Well, I've figured it out. Thanks if you were going to suggest and answer. This is a very useful function; the FAQ was great. Just had to make some minor chanes to get it to work for my particular application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top