Project:
Create an Access database for storing the sales of my Tuck shop.
Index:
Item(Bold) - a field name.
Item(Italic) - a value in field Item.
Goal:
I want to create a table where I chose an Item from a combo box in Item and the Unit price will automatically display(Must be a number because I need to do calculations on the price)
Problem:
If the Item has the same price as another item it changes what I have selected into the first Item with that price
What do I want to know:
How can I change the Combo box so it does not automatically change what I input to another Item?
Images:
When I for example chose stylos it turns into Pop's or switch into Choc-dip Ice cream.
Related
I have a Sales form that contains the ItemSoldID field.
It was difficult to write itemSoldID for every item by memory because new items are frequently added and the list has reached to More than 100 Items. It is difficult to remember id number for every item.
I want to make a combo box. That should Choose Item Name in the box and the ItemSoldID gets autofilled based on the Selection.
I tried dlookup on gotfocus property of ItemSoldID but i am new to access. Something is wrong.
Please Help............
Would like to have some text in my report like the following where the percentage is based on an expression. I would like to know how to work out the percentage.
60% of letters were sent with a first class stamp
This is an example of the figures I'm working with
First Class 300
Second Class 150
Other 50
The fields used are 'StampType' and 'RefNo'. The totals are gathered by a count on the 'RefNo'
To do this, do the following steps.
First, add a new Text Box to the report. Click inside the text box so the cursor shows inside. Right-click and choose Create Placeholder.... Enter the following expression for the Value field.
=Lookup("First Class", Fields!StampType.Value, Fields!RefNo.Value, "ReportMain") / Sum(Fields!RefNo.Value, "ReportMain")
This assumes the dataset name that is returning your data is named ReportMain. Change this if needed.
This looks up the First Class RefNo value from the dataset, and then divides that by the total of the RefNo in the dataset.
Go to the Number section of the dialog, change the Category to Percentage. Adjust the Decimal places to your liking. Click OK.
Type the text you want to follow that value after the placeholder (not in the placeholder) in the text box. Like this:
Preview the report, and you should have what you need.
I have an existing bar chart for a given metric that I'm trying to add a % label to each bar (customer x) to show the % of the total of another bar (All-Customers). I do not want it to replace the "Data Volume" label at the top of the each bar. I would prefer to show each customer's percentage of data volume compared to All-Customers in the Tooltip.
In my sample file, customer is simply a number (1 thru 7). Customer 99 represents All-Customers and is the sum of each customers Data Volume. In my Tableau sheet, I made a calculated field called "Graph Labels" which takes makes my customer labels for each bar. It adds the letter "C" to the customer #.
IF [Customer] = "99" THEN "All-customers"
ELSE "C"+STR([Customer])
END
Note: I must be able to use Graph Labels as it is in my case. See the link for the photo of my worksheet showing the bar chart.
Data Volume Bar Chart Tableau
Here's a screenshot of what I did...
A few points:
Instead of using "All Customers" as your last row, I filtered that one out (customer "99") and used the Row Grand Totals from the menu "Analysis > Totals > Show Row Grand Totals".
I kept the labels as they are, but I also added the SUM(Data Volumes) in the tooltip. Only difference is that I applied a quick table calculation by right clicking on that field and selecting "Quick Table Calculation > Percent of Total".
I have 2 columns that populate my combo box. They come from a table where I manually wrote in an ID and a clean_value field.
The goal:
Display both columns on a combo box on a form. The ID values should be on the left of the clean_value values when looking at the drop down list. When selecting something in the list, the combo box should display the clean_value, not the ID. When saving the form, the form should write the ID value to a different table.
What I've tried:
I set up the table to get the values from. I set up the combo box to show the 2 values in the correct orientation. The ID value is the value that is being written to the table.
The problem: When the user selects one of the values in the list, their selection shows the ID. I want to display the clean_value upon selection instead. How do I do this?
I found a way to do this. I grabbed the clean_value field, the ID field, then the clean_value field again in the row source, then I just set the width of the first clean_value field to 0.021".
I have the tables:
products, measures, colors
for each product I have related measures and colors.
Also I have a form with subtable where I need to show the table with columns:
[products] comboboxColumn, [measures] comboboxColumn and [colors] comboboxColumn.
The rows should be selected product, selected measure, selected color.
The question is:
how can I filter the measures ComboBox list for [measures] combobox-Cell (or colors ComboBox list) in my grid selected row, when I choosing a product from [products] combobox-Cell in that very selected row?
I suggest you use a continuous form rather than a datasheet. Create the combo and populate it with the relevant values in the current event and bind it to the correct field in your table. To avoid confusing the user, include a textbox bound to that field also. You can lock the textbox and label the combobox column something like "Choose Size". You can use conditional formatting to make the whole think prettier.