Combobox Autofill and select Microsoft Access - ms-access

I have a combobox with 2 columns (ICD10.[Code], ICD10.[Text]). I want to be able to search-suggest from both columns, and if I search after Kolera, I want to be able to select it, and then it will put in the ID code, not the name.
How do I do this? or what should I start searching for? I don't even know what I'm supposed to search for to solve this problem.
Heres a picture of my combobox
http://i.stack.imgur.com/tvFTk.png

If you want to be able to search after the ICD10 code and the name, you will need two combo boxes. The first is the one you already have which enables you to search for the code. For the second, you should make a copy of the first, then sort your data source by the ICD10 name column (is not absolutely necessary but makes sense when viewing the dropdown list) and changing the width of your first column (the ICD10 code) to 0 in order to prevent the list from showing your first column.
Both combo boxes will still contain the ICD10 code, but the second one will allow you to select the code by the name column.

Related

SSRS - Child group position / subreport?

I've got a report with parent and child groups as you can see below, which work fine.
Results look like this and as you can see column from Initiative Name to Reasons for Overall status are the same, therefore I would like to group these as well, but I can't figure it out. When I add a new child group (Milestone Name), it adds column right after the Initiative name column, which I don't want to.
The ideal results should look like this:
Could you advise me how can I achieve that, please? I've also tried to use subreport, but I wasn't able to make it work either.
Many thanks!
You should be able to add the columns to the grouping in your outer group (MissionCritical).
Once this is done you will probably (this is from memory) need to insert a row under the top row (Right-click, insert row, inside-group, below).
This will give you two rows for the outer group.
Then copy / paste the contents of each column affected (the light blue ones I guess) and paste them into the new row. You can then remove them from the details row.
This should give you what you want. If not, let me know and I'll setup a sample to demonstrate.

Hiding a row if text box is hidden

I have a report that lists parts required for a job, and then within each part it has rows that show locations and quantities of parts on-hand. The main list has a header (part number, description, quantity) which is only shown once at the top because it is not within the grouping. However, the second header (on-hand quantity, location) is within the grouping so it repeats. I would like it to only show once.
I have tried using the hide duplicates property for the header text boxes, but this still leaves blank rows. I have also tried setting the row visibility using a comparison between ReportItem!lblOnHand.Value and Previous(ReportItem!lblOnHand.Value) but this gives me an aggregate error.
This is what the report is displaying now:
You need to set the row visibility rather than the individual text boxes. Right-click the row header to access the setting..
You should (untested) be able to use the same logic as you have now. If this does not work then you will need to test if the group is the first group and use that in the expression, something like...
=Fields!Partnumber.Value <> FIRST(Fields!Partnumber.Value, "myGroupOrDatasetNameHere")
The above would hide thew row if the part number in the current context is not the same as the first part number in the group or dataset name specified.

Drag and Drop Multiple HTML Columns

I am having HTML Tables. There are 10 columns inside that table. I want to Drag and Drop more than one columns. (i.e) select multiple columns and move them around (change column ordering)
Drag and Dropping a single column i know, but how to do this with Multiple Columns...
I am not pretty sure about the code but,
I guess there is one thing that you can try
When the user wants to move the columns then ask him to generate an event like(click on a button or something) now you know when the the particular button is clicked. Now ask the user to select the columns by clicking on them one by one when all the desired columns are selected put them in a single column and ask the user to move it. when the user drops this column on desired location you can remove this column.

Access 2007 - Display text fields in drop down list while bundling to an ID

in Access 2007 how can I display text fields in drop down list while bundling to an ID? not while selecting (we can do this by plying with the width field. but what I need after selecting?
Do we create a hidden field that stores the ID?
Your description of how a combo box works is correct. Keep in mind that while you're setting the first column and display length to zero, that means the combo box will then search by the second text column. The combo box will display by that second text column after you select a value. In fact in all cases for typing in a value, even partial matching as you type, a simple select of a value will ALL BE done by the displayed text column but in ALL CASES it will save the actual ID (the first column) into the table that the form is bound to.
So no additional coding or anything if need be done on your part to achieve the above goal and in fact this is pretty much the default as to how combo boxes work inside of ms access.
What makes the combo box is somewhat unique inside of Access is you can have more then 2 columns. And, in the combo box settins you can choose what column is to be selected and saved into the table. And, the combo box has both before update (with a cancel), and after update and also a Not in List event that fires in the case of a user tyring to type in a value that not in the list.
So, the Access combo box is quite flexible. The source for the list or members displayed in the combo box can be based on a table, on a query, or you can even type in a value list that is saved inside of the property sheet. And, another option is to fill the combo box is by using call backs (so, again quite a few ways to fill out the list of memebers for selectiogn).
So, keep in mind there is two aspects to the combo box. There's a so called row data source or how you feed the members that will display in the combo box. Then there is the underlying column (field) that you bind that control to when you select a value. That is in the case when the combo box is bound.
As mentioned, the bound column setting is another property in terms of inside the combo box, and you don't need to write any additional code to achieve that above goal in your question.
Albert Thank you for this excellent explanation.
I found out that the bound column has no effect. Acces take the first visible field and bound to it regardless of what you have in the bound column property.
All good thanks
Omar ( hostitwise.com)

How to get group headers to span a Tablix column

I am using Microsoft Reporting Services (rdlc, that comes with Visual Studio 2010)
Suppose I want to create a report that has a Group Header, detail rows, and a group footer.
(I'm using Tablix, but if there is a different way, I'm open to it).
Now, there are several columns, but I want for the group header to span the columns. Is that possible?
Another question:
Suppose I want to conditionally span columns in my detail row, is that possible? (and how?)
Say you have teams/reps and you want to send them their leads/appointments to work on for the day.
A lot of tutorials for grouping in a RDLC Tablix look like this:
But you want it to look like this:
Step by step, here’s how I’ve figured out
Add your table (Tablix) and ensure the DataSetName property is set
Highlight the details row and right click. Add a parent group to the row
Set the group by to e.g. TeamDescription, and check Add group header
The Row Groups panel should look like this. The indent for the Details is needed.
OK, at this point you’ve got what you don’t really want. ANDY and BELINDA are going to appear in a column to the left of your info.
But that’s fixable. In the spare cell above e.g. ApptStart enter e.g. [TeamDescription] and right click on it and choose to merge the cell across the other three columns. Set its alignment to center. Maybe bold too.
Then delete the first column as that’s now redundant.
Here’s how it should look by now:
You can get a field to span columns by selecting a few of the header fields and selecting the "Merge Cells" option.
As for conditionally spanning, you can't do that directly but I can think of a workaround. It really depends on the data you have so for a better answer you need to provide more information.
You could have two detail rows and conditionally hide one or the other. In one row the cells could be merged and not in the other. The only thing you couldn't necessarily control with this technique is the order of the rows, but it might work.