Link Content Control to Legacy Form Field in MSFT Word (VBA) - vba

I'm sure this question has an easy answer, but I have a short timeline and need to get it resolved ASAP.
I'd like to have a content control drop down that when the user makes a selection, will update a legacy text box formField with the selected value.
I have no trouble selecting form fields and setting them using VBA code:
ActiveDocument.FormFields("MyFieldName").Result
But I'm having trouble selecting the value from the content control, and also figuring out how to execute the macro "onExit" like I can with legacy fields / drop downs.
Any suggestions?

Google "vba content control events".
For example, see the last post by Greg Maxey at how-to-catch-custom-control-events-with-vba-macro and towards the bottom of his page http://gregmaxey.mvps.org/word_tip_pages/content_controls.html

Related

MS Word checkbox control not checkable when saved as PDF

I have a MS Word document that implements a form people can fill in. It is mostly just table cells that represent text fields people can type in and checkbox controls that allow them to check the box to select an option. I then save the document as a PDF document.
When I test the PDF form by selecting the "fill and sign" option, I've found that some checkboxes are "checkable", but others are not. They were all added to the form the same way, so I'm at a loss as to why some work and others do not.
I've looked at the properties of the control, but am not seeing anything different from a working checkbox vs a non-working checkbox.
Has anyone run into this? Any ideas on what could be wrong? Is there a MS forum that might be a better place for this question?

MS Access 2010 Rich Text Form Control - Ribbon Not Enabled

I have an Access 2010 application, with SQL tables linked in. One table has a field for "details". It is NVARCHAR(MAX). On the Access form, I have the textbox control formatted as Rich Text. When I am on the form, and go into that control, the Text Formatting part of the Home ribbon doesn't become enabled like it should.
I have to type text into the control, select the text and right click. I will get that hover-formatting block, but the formatting buttons on the ribbon will also then work. Why isn't the ribbon getting enabled when I go into the control, automatically?
Has anyone else experienced this? I did a fair amount of searching and googling, but haven't seen this issue reported by other people, so wasn't sure if I was missing something.
Thanks!

Word 2010 ActiveX control forms - formatting issues

Hopefully a quick one
I am creating a form in Word with a Save macro that uses an ActiveX Label as a button. The label works fine as a button but I am having 2 issues:
when using the document in normal mode, the coding text in curly brackets for the label is still visible - see image
How do I get rid of this?
When printing the form, the button pushes the header text down a line:
You can see in the first picture that there is no gap here.
Thanks for your help.
(1) Press Alt+F9 to toggle off display of field codes (and make sure you're not in Design Mode).
(2) is impossible to be sure without having the document in front of me but...
Printing problems are notorious with ActiveX controls, which were designed for use with UserForms, not for the document surface. Your best bet for stability would be to use a one-row, two-column table with the button on the left and the address on the right.
Or use a MacroButton field code instead of an ActiveX control.

ms access 2007 - forms

I would like to apologize for my ignorance beforehand. I've studied some tutorials about ms access and i'm still quite lost. I am not sure how to phrase this question because I am not familiar with access terms and such.
I am trying to create a form with these problems
filling up a text box would allow me to select in a dropdown field related fields from the table.
e.g. putting uni in the textbox would show unicorn, unicode, university in the drop down
button that allows me to add more rows in this form.
e.g. clicking [add more rows] would generate a row of textboxes that are fillable
button that allows me to submit the whole form into the database (this would have to account for the growing number of rows based on the [add more rows])
a reset form button (i've read that some people just open and close the form in a button)
I have some knowledge of SQL but I am totally new to access. I would greatly appreciate links or some guide as to where I would be able to find these answers as I am quite confused as to what to google myself.
Thank you in advance

TextBox Not Displaying Full Text in Microsoft Access

Currently I'm working on generating report using Microsoft Access. I have encounter problem where I'm unable to display full text in the text box. Control Source for this text box is from SQL Query.
This is example on what I'm getting right now:-
Appreciate any help or suggestion.
While viewing the form in Datasheet View (not Design View), double-click the edge of the column or drag to desired width. You must save the form for the formatting to stick. The width of datasheet form columns are not tied to the Width property in the property sheet. That's how it works in Access 2010 anyway.
You have to expand the Size of the text box that is all.