Filter Issue In Form Header

May 12, 2006

I have a basic knowledge of access and therefore not VB conversant. So any advice please keep simple.

I have created a form with which I already total the sum of the value of all records in the form header, using sum function. When filtering the form the expression returns the correct value for the record set filtered on.

What I also want to achive is a total value for certain records within the filter. I have tried DSum function and IIF argument unsuccesfully.

The record information is as follows:

Form name: Reservations
Field to sum: [No]
Condidtion: Where the [SalesItemID]='EP006'

Expression used:

=DSum(" [No] ","Reservations","[SalesItemID]= 'EP006' ")

This does return the correct number of SalesItem=EP006 in the form when the form is unfiltered, although it does not change to display the value of the records in the filtered set.

Anyone give me some not too technical direction.

Many thanks


Mariner


mariner
View Public Profile
Send a private message to mariner
Find all posts by mariner
Add mariner to Your Buddy List

Sponsored Links

View Replies


ADVERTISEMENT

Reports :: Combobox In Report Header For Filter?

Aug 21, 2013

I have a report, rptAllCSCS which is based on a query qryCSCS2...

One of the fields in qryCSCS2 is Status and each record is either "Current" or "Not Current"...

My report is being viewed via a navigation form, so one of the tabs says CSCS and when clicked the user can see the report...

I have added a button in the report header which when clicked opens the report in print preview so the user can print the report. (Done with a macro in the On Click of the button.)

I would like to add a combo box cmbStatus which has the values "Current" and "All" in the report header. (Current will show only when the Status field = Current and All shows all records so Current and Not Current together). This will act as a filter for the user to see the corresponding records and they can then press the print button or just view on screen.

I haven't worked with filters before except when you specify the criteria in the query and point it to a control on a form which then opens the report... As this report is already open I'm having trouble, as well as specifying the "path" when something is in a navigation form being a bit tricky...

View 6 Replies View Related

Forms :: Copying Field Values From Form Header To The Form

Sep 18, 2014

I have form named home page in this homepage form in the form header i have inserted some fields from some tables like province, district, community etc. these fields are unbound and are used for filtering purposes, when i select a province all districts related to that province displayed and when i select a a district all related communities displayed, there is a one to many relationship between district table and community table,

What I want is, when i select a district on the form header(it is unbound as i explained before) of this homepage form, the DistrictID should appear in community subform under DistrictID(as there is a one to many relationship between district and community) .

For more clarification find the snap shot attached...

View 1 Replies View Related

Searching Form Header

Apr 14, 2006

Hi all. This is one has been troubling me for quite a while and once more I seek for solution to the right (hope so) place.

I have imported from a Excel a table and based on that table I created a form. But when I try to add a combo box on the form header in order to search for a particular record to display on screen the error on the attachment occurs. I didn't add even a single character of code, and the error message seems weird.

I tried doing the same thing on another pc (an older one) and it is working fine...I've added search via combo boxes in the past without any problems but this time something isn't going right.

Any clues?

View 1 Replies View Related

Form Header Causes Flicker

Sep 1, 2005

The problem: If a form's header is set to visible, all objects on the form will flicker when the scrollbar is used.

This problem has annoyed me for some time and I figured to do a little testing. I have narrowed the problem down to when the form header is visible, all objects flicker. I was wondering if anyone knows a solution to this or if anyone has similar experiences with this problem. I have done some searches and haven't found any solutions. I have a set of form controls that I want on top all the time but don't like toolbars. I prefure to customize the look myself. Any solutions/help/words would be awesome. Thanks for your time.

-Jake

View 3 Replies View Related

Filling In Report Header With A Form Value

Jun 15, 2013

I currently have a form that will simply display the values from a query, which was called by a form. What I want is for the header (a text box) in the report to have the value that the user selects from the form that calls the report. Also, when the form calls the report, it only prints it off. I would like to know how the form can just display the report instead.

View 1 Replies View Related

Form Header - Can I Move It To Side Of Form?

Sep 6, 2006

Hi all, I basically have a long form which requires me to use the right side scroll bar to complete everything.

I currently have a top header area (which is great because it is viewable even as you scroll all the way down).

I'm wondering if Access is capable of having a "side header" (for lack of better words), i.e. on the right hand side have just a few buttons or fields that always stays there even though I scroll all the way down the form? This would work the same way as the header, just on the side instead.

Any help would be appreciated.

Thanks in advance!

View 1 Replies View Related

Sorting Data In A Form By Clicking On The Header

Aug 31, 2006

Is there a way to sort data in a form by clicking on a corresponding control (e.g. label/txtbox) in the FormHeader?

View 5 Replies View Related

Forms :: Toggle Switch On Header Of Form

Apr 14, 2015

I would like to create a command button on the header of a form. The button should perform a toggle switch: click once to activate the task and click it again returning original state. I can create the command button to perform a task but do not know how to return to original state. The button should have indicator showing which state is in.

View 2 Replies View Related

How To Create Filter Button On Form And Filter Records

Nov 26, 2012

How can I create a "Filter Button" on a form and filter my records? I create a textbox on a form and a filter button on the right. Then I click the filter futton, the filter function will search/match the content in the box through the datasheet. And then the results of the filtering will be pop up on the split form datasheet.

View 3 Replies View Related

Modules & VBA :: Form Header Not Showing In Continuous View

Feb 20, 2015

I have a mainform. When I click on a command button, it opens up another form. That form is designed to be as a continuous form, yet it does not display the header. The header is present in the form view. I have attached the screenprints to show the header in my form and the corresponding properties window.

View 4 Replies View Related

Forms :: Possible To Show Form Header In Datasheet View?

Sep 9, 2014

I have a form with a query as rowsource.When I open the form in data sheet view form header is not showing(Though it is visible in form view).Is it possible to show the form header in datasheet view?

View 2 Replies View Related

Modules & VBA :: Form Header And Detail Backcolor Error

Jul 10, 2013

A user requested a change that would change the form header and detail back ground color to white when they click the button print record and then change the color back all in one click after the record prints. I keeping getting a run time error, type mismatch on the line where to code is to be changed. The colors are numbers not vbColors. I am using Access 2007.

Code:
Me.FormHeader.BackColor = "#FFFFFF"
Me.Detail.BackColor = "#FFFFFF"

View 3 Replies View Related

Forms :: Header Controls Invisible On Split Form

Oct 30, 2013

I've placed an unbound text control in the header of a Split Form. I also placed a label in header of a split form.But, neither is visible until I select a row on the split form datasheet.The Visible property is set to yes and the fore color is white and the background is transparent.

View 6 Replies View Related

Forms :: Double Click Event Of Form Header

Nov 17, 2013

I want to add an event on Form Header when double click it will filter the values, which i did with macro, but could it happen on second time double clicking it it refreshes whole as original?

View 2 Replies View Related

Freezing Header Of A Form In Overlapping Tabs Instead Of Tabbed Documents

Feb 16, 2015

I have a form (frmMain) which has a header with some basic links and text boxes I would like to keep as a frozen pane on top as the user are scrolling down the detail section of the form. The detail section does include a subform if that makes a difference (frmhome). When going to Options>Current Database> tabbed documents, the form header stays frozen perfectly.

I however would like to use "Overlapping windows" as the form center aligns in the Access window instead of left aligning when using "tabbed". So either :

1) how do I keep the header frozen in "overlapping" or
2) how do I center align the form in "tabbed" view, as right now the form just wants to go as far left as possible in the full Access window.

View 1 Replies View Related

Forms :: Filter Button On Form As Filter

Aug 1, 2013

I have placed a filter button on a form as a filter and written the following on-click event procedure:

DoCmd.SetWarnings False
DoCmd.RunCommand acCmdApplyFilterSort
Me.Filter = "ACCOUNT_DO_NOT_EMAIL = 'HS'"
Me.FilterOn = True

When I click the filter button I get a blank message box titled 'Microsoft Access" and an OK button, when closed the filter works perfectly.I have checked this procedure in other forms and it works without showing the blank message box.The only difference with this form is that its control source is a union query.

View 10 Replies View Related

Forms :: Filtering Records Which Form Will Initially Display From Header File

May 30, 2015

I have a header/detail form working well. I use a Dsum to update a TOTAL field in the header - based on all the detail records for that Header.

However, I want to 'filter' or condition the records which the form will initially display from the Header file. I have a conditioning field (Invoice date) in the header which should 'block' it from display on the form. I may also desire to SORT the selected Headers record into a different sequence before display...

Looks like any "filtering" I try on the header table makes it difficult to go back and update the TOTAL in the Header?

View 2 Replies View Related

Forms :: Combobox On Navigation Form Header - Query Table To Show Right Info

Mar 24, 2013

I created a navigation form on which I put a form call [frmAnimal Setup].

I then placed one combo box on the Navigation frm Header. I have bound it to its source and it actually queries the tbl and show the right info. However when I select one, it will not let me.

In addition, [frmanimal setup] will not allow me to select a breed although it does query the tbl and shows the right information.

View 1 Replies View Related

Reports :: Button On Form To Generate Report With Parent Info As Header And Items In Subform As Detail

Jun 18, 2013

I have a main form (Parent) along with a subform(Children). I want to have a button that generates a report with the Parent information as a header and the items in the subform as details. In addition, I want the report to show only the children that were recently added not all of the children.

View 1 Replies View Related

Forms :: Applying Sort And Filter In Form Results In Design Changes To Form

Dec 27, 2014

When I'm applying a sort and filter in a form, Access is updating the Filter and Order By properties of the form, so that it is possible to re-use in conjunction with Filter on Load and Order By on Load properties. However, a consequence of this is that when the form is closed, it prompts the user whether they want to save the design of the form. I want to circumvent this as I don't want to re-use the sort and filter and I don't want to be prompted to save the design of the form.

Although I can circumvent this by closing the form using a method that doesn't prompt for saving, the additional complication here is that the form in question is in the Navigation subform of a Navigation Control. Hence when I click on a another Navigation button, it (not me) closes my current form and hence prompts me whether I want to save the design of the form (if I have been sorting and/or filtering). I can't see how to circumvent this and the prompting is resulting in unacceptable usability.

View 2 Replies View Related

Forms :: Filter List Box On Form By Using A Control On Form

Jan 14, 2015

On a form I have a:

control called "FilterListBox"
list box called "lstCustomer"
option Box called "optCustomerType"

When the user selects an option in the option box, "FilterListBox" is updated to either "1", "2" or "1 or 2"..One of the fields in the query for "lstCustomer" is "CustomerType" and its criteria is set as follows:

[Forms]![frmPrintHowCustomersPaidInvoice]![FilterListBox]

if "FilterListBox" = 1 the query for "lstCustomer" returns the correct records
if "FilterListBox" = 2 the query for "lstCustomer" returns the correct records

But if "FilterListBox" = 1 or 2, no records are returned.

View 9 Replies View Related

Forms :: Filter A Form Based On A Field In Another Form

Jul 13, 2014

I have a form (Suppliers) with a button that opens another form (Product List).

At the moment the form (Product List) is set as a pop-up form and when opened lists all products.

I want to filter the pop-up form to only display products for the current supplier displayed in the Supplier Form.

I have tried the following below without success - I have varied this but the filter does not apply ...

Private Sub Form_Load()
DoCmd.OpenForm "Product List", acNormal, , "SupplierID = " & SupplierID
End Sub

View 3 Replies View Related

Forms :: Filter Second Form Based On Text Box In First Form

Apr 30, 2014

I have a button that opens a second form and filters that form based on a text box on the first form(which remains open). the problem is that it does not filter the second form unless the second form is already loaded for some reason.

For example if i click on the button it opens the form Unfiltered then i go back to the previous form without closing the first form, click the button again and it is then filtered .

I attached the screen shot of the macro for the button and there are no other events on the second form.

View 5 Replies View Related

Forms :: Filter Form Based On Another Form?

Jun 24, 2013

i have one form filtered based on a field value, now i want to open another form which has only the same member ID but not the actual field on what the first form had been filtered (so i cannot just use the same filter) , so what i want to do is that the 2nd form should only show the members which are in the first form.

View 3 Replies View Related

Modules & VBA :: Filter Records - Adding Unbound Date Listbox To Filter String

Feb 10, 2014

I'm trying to hash two scripts I've found into 1 functioning filter, however I'm still relatively new to vba and can't figure out how to get this working.

I'm trying to use Allen Browne's Search Criteria:

with another snippete of code I found here:

Code:
'Purpose: This module illustrates how to create a search form, _
where the user can enter as many or few criteria as they wish, _
and results are shown one per line.

[Code]....

It's the date part I'm having trouble with, the rest of the search criteria work fine without the date, but I can't get it working when I try to modify and merge the date sections of each code.

Also I'm using a listbox for the "Yesterday";"Last 4 days";"Last 9 days" and not a combo box.

View 2 Replies View Related







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