In Alation, is it possible to pre-populate a Query Form with a value when linking to the form? - alation

Is it possible to pre-populate a Query Form with a value when linking to the form?
For example, if I have a query form such as
https://my-alation-instance.net/query/16391/form/
How would I pre-populate the form's parameter serial with a link such as
https://my-alation-instance.net/query/16391/form/?serial=4945

Related

I have created a form in Access that corresponds to a table with zero attributes

I have created a form in MS Access. The corresponding tables for these forms have zero attributes. I simply created a blank form and manually inserted text boxes, labels, check boxes, etc. Now I would like to capture specific information that is entered into the form. How would I go about this in MS Access? Do I need to write some VB code to say "record whatever value the user puts in the field for serial number" for example? There is no preexisting data in any tables.
A user will manually fill out the form in Access, I would like to capture the data that the user inputs.
Bind the table to the form and then bind the controls to the fields of the table.
Or, the easy route: Mark the table in the navigation pane, then click in the band: Create and then Form, and it will do the dirty work.

VBA access and forms

I created a database in Access and there are some type of records in some tables that requires a particular inserting, so I decided to use VBA to handle this.
The problem is that if i create a form with some controls which i want to refer and use their values as criteria for queries, the form is still a way to insert data. So the query works but the data i inserted are added directly from the form too, creating duplicates.
The question is, is there a way to create a form that has controls only for text input but does nothing to record , leaving inserting, deleting , updating all to queries in VBA?
I tried to put "no" on propriety "add records" in the form but it gets totally blank with no controls.
Your form must be unbound, i.e. its RecordSource must be empty.
Your form can be bound or not bound to a table / query.
This means that the controls on your form may be bound to a field of that table / query.
But you can also have controls in the same form which are not bound.
Example:
You can make a form in which the body has a list view of the records of the table. In this section the controls would be bound to a field.
In the header of the table instead you may have controls that are not bound and that could be used either to filter the records shown or to add new records. You may want to add records this way rather than let users insert data directly in order to add checks or do any other kind of processing before actually adding the data in a new record.

Trying to open another form in Access based on a field in the current form

I have a form that's just a list of descriptions (desc.) of other forms. Right now, when you click on a desc., the appropriate form opens; but it's done through a series of if statements in a macro. This isn't going to scale well once more forms are created.
I have a table that has the desc. and the form that is supposed to go to. I want to write a script that uses this table to open the new form based on the desc. clicked, but not using if statements. The end goal is to be able to just add a row to the table for any future forms that are created without making changes to the script or form. Is there a way to do this?
Use a combo box whose row source is a query which selects the form description and name fields from your table.
The combo will have 2 columns. You can set the width of the form name column to zero if you want to present only the form descriptions. If you make the form name column the combo's bound column, you can reference it conveniently in a DoCmd.OpenForm statement. For example, you could have a command button whose click event opens the form which is currently selected in the combo ...
DoCmd.OpenForm Me.YourComboName.Value

How to get event when moving recordsets Access form?

I have an Access form which uses SQL to populate dropdowns. This SQL is using a value in the form for a combo box cb_Priority, such as:
SELECT ProjectPriorities.ProjectPriority FROM ProjectPriorities WHERE (((ProjectPriorities.[mType])=[Forms]![testQuery]![mType].value));
In other words, I am using the current recordset to populate a dropdown on the form.
I would like to call the following when a user moves between records (ie which one is currently displayed in the form).
Form_testQuery.cb_Priority.Requery
This repopulates the form dropdown correctly.
However, I cannot find the event for what I would imagine to be something like
Form_RecordsetChange()
Form_RecordsMove()
How I trigger this .Requery method to allow it to run each time the userform updates to a different record?
The event you are looking for is: Form_Current.

Filter form on open based on value in linked subform

I have a basic search page, user selects one or more values from a range of options, these are used to build a string which is then passed as the filter when the form is opened so that only the appropriate records are displayed. The form itself contains a subform.
Up to now the searching/filtering has been based on controls in the main body of the form, but I now need to be able to search one of the fields in the subform as well. Is this possible, and if so, how?
NB. I've tried executing a query to return a recordset that has the primary key of each of the records in the form I want to display but stuck on the best way to use the results. If there is only one result I can pass it as a string and it works fine, but how to handle multiple values?