Trying To Add Data To A Filtered List

Oct 9, 2006

Ok access noob here and a first post as well...

I have to filter a table that has children and teachers.

I made a form with a combo box of teacher names then filtered
on the teacher name.
in the subform I have to create a matrix of the children that
are assigned to that teacher.

it would be something like this

teacher date child name start end


the teacher and child name are in tblmain

the date start and end values have to be in tbldata1

so the beginning they want to choose a teacher and a date
so I shifted and put the teacher in a combo box and tied it to nothing
but the subform
so combo box teacher and field date
links to subform are teacher;date

combo box(teacher name)==> Ms. Eve text box(date)==> 01/01/06

but they want a filtered list on teacher so the subform would have to be

teacher date child name start end
Ms. Eve 01/01/06 mary lamb
Ms. Eve 01/01/06 billy bull
Ms. Eve 01/01/06 bob jones


then they could put in start and end for each child

I don't see how I can get the child names filtered thru a query (this
I can do) BUT then to be able to edit the fields and put this data
into a new table.

IS there a way to do this?


a big help for any ideas or pointers as I am lost on this

View Replies


ADVERTISEMENT

Navigating A Filtered List

Jun 8, 2005

I have a form that contains a pretty large list of items and several columns and the list can be sorted by each of these columns. When a user double-clicks on a particular item, another form pops up that lets the user view/modify the item. The problem I'm having is that I still want to be able to use the navigation buttons in that second form, but right now its just saying 1 of 1 (Filtered).

The way I'm applying the sorting is by updating the Rowsource field of the list with an "Order By" statement

Any help would be appreciated

Adam

View 2 Replies View Related

Displaying A Filtered List

Dec 5, 2006

Help !! - Can anyone help. I have had a quick look through the previous threads and can't seem to find anything that may help me. Has anyone got any ideas.

I have a table which has many columns, one of these columns is called actions. On the design of the table, the action column is a Text Datatype and on the lookup tab the row source is a typed in list of actions.

A form has been created from this one table. A drop down box has been created which looks at the action column and so drops down to give us our typed in list of actions.

Users will select the current action from the drop down list.

What I actually want to do is depending on what the current selected action is, that the drop down box only shows a subset / filtered list of actions.

I know how this is designed is not the tidiest/slickest way of doing things, But unfortunately, I have inherited this from someone else who has been running the database this way for over 6 years !!

View 1 Replies View Related

Forms :: Default Display Record From Filtered List Box

Apr 17, 2014

I have a form which displays records based on a selection from a list box on the form.

The default record displayed when I load the form is record 1 from the table, this is not an issue when I initially load the form but I also have options to filter the records displayed in the list box using various SQL statements, depending on the options selected.

However, when I apply one ofthese filters to the list box the default record displayed on the form still defaults to the first record in the table, which may not be included in the filtered list box.

Is there a way I can default to the first record listed in the list box rather than the first record in the table.

View 2 Replies View Related

Forms :: Three Linked Tables - Filtering A Filtered List

Mar 21, 2013

I have three linked tables [Regulator], [RuleBook] and [Rules] (each has a corresponding form for data entry).

In the "Rules" form, when you select name of the regulator, the rule books dropdown down is filtered to show only the rulebooks for that regulator. the code I use is:

Private Sub Regulator_Change()
Me.[Rule Book].RowSource = "SELECT [ID],[Rule Book],[Short Code],[Regulator],[RegName],[Short Form],[Active] FROM" & _
" [RuleBook] WHERE Regulator = " & _
Me.Regulator
Me.[ShortReg] = Me.Regulator.Column(3)
End Sub

Basically, if I select the FSA as the regulator, The Rule Books drop down is filtered to only show the FSA Rule Books. If I pick OFT, I get the OFT list etc. This all works fine.

In the [RuleBook] table, each entry has a yes/no tick box called "Active".

The reason for this being that the regulators change their rule books quite regularly, but from an audit perspective, I can't delete or overwrite the old ones once they are no longer valid.

What I want to do, is further filter the rule book list to those where Active=True so that when I select FSA, I can only choose from their current rule books and not the ones that are no longer relevant.

View 7 Replies View Related

Forms :: Show In A List Box A Query Filtered By 2 Or More Text Boxes

Dec 15, 2014

I've created a form with two textboxes and a listbox. What I want to do is to show in the listbox the registers filtered by the 2 textboxes. But I would like that the listbox refreshes while typping in the textboxes.It was no problem to do filtering with only one textbox. The rowsource of the listbox is a query in which I set in the criteria Like [Forms]![Form1]![Textbox1].[Text] & "*"Then I write the code for the change event of the Textbox1:

Private Sub Textbox1_Change()
Listbox1.Requery
End Sub

With this I have no problem. The problem is when using the 2 textboxes. I write the same in the criteria, Like [Forms]![Form1]![Textbox2].[Text] & "*", on another field but it doesn't work. I also write the code for the second textbox:

Private Sub Textbox2_Change()
Listbox1.Requery
End Sub

The listbox doesn't filter with both textboxes. When you type in one of them, the listbox filters from it, but when you type in the other textbox, the listbox shows the whole table filtered with the characters of the second textbox.

View 10 Replies View Related

Forms :: Filtered Drop Down List Returning Error Once Status Changes

Mar 8, 2013

I have a table with a list of Students. While the academic year is in progress those students are in an "Active" status. Once the year is finished those students are moved into (hopefully) a "Passed" status or some other status that is not considered "Active".

Throughout the rest of the database I have many forms that refer to the Student Listing. As an example we have a Test so we select the Student performing the test using a Drop Down List and go from there.

I have set search criteria to the Drop Down List via the Combo Box's Query to only display active students and it works fine during the Academic Year. However if I have to review a test from a previous year then the Student Drop Down List no longer displays the name but their ID# (Primary Key) because the Student's status has now changed and no longer meets the query criteria.

Is there a way to use the Filter/Search Criteria to chose from a listing of Active Students but once selected it will display the Student name regardless of their status?

View 2 Replies View Related

Forms :: List Box Should Be Filtered As Readable Characters Entered In Text Box

May 26, 2014

I have a table with a huge master list (some hundred thousand) of unique bar code tags, which either have 8 or 12 digits. (Valid characters are "012 345 678 9ACEFHJKLMNPRYXW"). I created a form, which is automatically looking up valid records as the string is entered position by position from left to right. This is working fine and sufficient in 99% of the cases.

Sometimes characters are not readable on the original document, so I need a tool/form, were I can enter only the readable positions of the code and the tag list is then filtered accordingly. For that, I created a separate form with 12 text boxes for each possible position of the bar code and a listbox. This list box should be filtered as the readable characters are entered in their respective positions/textbox.

View 1 Replies View Related

Using Avg With Filtered Data

Sep 27, 2004

Hi everyone, I am new to writing queries in access and I have got stuck with this one.



I have 2 tables containing similar data from 2 different paradigms.



The main columns I am interested in are not unique - labelled ID and Delta Ex (a score). The same ID values can occur more than once in the same table, so I am interested in calculating the average Delta Ex score for each ID value in each table.



I then want to ask what ID values occur in both table 1 and table 2 and then calculate the average score of each common ID values across both tables. i.e. ID 1 score = avg(table1.delta ex, table 2.delta ex).



I then want to rank the top 50 scores.



So far I have the following to find common ID values, with a score above a threshold set by the input string threshold. These are ordered with in descending score value.



SELECT [MODEL 1].[ID], [MODEL 1].[Delta Ex]
FROM [MODEL 1], [MODEL 2]
WHERE ((([MODEL 1].[Delta Ex])>[threshold]) And (([MODEL 2].[Delta Ex])>[threshold]) And (([MODEL 1].[Accession])=[model 2].[accession]))
ORDER BY [MODEL 1].[Delta Expression] DESC;

With a second query I can select the top 50 scores:



SELECT TOP 50 [query 1].ID, [query].[Delta Ex]
FROM [query 1]
ORDER BY [query 1].[Delta Ex] DESC;

However, I can't for the life of me work out how to obtain an avg score for each ID value.



Any help would be very much appreciated.



J

View 2 Replies View Related

Allowing Data To Be Filtered

Aug 8, 2006

I'm new to Access and am trying to work out the best way to achieve the following.

I need a way for users to be able to filter the data which is displayed by forms or output in reports. For example, suppose that a user wants a list of all customers in either of two specific towns with a specific date of birth.

Obviously this could be achieved using a query and setting the criteria of the towns column to be:

"Anytown 1" or "Anytown 2"

and setting the criteria of the Date of Birth column to be the specific date required, e.g.

"08/08/2006".

However, so far everything about my database has been very user friendly with forms for data entry and presentation, so I don't really want to force my users to start creating their own queries.

The alternative I'm thinking of is as follows. Provide a query to pull together the required information (from various tables) but without any specific criteria. Then create a form with a field for each of the columns in the query, and allow the user to type their critieria into these. Then, place If statements as the criteria of the query to check if there is anything typed into each box on the form and, where there is, set it as the critieria for the query, then run the query.

With the above in mind, I have two questions.

1) Is there a better, more "standard" way to achieve a system of allowing users to create customised filtered data without requiring them to write queries?

2) In some cases, e.g. like with my specification of a town above, it would be good if the user could select the town they want to filter for from a drop-down combo box, rather than typing it in and risking entering details incorrectly. However, this would obviously allow them to select only one town, and not two as was required in my example. Is there an equivalent to a combo box which would allow multiple selections?

Thanks in advance if anyone can help me - and please remember that I am new to Access so whilst I want the best possible solution, I need a plain English explanation!

Gary

View 4 Replies View Related

Sorting Form By Filtered Data

Mar 14, 2006

I have a button that opens a second form and shows filtered data based on the selection of a ComboBox from the initial form. That all works nicely, I now wish to sort the Data in the new form by [POID].

The code I'm using looks like this;

Private Sub Command5_Click()
On Error GoTo Err_Command5_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "FRM_AWMPonum"

stLinkCriteria = "[ClientID]=" & Me![Combo0] & " AND IsNull(DelDate)"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command5_Click:
Exit Sub

Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click

End Sub

What changes do I need to make to the code to sort the data?

View 3 Replies View Related

Saving Data In Access That Has Been Filtered

Apr 14, 2014

I have a large database with over a million entries. I am trying to filter certain years (04-12) and certain states (western US). After the two filters are on my entries are down to 328,000. Now, I want to save the 328,000 to a new database.

View 1 Replies View Related

Entering Data In A Field Through Filtered Records Only

May 4, 2006

uh.. I guess the title pretty much sums it up... Is there a way to enter data in a text box or something once, and have it applied to all the filtered records?

I have it set up so that we can sort by project number, and it displays only the invoices that havent been assigned to a bill (we recover the expenses form our parent company). I dont want to have to enter the same bill number to each of the filtered records individually.

Thanks

View 1 Replies View Related

Queries :: Append Only Data On Filtered Form

Jul 2, 2015

I have a list of dates in my Form1.

When I click on a date it opens Form2 to show that dates specific details.

I would like a macro on Form2 that appends the filtered results to another table.

I think I am just struggling with the references to Form2 in the append query criteria.

View 1 Replies View Related

Queries :: Export With Formatting Filtered Data

Aug 3, 2015

I have a centralised database that imports data from several other databases at the click of a button to produce a "global" query of data.

This is presented as a datasheet form which I am then able to filter. This is a subform to my main form.

I have a button on my Main form with a macro to ExportWithFormatting to excel. I was under the impression that exportwithformatting exported the filtered data.

How to export my filtered query data to Excel and not the whole query data?

View 3 Replies View Related

Forms :: Export PIVOT Table Filtered Data

May 13, 2014

I have a PIVOT table that is used to select courses. I have some vba code that exports this to pdf, but it exports the entire data not the filtered data. Is this possible just to export the filtered data?

View 8 Replies View Related

Queries :: Calculate Percentage On Grouped And Filtered Data

Jul 20, 2015

I'm very new to Access and I'm attempting to write an expression in a query that will calculate the % of the count of "Exchange" field (Exchange is a text field and is grouped and the count based on each unique name) where the total count is based on the filter where "Group" = 'FS' or 'S'.

The below seems to work, but there is a better way of going about this (especially if I have to add more filter criteria). I added a pic of the query I'm trying to build.

PercentofTotal: (Count([Exchange])/DCount(Count([Exchange]),"[Holdings]","[Asset Group] = 'FS' OR [Asset Group]='S'"))

View 11 Replies View Related

Report Out With One Click - How To Get Filtered Data In Graph Form

Sep 29, 2014

My company wants me to run a high level report which ask for three filters. However as its high level they want it should run with a click instead of choosing filters from three drop down ...

As this report comes out as a graph I can't use report wizard to run tabular report. Any smart way that they click a button and get filtered data in graph form.

View 6 Replies View Related

Modules & VBA :: Get Filtered / Grouped External Data Into MS Access Table

Oct 20, 2014

I have an Excel file with a name range "DBIAS" which identifies all database data.

Then I have an Access file with a form to import that database (better, that named range) into an Access table. While importing, I have to filter some records or grouping by some field.

I cannot run correctly a VBA code to get data (filtered and/or grouped) from that name range and save those records to an existing or a brand new table.

I could get those data as DAO.recordset and printed out with "Debug.print" on immediate window, but I cannot complete the final step: writing those records to a table.

View 3 Replies View Related

Modules & VBA :: Clearing Worksheet Before Export Of Filtered Query Data

Jul 8, 2015

I am currently working on a form that exports a query that changes after a user set filter is applied, and am able to get the filter to apply and the query to export. The problem I am having is that the worksheet that the query is copied into retains all previous data, and if the earlier query export included more records, they remain as they were, is there any way of getting them to be blank.

I want to export my query onto a worksheet that has current data, need to delete current data or delete worksheet so that only the selected data is shown.

My code currently is:

Private Sub Command67_Click()
Dim strWhere As String
Dim strFile As String
Const strcStub = "SELECT NomT.shkFirstName, NomT.shkSurName, NomT.shkCompanyName, NomT.shkAdd1, NomT.shkAdd2, NomT.shkPostCode, NomT.shkRegion, NomT.shkCountry, NomT.shkAdd3" & " FROM NomT" & vbCrLf
With Me.FilterSub.Form

[Code] .....

View 4 Replies View Related

Forms :: How To Link Combobox Between Form And Subform To Only Show Selected Filtered Data

Apr 1, 2013

I have a suppliers table and a products table. Two forms, Stock form with combobox to list Suppliers and a sub form with combobox that lists Products.I want to select a supplier from the Stock form and then the combobox in the subform to only list products directly sold by the Supplier.Have dabbled in SQL as follows:

SELECT Products.ProductID, Products.ProductName
FROM Suppliers INNER JOIN Products ON Suppliers.SupplierID = Products.SupplierID
WHERE ((Stocksubform.SupplierID=Stock.SupplierID))
ORDER BY Products.ProductName;

View 2 Replies View Related

Forms :: Existing Data In Field Of Subform Also Filtered By Combo Box On Main Form

Mar 7, 2014

I have a form with subform (datasheet) .

On my subform i have one field which shows the

productId ( which is filtered from combo boxes on main form) .
productId contains two columns
1 bound column(id) ( hidden with width 0 )
2 column (desription) ( shown with width 2 )

Now after entering the data when i come back to the form again . It hides the data from the productId field on subform , because data in combo box (on main form) doesn't match. Although the row is showing up , only the text in field (productId) is hidden.

Now when i change data in combo box on main form to match the ProductId , then the productId field text shows again. after changing combo box it hides . What i need is the existing data should not hide when i change the combo box selection.

see pic 1 where product matches and pic 2 where not. please note i am using master child relationship on the form/subform.

View 14 Replies View Related

List For Data Entry

May 18, 2005

I've got two tables, Properties and Valuations. Every six months the properties are revalued. I want to have a datasheet list of all the properties with a blank field for the new valuation so that the user can just go down the list and enter the new amount without having to select every property individually. Can I do this?

View 5 Replies View Related

List Box Data Output

Feb 21, 2006

I have a list box control on a form which is being populated by a query. It is showing bookings that are placed on three shifts (AM, PM, Night shifts)...the list box is working fine...

- what i'd like is that the output in the listbox is seperated by shift (maybe having a blank line when shift changes, or different text color for different shift, or different background colour for different shift? )


i'm not quite sure if this can be done...or maybe there's another way out ? any ideas?

thanks!

View 4 Replies View Related

List Box Data Disappearing

Apr 16, 2005

I have a form called CreatePL which is made up solely on List Boxes that the user must choose from. After all the choices are made, I have a button to save the information to a table called PL.

I noticed that after clicking on this button, that record stays active so when you try to create the next record, it is actually changing the previous record. As I was testing this a bit further, I also noticed that the one of the names in one of the list boxes got erased (I'm not sure how yet).

Is there a way to lock the information but still be able to make selections and save it to a table? When I choose the properties so that you can't edit, I loose the ability to make choices also. All of the list boxes are set to "limittolist".

View 9 Replies View Related

Formatting Data In List Box

Oct 21, 2004

I have a phone number field defined in a table as text and use the input maks !(999") "000-0000 for entering and editing data. Is there a way to use a mask when using this field in a list box? It would be nice to be able to show (555) 123-4567 instead of 5551234567.

Thanks,
Ted

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved