Combo box change value event - wix

I have product that supports multiple databases. During installation I would like to have a combo box that contains all databases it supports. Also there is a text box where user can enter connection string. I would like to have connection string template for each supported database and when combo box is changes, I would like to show in text box connection string template related to selected database.

As Yan said this is not possible to do on one screen. However you could have the dropdown on it's own page and then after clicking next work out what the user selected by testing the property which is set and populate the textbox with the correct template.

Related

Is there a way to bind a textbox from a report to a checkbox from a form?

I am working on a small project in an Access database. I currently have a Y/N checkbox in a registration form that I want to link to a textbox in a report. For example, when I check the box in the registration form, I want it to automatically input "Y" in a textbox in the corresponding report. I have never written in VB. Any tips would be appreciated.

Validation on textbox VBA Word prevents button click executing

I am working on a Word template that has 5 text boxes on a user form (frmMain).
I have a validation routine for each text box, that checks if the correct format is used (i.e. date format in one text box, only allowing the use of numeric values in another, preventing all text boxes left empty and so on). One of my text boxes is called txtNumber.
As of now, one of the validation sub routine fires on txtNumber_Exit.
I also have a command button (cmdHelp) on the same user form that, when clicked, fires the sub routine that shows another user form (frmHelp) that contains a help text on how to use this template.
My problem is that when I click this command button (cmdHelp), the validation routine for the text box "txtNumber" fires. Hence I am stuck with a message (written by me) in a msgbox that says "Number can not be blank", and the frmHelp is not showing.
After this, none of my text boxes have the focus, but my cmdHelp button does.
So if I click the cmdHelp button now, the frmHelp is correctly showing.
But this is messing up the workflow, making the visual experience a bit fuzzy for the user, given the fact that the user gets unnecessary info on invalid input in the txtNumber text box, and that the user needs to click twice on the cmdHelp button.
How can I avoid this?

How to insert text to QTextEdit according to combo box CurrentText?

In an application I am creating I have a combo box with a list of items and a QTextEdit (read only) below it.
I want to display certain text (it can be a plain text) according to which option is selected. I mean to create a combo box where the user can choose an option and a detailed description (in QTextEdit) of selected option.
How this can be achieved?
For now the only thing I had figured was using the Signal and Slot in Designer and connecting combo box with QTextView and setting currentTextChanged() - setText(). And it works nicely but it just sets the text from Combo Box into the QTextView... and that is not the thing I want.
I am using QtCreator 2.8.1 with Qt5.1.1 on Elementary OS Luna (Ubuntu derivative, Linux).
it coule be easier to connect the QComboBox::currentIndexChanged(int) signal to a custom SLOT in your class.
then use that index on the detailed description list to access the text.
soo long zai
You will need to create your own custom "setText" slot which will the QTextEdit's setText slot with the desired string content.
Basically, you need to have a mapping between the QComboBox options and the relevant texts displayed in the QTextEdit.

copying a form textfield value into a report textfield

I have an access form in wich a user can enter project details (like project number, name and ordering party etc etc)
I also have a few reports with a header. I would like the values that are entered in the project detail form to be automatically inserted into the header text (orange selected) fields.
How can I do this?
I have added the tags vba and sql, because I am willing to use these ways if it is otherwise impossible to do this.
Probably the most straightforward way to do this would be to set the Control Source of the text boxes on the Report to point to the corresponding text boxes on the Form. So, the Report text boxes would have a Control Source that looks something like:
=[Forms]![Form1]![txtProjectName]

How to edit a record through a form on MS Access?

I'm new to Microsoft Access and I'm having a trouble implementing something.
Basically, I have a form with a combo box, some text boxes, and a command button.
What I want to do is have the user select a record from the combo box, which then populates the textboxes (I've already managed to do this). Once the data has loaded into the textboxes, I want the user to be able to edit the info in the textboxes, then press the command button so that it updates that record in the table.
This looks like the same odd form where you had trouble with delete. It sounds like you are working from the wrong end. Create a form based on a table or query, then add a combobox to find records on the form based on the selection. There are wizards to guide you through. You will then have a standard Access form where everything works as expected. When textboxes are changed, the data will be updated as soon as you move to another record, there is no need for save, it is the default for Access.
If you wish to use non-standard unbound controls, you will need to update with SQL or stored queries.