When using Options from Database with no Value or Label... how do I customise what is displayed to the user - react-select

When using Options from Database with no Value or Label... how do I customise what is displayed to the user.
I don't have Value or Label in my database, so it displays the correct list of information that I want to select from... but obviously it's blank because the database doesn't contain Value or Label items.

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.

Microsoft Access Search Using A Different Column

I have a ComboBox that has columns: Name, Nickname, and Code in it. Currently, it is set up to search based on Name as the user types in the ComboBox when the user would prefer to type the Code instead. Is there a way to set it up so the ComboBox displays like it is originally set up while allowing the user to search using the Code column? I know that I can easily put the Code column in front of the Name column, but the user would like to keep the format the same.
Simple answer: No. A combo box control will always search (autocomplete) the displayed value, which will be the first row source column with a non-zero width. The only way to achieve what you want would be to have two controls. You could have a combo box with Code as the first column followed by Name and Nickname, and then have a locked text box with Control Source set to =myCombo.Column(1)

MS Access: Reset input field in form to default value 0 upon exit form

EDIT: The fields shown in pictures below all have "value list" as row source type. The input in these fields are used in queries that pull data from tables as well, but these fields themselves do not use any tables.
I have a form in Access that requires users to provide input via listboxes, and then queries use that data to perform calculations.
However,when the entire access file is closed, the same input values are still in the listbox after reopening.
Ideally I want the values in the input fields to default to 0 (not null) as soon as the access file is closed (or re-opened), so when the user opens the database, he will see the value "0" in those fields. The reason to why I want the value 0 as default is because the inputboxes reflect possible commodities a product can contain, and I want to allow users to define the % commodity a product does or does not contain. 0 means the product does not contain that commodity and the user does not have to change the value in the listbox (more user friendly in my opinion). Picture illustration:
Hence each time I re-open the access file, I keep seeing those input values above, while I want them to be 0.
I did some research but don't really understand how to use the expression builder, and I can't find a way to make it work via a macro. I read something about the listboxes having to be 'bound', but I'm not entirely sure how to deal with this.
This is the above listboxes in design view:
You are using listboxes but at a height of one selection which is not the optimal use for such a form control as no multiple listing is shown at once together.
Consider using free-form textboxes with a default value of zero. But if you need to control a user's input, use combo boxes which defaults to the zero selection item. Most likely right now, each listbox is defaulting to its first selection item.
Here is how the Property Sheet / Data Tab of the combox would look (in fact Default Value might be redundant as zero is the first item):
Row Source : 0;20;40;60
Row Source Type: Value List
...
Default Value : 0
If combo boxes use a table/query row source, you will need to append a value of zero with a UNION query:
Row Source : SELECT TOP 1 0 AS ColName FROM TableName UNION SELECT Val FROM TableName;
Row Source Type: Table/Query
...
Default Value : 0

Client_id showing only in Admin user of tree view but not showing in other Group user except Name field

I am new to openerp, In my customize module client_id,name other fields are showing only in Admin user of tree view but not showing in other Group user except Name field.
field
defines a column where the corresponding field should be displayed for each record. Can use the following attributes:
name:
the name of the field to display in the current model. A given name can only be used once per view
string:
the title of the field's column (by default, uses the string of the model's field)
invisible:
fetches and stores the field, but doesn't display the column in the table. Necessary for fields which shouldn't be displayed but are used by e.g. #colors
groups:
lists the groups which should be able to see the field
widget:
alternate representations for a field's display. Possible list view values are:
attrs:
dynamic attributes based on record values. Only effects the current field, so e.g. invisible will hide the field but leave the same field of other records visible, it will not hide the column itself.

Report: How to dynamically set the RowSource

I try to do something simple, but somehow i fail...sorry didnt find the solution with google
A report or a continous form show 3 fields. The 4th field is a listbox, whose RowSource should depend on one of the other fields.
An example:
A list of user is shown in report, the listbox should now show the permissions of this user in the listbox.
SELECT perm_name
FROM permissions
WHERE UserID = [UserIDOfThisReportRow])