Item without column name defined, would it be saved to the database field? - oracleforms

Oracle Forms Builder 10g, there is a data block which is referencing to a table, property of database item of one item is set to Yes, but column name is empty to this item.
Would the field in database being updated to the correct value?

Yes, if item name is the same as database column name.

Related

Lookup tables in forms not displaying correctly in tables

So, I had lookup fields on my tables. I have recently learned that this is a bad idea. So, I'm trying to convert them to lookup fields in the forms that fill those tables.
The lookup list is drawn from another table with the individual values. On the table, I went into design view under the lookup tag and changed "combo box" to "text box." The fields that were previously lookup fields now display the "key" of the item that was displayed previously in the field.
The form still shows the correct lookup value but the associated table no longer does it instead shows the number associated with the value and not the value. What do I need to do to fix this.
I guess my question boils down to not knowing how to link a lookup field in a form to a text field in a table.
You don't need to change your forms, just update your tables - change lookup from combobox to text box, you did this correctly.
Existing forms should work as usual, with comboboxes, settings for those comboboxes were copied from table settings and not liked to table settings anymore.
In new forms you'll need to do the same manually: after placing the field to the form convert it to combobox then setup correct Row Source, Column Count and Column Widths properties of combobox.

Is there a way to get value example from database, that can be inserted to the column in mysql?

I'm working on tool, that will replace values in specified columns with some other values. User specifies needed table columns in config and the tool replaces their values. I can get the type of a column from information.schema. Is there a way to get a valid value for this column? Or I need to specify them by myself for each column type?

Access SSRS Field by its Unique Name

When writing an expression in SSRS, the syntax Fields!<FieldName>.Value is used to read the value that a particular field in a dataset row has.
Now I noticed that when you add a field to a dataset, not only does it have it's normal field name, but it also has associated with it a unique name, of the form [<Table>].[<FieldName>]
I would like to read the value of a field using its unique name rather than its field name. How can this be done?
For those who are interested, I need this because I am trying to pass a dataset filter as a parameter. One parameter will contain the field unique name to filter on, and the second parameter will contain the field value to match on in the filter. Whilst in my case the dataset field name can be changed, the unique name will not, so I must use this unique name
You can construct a dynamic field reference using syntax like this:
=Fields(Parameters!ParameterField.Value).Value
Ref http://msdn.microsoft.com/en-us/library/ms157328.aspx#Parameters

access combo box on a form to display text values from table/query and save the associated ID value in the table on my form is already based on

My project is a form based on a transaction table, this form has four combo boxes. Basically all of them are storing ID values, and the question is how to make access display the associated value of the ID on the form, while the ID# is being stored in the table.
Example: one combo name is well_ID on the form, which will be populated from the table (Wells) by select staetment [SELECT Wells.Well_ID, Wells.Wellname FROM Wells]
i need the combo to display the well name and store the well_ID in the table.
Would you please help on this.
Regards
Mohamed
The easiest way to do this is to use the wizard and let it guide you through. Create a form based on a table or query, ensure the wizard button is clicked, add a combo and follow the steps provided by the wizard.
You will end up with something on these lines:
Row Source Type : Table/Query
Row Source : SELECT Wells.Well_ID, Wells.Wellname FROM Wells
Bound Column : 1
Column Count : 2
Column Widths : 0cm;2cm;
If you choose to store the value in a field (column), you will need:
Control Source : SomeID
Which refers to the field or column on in the table or query bound to the form and takes its contents from the Bound Column, which can be any valid column number, starting from one (1). In other words, what ever field in that table that should store Well_ID.
The Row Source can be a more complicated SQL string, a query or table. It can refer to other controls on any open form. These properties can be set by code.

Access Combo Box Based on Field List

I have a combo box in Access and it contains a list of the field names from one of my tables. However, it is unordered and I don't know how to order it when field names is selected as its source. How can I order this alphabetically?
EDIT:
To clarify here are the settings I'm using in the properties menu.
I don't think there is a straightforward way to do this.
If the column names aren't going to change, then of course you could copy them to out to excel, sort them and add them back into the combobox as a value list (instead of field list).
If you want a solution that avoids hardcoding the fields, all I can think of is to change the combobox Row Source Type to Table/Query, and set it to a temporrary table. At time of loading the form then pre-populate the temporary table with the field names of the table, using VBA to get a sorted list of the field names of the table
Bit of a horrible hack, though.