Reports :: Use 1st Query To Populate Fields Then Use 2nd Query To Filter Fields
Apr 30, 2013
Any way in report that I have 2 reference queries just 1 is to populate all details and 2nd query to filter details and will be the final reporting information???
View Replies
ADVERTISEMENT
Feb 7, 2006
I have very minimal knowledge of MS Access and I have to create a database to input, update and display project information. How do I write a query to populate fields on a form, from either a single table or multiple tables?
View 3 Replies
View Related
May 29, 2015
I have a main screen that has a tabbed form in it. Each of those tabs has a sub-form in it that displays information and allows some information to be updated.
In one tab I have a query based sub-form that returns information related to the project. This information cannot be manipulated or changed as it comes out of a company managed database. I would like the analysts to be able to add more granular information to a new table by inputting information in a dropdown field for one of the new table fields, but utilizing two of the existing sub-forms fields as identifiers in the new table.
View 14 Replies
View Related
Jan 11, 2006
I am terrible with databases, but have designed a database that uses two text field types and 48 Yes/No check boxes. The two text fields describe documents (name and location), and all the check boxes indicate what types of documents they are.
What I need to do is to be able to run queries or reports where I can select CERTAIN of the Yes/No field types. For example, some of those check box fields are named 1A, 1B, 1C, 2A, 2B, 3A, 3B, 3C, 3D, 3E, 3F, 3G, (up through 8E) etc.
How can I get the query or report to bring up all of the records that have a check mark in either 1A, 1B, "or" 1C plus list the Field 1 and Field 2 that are text fields? I don't want it to list every record in the database, which is what is happening, because I want to then be able to sort the results.
I know it USED to be in my head how to do this, but I just can't seem to get it to work!
Thanks,
Toni
View 3 Replies
View Related
Nov 27, 2007
Quick questions and I'm sure this is easy enough to warrant a quick response:
I have a query.
I have 12 different fields that may or may not have the value "Sabbatical".
I want to view only the records that have the value "Sabbatical" in AT LEAST one of those 12 fields.
Thanks in advance.
View 6 Replies
View Related
Feb 3, 2015
I have a table with two numberfields (let's call it NumbersToFilter and FilteringField).
I want a query that shows me ALL NumbersToFilter data WHERE FilteringField is the highest.
Eg. if this is my table:
NumberstoFilter / FilteringField
999 / 50
947 / 44
920 / 50
941 / 48
I want my query to return 999 and 920 (filteringfield max = 50)
I'm currently using an aggregate query, using group by NumberstoFilter and max FilteringField, but it returns all the fields (the maximum is simply on top )
View 2 Replies
View Related
Apr 6, 2006
Basically i have a mortgage application system which im running a query on to see which applications have been completed in the last week or period up to now ie. last week, last month, last 3 months.
basically each application or CaseID has one or more applicants. The majority of them have two applicants. A few have one.
Problem is when i run this query which shows me: - CaseID, CLIENTNAME, LENDER, PRODUCT, MORTGAGE RATE, LOAN AMOUNT -
it brings up these fields but i only want one occurence of each CaseID????
CaseID Forenames Surnames PRODUCT RATEDateCompletedLoan required
2821NothandoDube71116.6920/01/2004£63k
2821Sipho Dube 711 16.69 20/01/2004 £63k
2909Hobbly Chise 726 15.69 31/01/2002 £164k
Get the picture? Both Sipho and Nothando are applicants on the same mortgage but i only want to show one name. Anybody know how to help me out???
Ive taken up this existing system, so i think there's possibly a normalisation problem thats causing this. But i need a quick fix for now rather than redesign the whole system.
View 2 Replies
View Related
Nov 18, 2014
I have a table, tblDailyCalls, that contains agent_name, date, calls_ answered, and talk_time. Ideally on a form, the user will select an agent, enter the date range in txtStartDate and txtEndDate and a report opens to show what the total amount of calls and talk time is for that date range.
All I've managed so far is doing a simple expression on the report itself to sum the fields I want. But my method returns every date in the range. I would like to only display the total.
I've been trying with Totals in the query and crosstab queries but am not familiar with them.
View 4 Replies
View Related
Jul 24, 2015
I have a report based on a query that I put inside a form. What I want to do is create 4 comboboxes from which users can choose options that will filter the report without leaving the form or opening the report in a separate window. Also, I want to make the filters dependent on each other, meaning if a select option A on combobox 1, the options i will select on combobox 2 will only be based on the earlier filter on combobox 1 ...
So far I'm able to do at least 2 of the comboboxes to filter the report, but they aren't based on which one was used to filter the report first. So if i filter the records by choosing option A on combobox 1, combobox 2 will still filter every record.
here's my 2 codes so far:
Private Sub cboLocation_AfterUpdate()
On Error GoTo Proc_Error
If IsNull(Me.cboLocation) Then
Me.qrySalesByLocation.Report.Filter = ""
Me.qrySalesByLocation.Report.FilterOn = False
Me.qrySalesByLocation.Report.Requery
[code]....
the other 2 comboboxes, I can't apply the same code cause the enter parameter dialog keeps popping out.
View 3 Replies
View Related
Mar 14, 2014
All, using access 2010. I am working with an existing database that have a letter programmed using fields in a query. I have to add to it but having a trouble. Merge in Word was not used. I can't find any examples. The letter is designed in a report design. Using the fields from a query and filtered by "IIF Statements".
View 3 Replies
View Related
Jan 13, 2014
I am looking for a way to generate a list of all fields within a table, have the end-user select which fields he/she wants to include, and then run the query. I am trying to create this within a form for a nice, easy to use GUI.
I am using Access 2010 on Windows. The fields I need them to select from are in one table, however there are many lookup (tblkp) tables related.
View 2 Replies
View Related
Jun 26, 2012
Is there a way to populate fields in Access from fields in Excel in Office 2010? If so, what do I need to do?
View 6 Replies
View Related
Jun 28, 2015
I have a query that creates counts of fields based on the data in other fields, basically it tells me that in a table there are two entries with value ABC????? and three of DEF????? , the query works perfectly.
When I create a form to display this data and base the form on the Query I keep getting a message box asking for the ID (key field) from the base table.
If I type * in the box (to denote all values) and press enter I get the results expected.
View 4 Replies
View Related
Jun 27, 2014
I have a report based on a query.There is a field in my personnel table and the query: [Field] with values from my lookup table and has three choices:
1-Inspections
2-Administrative
3-Safety..
I have a report and would like to filter based on [Field].I can filter by putting [Field]=Inspection on the Filter On Load, then typing 1 into the parameter box. And it works.I cannot however choose more than one of the three choices and I have to type the number in. Fine for me but it won't be for other users.it is used for more than one report. I would also like to avoid having seperate queries for all these reports.In other words, I would like to filter the report, not the query.
View 14 Replies
View Related
May 3, 2006
Hi Everyone
I need to change a fields properties on a form depending on another fields data.
i.e. If a user ticks a Yes/No box saying they've done something they must also complete the date they did it. I can't set the date field in the table to be 'Required' as if ther is no tick then it doesn't need to be.
Cheers
D
View 4 Replies
View Related
Feb 25, 2007
I have a table where there each record has 3 fields i need to add together for a fourth both in my form and the table and i need the data in that field to be uneditable. how might I accomplish this? In the control source i tried:
=[LINE 1 QUANTITY]+[LINE 2 QUANTITY]+[LINE 3 QUANTITY]
but it displays
#Name?
View 4 Replies
View Related
Mar 27, 2006
I have a combo box on a form that shows 3 columbs from tblparts in the drop down, I wish to select one row from the drop down, that will enter the selected data in three fields on the form.
For example my form has three fields "part code", "Description", "cost".
Part Code = combo box
Description = Text Box
Cost = Text box
I want to select the data from the combo drop down to populate all three boxes.
Can sombody please help, as I have been stuck on this all afternoon. Cheers
View 2 Replies
View Related
Nov 3, 2011
I have a form( frmDate) and a subform (frmChecks)-is off a query Checksquery . On the from is located only a list box lsatDate with rowsource to cross query Date . It is only display the dates. The sub form in designated to record numbers of checks, their first and last number and total amount of checks that have been requested to be issued.. It has 8 txt boxes : txtDate, txtChecksNumbers, txtSheetsNumbers, txtStartChecksNumber , txtEnd Checks Number, txtTotalAmount, txtBegginigofWeek and txtEndofweek. I have forgotten to mention that form and sub form have linkchildfiled-lstDate, and linkMasterfiled-txtDate so user can scroll date in list box and retrieve the records for past dates. I would like to program in form upload event if I can when a user opens form three things I need to be happened:
1) the txtStartCheksNumber would be populated of the last record txtEndChecksNumber,
2) the txtDate would be filled as date today,
3) and txtBeggininofweek would be populated off last record txtEndofweek with adding one day .
I have programmed txtSheetsNumbers in record source as =Round((LTrim([ChecksNumbers])/3)) b/c there three checks on one sheets and also programmed txtChecksNumbers as =Round(LTrim(([StartChecksNumber]+[ChecksNumbers]))) so that this field is populate adding starting checks number and checks numbers. I need this b/c many users use this form to print checks and every check must be accounted so filling the form correctly is very imperative and uploading these records would be very useful since many mistakes are made b/c users go to the last record to retire info. Users dont see the queries; they see only form and sub form once they request checks for printing.
View 3 Replies
View Related
May 31, 2006
:confused:
I am trying to help someone with a complex problem (so it seems to me) but I will first ask about what should be a simple thing....
First goal: to COUNT the number of times a TYPE of visit is made.
There are several different TYPEs but only interested in tracking 2 of them.
When a crosstab query is created - if one of the 2 parameters are not "met", a blank is returned. I have been reading posts about using NZ and IIf IsNull, etc to get past that - but none of them make any sense to me and the Access help suggestions do not work. Hope someone can make it clear with this information: (can't give more specifics to keep privacy intact)
The SQL was written by Access not by me. :)
Here is an example of the Crosstab SQL (which is using a previous query):
TRANSFORM Count([qryTest2.TYPE]) AS CountOfTYPE
SELECT qryTest2.CID
FROM qryTest2
GROUP BY qryTest2.CID
PIVOT qryTest2.TYPE;
-----------
qryTest2 SQL: (Grouping by to remove dups)
SELECT DISTINCTROW tblM.CID, tblM.[M#], tblM.LNAME, tblM.FNAME, tblM.YMDBIRTH, tblC.ClDOS, tblC.TYPE
FROM tblM LEFT JOIN tblC ON tblM.[M#] = tblC.[M#]
GROUP BY tblM.CID, tblM.[M#], tblM.LNAME, tblM.FNAME, tblM.YMDBIRTH, tblC.ClDOS, tblC.TYPE
HAVING (((tblC.TYPE)="Out" Or (tblC.TYPE)="In"))
ORDER BY tblM.CID, tblM.LNAME, tblM.FNAME;
Thanks for you time! :)
View 1 Replies
View Related
Mar 17, 2006
Hi
I have a form with 3 combo boxes part No, Description, Cost. I have created a table with this information in I want to be able to select the information from either one of the three drop down boxes and the other two to automatically collect the information from the other colums of the table. Can anyone help please?
View 2 Replies
View Related
Aug 7, 2006
Hi all,
I'm sure this must be a well used function by many access users but I can't find anything about it online at all - please help!
I want to open a subform "AddReservation" and populate three fields with data taken from the relevant record in the main form. So in the btnOpenAddReservation_Click event to open the subform I set global variables, then in the form_open event I have this:
Private Sub Form_Open(Cancel As Integer)
Me.CatID = stLinkCatID
Me.CatName = stLinkCatName
Me.OwnerID = stLinkOwnerID
End Sub
But I get the error 2448 'Can't assign a value to this object'.
However if I put the same three lines into the start of the subform's btnARSave_Click event it works fine:
Private Sub btnARSave_Click()
On Error GoTo Err_btnARSave_Click
Dim stDocName As String
Dim stDocName2 As String
stDocName = "OwnersAndCats"
stDocName2 = "AddReservation"
Me.CatID = stLinkCatID
Me.CatName = stLinkCatName
Me.OwnerID = stLinkOwnerID
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
YesNo = MsgBox("This reservation has been added successfully, do you want to add another?", vbYesNo + vbQuestion, "Add More Reservations?")
Select Case YesNo
Case vbYes
DoCmd.GoToRecord , , acNext
Case vbNo
DoCmd.Close acForm, stDocName2
DoCmd.Close acForm, stDocName
DoCmd.OpenForm stDocName
DoCmd.GoToRecord , , acGoTo, stRecordNo
End Select
Exit_btnARSave_Click:
Exit Sub
Err_btnARSave_Click:
MsgBox Err.Description
Resume Exit_btnARSave_Click
End Sub
What am I doing wrong? Why can't I populate the fields on open?
Many thanks
PT
View 1 Replies
View Related
Nov 15, 2004
I am trying to auto populate a text box when i click on the button to add a new record. This is the code for the addnewsequence button.
Private Sub addnewsequence_Click()
On Error GoTo Err_addnewsequence_Click
DoCmd.GoToRecord , , acNewRec
Exit_addnewsequence_Click:
Exit Sub
Err_addnewsequence_Click:
MsgBox Err.Description
Resume Exit_addnewsequence_Click
End Sub
In this form is a text box called degree name that is link from the table degree. It autopopulates with the degree upon the sequence form first opening button clears the text box when i click add new sequence
any help greatly appreciated...
Thank you
View 2 Replies
View Related
Jul 30, 2005
Trying to update fields (bound) on a form (built using the wizard) from value selected in a combo box. I can get this to work with unbound text boxes using an After Update event handler and a code query along the lines of:
Me!TxtJobCode1 = Me!CboJobDesc.Column(1)
But this doesn't work where the form field is bound to a table.
So qu is - how do I achieve the same result using table fields instead of text boxes?
I could use text boxes but not sure then how I can save that data as a record in the table if it is not bound to fields.
Any help appreciated
Andy
View 1 Replies
View Related
Aug 17, 2015
In a form, I have a comboBox with 3 columns.I update the field and with this piece of code, I update two more fields based on this comboBox data/columns.
Code:
Me.EUR.Value = Me.Combo37.Column(2)
Me.USD.Value = Me.Combo37.Column(3)
I wonder if I can update fields which are not parts of a combo.For example, suppose I have a form with two fields, DATE and USD, Once I update the DATE field, this event, auto populates the USD exchange rate field.
View 3 Replies
View Related
Feb 6, 2012
need to create a database for work. there would be a way to select an id based on a previous table and have parts of it populate in this new table.
For example:
Table A - Webinars (Webinar ID, Webinar Title and Client)
Table B - Sessions (Session ID, Date, Webinar Title, Time, Facilitator, Session Occurred, Reason, Conference Call) [Webinar Title I used a look up field and just select the corresponding Webinar Title and it works nicely]
Table C - Users (User ID, Status, Prefix, Last Name, First Name, Email Address, Component, Role and State)
Table D - Registrants (User ID, Session Date, Webinar Title, Attended).
So in Table D I would like to add Role and Component, so when I select User ID #1 the Role and Component Field populate with the info based on Table C.
View 3 Replies
View Related
Jul 16, 2006
Hi. I tried to find out if this issue was already posted, but did not find. If anyone can help me, I am trying to auto populate two fields on a subform. The field I want to populate is the description of a role. So if the user selects the role name from the combo box, the description field will automatically update. Thanks.
View 14 Replies
View Related