Reports :: Expr1 In Query Keeps Prompting

Oct 24, 2013

I have a for form with a button to run a report. The report runs a query. The query reads data on the form to feed the report. The data that is from the table works fine but data from a text box on the form will not. It prompts for EXPR1.

In my query I have the following:

EXPR1: [Cnum]

[Forms]![FRM-Customer]![Cnum]

where FRM-Customer is the form with the button to run the report and Cnum in the text box data that I want to pass to the report. Every time I run it it prompts Cnum?

View Replies


ADVERTISEMENT

Prompting For Parameter - Why?

Dec 12, 2005

Hello,

I have a table which contains:

InvNo - Autonumber (invoice number)
AccNo - Clients account number
Amount - Amount of invoice

I also have this data (minus the InvNo) in a linked spreadsheet. I would like to keep the spreadsheet as it is all set up for the printing of multiple copies etc.

The idea is, I want to import the data from the spreadsheet into the database, which will then apply an invoice number (because it is an autonumber), and then get that invoice number back into excel.

I have done it all, but cannot get it to give me the invoice number assigned to it.

I thought I would have a simple query that looks for records in the table that are the same account number, and amount (plus a few others I havn't included here), and then it could return the InvNo.

But, whenever I run the query, it asks me to specify the parameter, it doesn't seem to be able to read from the linked spreadsheet (it is openable, I can open it in access just fine).

In the query I have put (under criteria): "[LinkedSpreadsheet]![AccNo]" (and similar for the other fields I want to match).

What is wrong?

Thank you!

View 1 Replies View Related

Prompting For A Date?

Feb 17, 2005

Can I get my query to prompt for a specific date somehow?

Or....I am running a report off my query, can I get my report to prompt for a specific date?

View 1 Replies View Related

Prompting A Crosstab

Nov 14, 2007

I have a crosstab query and I want to prompt users for certain colunms is this possible. If so how, I want to prompt the users to enter month.

View 2 Replies View Related

Prompting For Specific Dates

Aug 16, 2005

Hi all
Im wanting to open a sales report, but I want to be prompted to enter dates FROM and TO so that I can get specific sales.

Example

"Enter start date" here i'd enter 1/8/05
"Enter end date" here i'd enter 31/8/05

that way i'd get all sales throughtout august. Then when september comes round I could enter new dates and save me having to go in and change the filter.

Can anyone help?

Thanks

View 3 Replies View Related

Parameter Prompting Multiple Times?

Aug 15, 2011

I have a report with a subreport. I have added a parameter to the query to prompt for [manager] or is null to get all managers. However, on the report when I enter a manager my count on the subreport still returns the count for all. So, I added the same prompt to the query for the subreport. It returns the right count, however, it prompts for the manager multiple times. How do I get it to prompt only once yet get the right total?

View 1 Replies View Related

Prompting Save Message Before Moving To New Record

Oct 25, 2005

Hi all,

I Have a form bound to a table.

The form will be used by poor experienced users so to avoid problems i would like whenever we move to a new record(or changing the contents of a stored one) a save record message to appear refering to the one we are just leaving.
Generally i would like a solution which will restrict users from entering data by mistake using scroll mouse or ctr+page down.
If i could design it ,i would choose that nothing in the form is saved until a save all button is clicked.This means that the user will enter virtually as much data as he likes but they will be stored in the table only when the button is clicked,but i don't know if this is possible since my form is bound to table.
Thank you all in advance,
black ailouros

View 1 Replies View Related

VBA OnClick -- Prompting User For More Than One Required Field

Jun 21, 2005

I'm using VBA to prompt users for two required fields. One I can do, but with more than one I get into issues like only 1 message box appearing at a time. If both fields are blank I want both messages to appear. Here's my code, it's in an On click function:

If IsNull(req_file_num) = True Then
MsgBox "Required field: File #. The appropriate file number must be entered before this PO's status can be changed to Filed."
GoTo Err_Command_158_Click2
End If

If Not [req_filed_date] Then
[req_process_status_rec_id] = 8

MsgBox "Your changes have been processed. This purchase order now has a status of Filed."
DoCmd.Close acForm, "frm_req_file"
GoTo Err_Command_158_Click2
Else: MsgBox "Required field: File Date. The appropriate date must be entered before this PO's status can be changed to Filed."
GoTo Err_Command_158_Click2

End If

Err_Command_158_Click2:
End Sub


I realize that it only shows one message box because I have the GoTo Err_Command_158_Click2 command, but I couldn't figure out how else to keep it from continuing through the code. If both "req_file_num" and "req_filed_date" are null, then I don't want the "req_process_status_rec_id" to change to 8 and have the form close.

Thanks for your help!

View 2 Replies View Related

Modules & VBA :: Prompting User To Select Answer

Aug 7, 2013

I'm trying do a Select Case on a form control where the user is prompted for information depending on the value in the control.

Here's a generic example:

If field1 = "Vegatable" then
Select 1 for Brocolli
Select 2 for Lettuce
Select 3 for tomato

If field1 = "Fruit" then
select 1 for "Banana"
select 2 for "Apple"
select 3 for "Peach"

View 9 Replies View Related

Prompting User To Accept Or Decline Potential Duplicates While Importing Excel Table?

Jun 28, 2013

I have a database table to which I will be adding multiple records from various other contributors. I would like to build a simple, import-friendly excel table that I can mail out to others, so that they can fill it out and send it back to me. Then I will save import steps as a macro or something similar, so that I can easily import their data.

The hard part is that I would like a way for Access to compare the new records with the existing records, identify potential duplicate records by predetermined criteria (in other words, 'wild-carded' to some level of specificity, since duplicates could be off by just a few characters), and then prompt me to examine each record to be imported alongside however many existing records that have been identified as potential duplicates. Then I as the user could:

1. accept the import record as a new record

2. decline importing that record since it is a duplicate of an existing record, or

3. edit by hand an existing record that is a duplicate of the proposed import, but may require additional information, and then decline to import the new one.After each prompt, I would like the import process to continue to the next potential duplicate, and when there are no duplicates, to complete the import and display a message box that says "Import complete".

View 6 Replies View Related

Reports :: Generating Multiple Reports Based On 1 Query

May 2, 2014

I have a queries that do all the calculations and dumps the output to Query X for all different types of customers. At the moment I am required to generate a report for each of the customers and send it to them, manually.

End Goal:Initiate a Macro (at a given time at a given frequency) that would run a process to generate different reports for all different types of customers using a standard report template. I am also trying to avoid having to create a report for each customer (as the customer base grows, the report count will grow) so looking at something that would look into Query X and generate # of reports depending on number of customers.

View 6 Replies View Related

[Reports] Help With Query-reports

Jul 27, 2007

Hi there, I have made a custom form to open up when I start a query which then enters the information I enter in the form, into the query. The query then produces the results in a report.

My problem is, I wanted it to display all the records when I leave a field blank. BUT when I enter a "Location/Contract", it brings up the records I want with that location/contract but it also brings up some records that don't have an entry there. Am I making sense?

If not, here is some screenshots:

I enter "Bridge Cross Rd"



And it brings up those without a location/contract...




Any Ideas?

The code for my report is:

Code:Option Compare DatabasePrivate shadeNextRow As BooleanConst shadedColor = 13356495' Const shadedColor = 15726583 ' alternative shade colors' Const shadedColor = 14078404' Const shadedColor = 13356495' Const shadedColor = 14281974Const normalColor = 16777215Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) On Error GoTo Detail_Format_Error' Choose a color based on the shadeNextRow value If shadeNextRow = True Then Me.Section(acDetail).BackColor = shadedColor Else Me.Section(acDetail).BackColor = normalColor End If' Switch the color for the next row shadeNextRow = Not shadeNextRow Detail_Format_Exit: Exit SubDetail_Format_Error: MsgBox "Error " & Err.Number & ": " & Err.Description Resume Detail_Format_ExitEnd SubPrivate Sub Detail_Print(Cancel As Integer, PrintCount As Integer) If PrintCount = 1 Then txtPageSum = txtPageSum + Cost End IfEnd SubPrivate Sub PageHeaderSection_Print(Cancel As Integer, _ PrintCount As Integer) txtPageSum = 0End SubPrivate Sub Report_Close() DoCmd.Close acForm, "Master"End SubPrivate Sub Report_NoData(Cancel As Integer) MsgBox "There are no records to report", _ vbExclamation, _ "No Records" Cancel = TrueEnd SubPrivate Sub Report_Open(Cancel As Integer)' Set public variable to true to indicate that the report' is in the Open event bInReportOpenEvent = True' Open Sales By Category Dialog DoCmd.OpenForm "Master", , , , , acDialog' Cancel Report if User Clicked the Cancel Button If IsLoaded("Master") = False Then Cancel = True' Set public variable to false to indicate that the' Open event is completed bInReportOpenEvent = FalseEnd Sub

And my Form:

Code:Private Sub cmdCancel_Click() DoCmd.Close End SubPrivate Sub Form_Open(Cancel As Integer) If Not bInReportOpenEvent Then ' If we're not called from the report MsgBox "For use with the Reports only", _ vbOKOnly Cancel = True End IfForm_Open_Exit: Exit SubEnd SubPrivate Sub OK_Click() Me.Visible = FalseEnd Sub


And for some reason this is what my Query looks like:




Any help?????

View 8 Replies View Related

Exception Query/Reports

Nov 8, 2006

Hi

I've got an activity logging system in which users add their daily activity. As an information check, I would like to generate a report which identifies days where the user has omitted to enter activity for given dates.

Is there an inbuilt function that Access has or can anyone point me in the direction of some code?

All help greatly appreciated.

View 2 Replies View Related

Query/Reports Question

Feb 24, 2007

Is it possible to create a report based on a query which searches a table and counts the number of times a product has been ordered within a date range?

If so, can it be presented in a simple table showing each product and the number of times it was ordered along with the date range used?


Thanks!

View 2 Replies View Related

Reports :: Total From Query Not Available?

Sep 30, 2014

I have a query that is filtering records from a table, I have used the Totals row in the query to Group By and provide Count of totals. The datasheet view of the query has the total row and is working fine. I would like to display the total row on a report, using the query as the record source.

It does not seem to be available, so I put a text box in the footer of the report with the Control Source set to: =Sum([CountOfPermit_Type]), but that only returns an error.

View 2 Replies View Related

Reports :: Using A Value On A Report For A Query

Jul 22, 2015

I have a report when i send units back to the customer, the report generates an ID in a list box (a query picks the last ID used and adds 1)

after the report prints i use an update query to mark the units as "shipped" with the dates in the main table. i need the update query to use the value from the list box to update the value in the table.

View 2 Replies View Related

Parameter Crosstab Query And Reports

Apr 6, 2006

I have searched and searched for a thread before posting this, there are some discussions on related issues, but I could not find a solution. This is my problem:

I have a table with Incident_Type (a total of 6 selections from a combo-box), Incident_date, Incident_SubArea(25 selections from a combo-box), a check box for IsStaff_reported and all these are recorded by Incident_ID.

I have created a monthly report based on a parameter query that prompts for start and end dates using a custom form for incidents.

Now I need parameter (again start and end dates) cross-tab queries for number of incidents (i.e. count of Incident_ID) that are 1. IsStaff_reported, and 2. Not IsStaff_reported. to show up in a single report.

I dont know if that is too much to ask for or is there a simple way to accomplish this. Any help is appreciated.

View 1 Replies View Related

Reports :: Filter A Report Not Query

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

Reports :: Report Based On A Query?

Nov 3, 2014

I want to be able to run a report based off my "Allot_Q" query. I have a button to perform the report but would like the button to update the query and run my report based on my selection text boxes. Right now I have one button the runs the query based on the selection and then another button to run the report. My boss wants one button to pull the report based on the selection.

View 1 Replies View Related

Queries :: Linking Query To Reports

Apr 19, 2015

When I make a search using a search form, I get a table with the results that match.Can I make a link from this table to a report to display the details of the matching product?One of the reasons I need to do this is because one search may bring up more than one product.

View 1 Replies View Related

Reports :: Query Data To Appear On Report

Jun 3, 2013

I am having trouble getting data to appear on my Report. The report is based of a Query, qryLabel. When I run qryLabel the correct data is displayed but when I try to use this data on the Report, I get an #Error or #Type. Here are the methods I have tried so far to get the data on my Report:

DLookUp
=DLookUp("[StoneLength]","Stones","[StoneName] = Forms![Product]![ProductID]")

Using The Query
=[qryLabel]![StoneLength]

Using the Table
=[Stones].[StoneLength]

View 1 Replies View Related

Reports :: How To Add Recordset In Report Query

Aug 14, 2013

Code:

Private Sub Command37_Click()
Dim db As DAO.Database
Dim rsItems As DAO.Recordset
Dim SQL As String
Dim currentItemNumber As Long

[code]....

adding record set in report and displaying a report..i want every record to pass thru recodset and create a report for every record separately

View 1 Replies View Related

Reports :: Run A Report From Query With Different Results

Jun 6, 2013

I am relatively new to writing databases in access, I did some a long time ago, but cant remember what on earth I used to do.

I have created a database with all the information I need it and have a query set up that gives different results depending on the information the user has entered

The user decides what the query will display though a form.

I want access to generate a report with the information in it that the query chucks out.

However the information the query gives changes every time depending on the user input.

View 5 Replies View Related

Reports :: Import Only One Record From Query

Jun 5, 2013

I have a report already made but is it possible to import only one record from a query?

View 1 Replies View Related

Reports :: Report From Query Based On ID

Oct 10, 2013

there is a query and report "01 qry Main" and from the main FORM I like to print out into txt file actual record, my code is:

Private Sub Command24_Click()
On Error GoTo Err_Command24_Click
Dim stDocName As String
stDocName = "01 qry Main"
DoCmd.OutputTo acOutputReport, "01 qry Main", acFormatTXT, "D:10 DbaseCTQ stuffsaveReportFormat.txt", False

code]...

there should be an option "ID = " & Me.ID.Value or something like this to print out only actual record.

View 6 Replies View Related

Reports :: Get Last Record To Query Correctly

Sep 17, 2013

I have a table that gets updated by a query(For Invoices).When I query that Invoice table for the last record, I do not get the last one written. It stops at number 12. I am using the Totals option with Invoice number field and setting to "Last".is there another way I can get the last record to query correctly. I am trying to populate an invoice report.

View 6 Replies View Related







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