Posts by simpsonc2

    Re: Repot for total sum by date


    Thanks for the reply and example. I was going to try and have a form with start date and end date fields to submit to the query, this is where I get stuck. I can build the form but I have problems with the code.


    Any Ideas?


    :?


    Colin

    Hi Guys n Gals,


    I have an Access database with a table named 'tblAppeals'. I have already created a report that totals up the FinancialGain for the whole database. What I want to do is be able to select a date range and see the FinancialGain total for that range (i.e. select a specific month or quarter)


    There are fields named 'FinancialGain' and 'End_Date'. When the 'End_Date' is entered they would also enter a figure in the 'FinancialGain' What I'm looking to do is run a report that would allow you to choose between a from date and to date range (based on the 'End_Date' field) then show the total sum from the 'FinancialGain' from that range.


    Any Ideas how I can do this?


    Cheers


    Colin

    Re: Macro to sort rows


    Roy,


    Sorry about this but I'm still stuggling with this sorting, can you look at my code and tell me what I'm doing wrong?


    :thanx:


    Colin

    Re: Macro to sort rows


    Hi sorry for not being around lately, been in hospital. Better now.


    Still working on this loop thing, trying to get it to loop



    This code stops on the 'For', what am I doing wrong?


    :?


    Colin

    Re: Macro to sort rows


    Cheers Roy,


    I had already tried the record macro method but I'm having trouble making it loop to automating it. here is the code I recorded.



    Thanks


    Colin

    Hi everyone,


    I've downloaded the lottery numbers and imported the .csv file into excel but they are in 'drawn order' and I would like them in numerical order.


    When imported column A is the date then columns B : G are the main balls and H is the bonus ball. All I want to do is starting at row 2 select columns B:G and sort left to right, then go to the next row sort the same and continue till we hit a blank cell.


    Can anybody help :?


    Colin

    Hi everyone,


    I've done a search on this subject but found that all the results had no attached examples for me to look at.


    I have a chart in a worksheet that shows the values in column H. In the worksheet I have 3 conditional formats in column H so that if the value is:


    =0 then .ColorIndex = 37
    Between 1 - 9 then .ColorIndex = 50
    >9 then .ColorIndex = 3


    Is it possible to assign the same conditional formatting the the columns in my chart??


    :thanx:


    Colin

    Re: Create report between two dates


    Thanks for the reply. Yes the =NOW() is a default value.


    I am looking at the Northwind database for examples and found the 'Sales by Year' the closest. When you choose this it brings up a userform with the beginning and end dates to be entered. I have gone into the VBA code but cannot find how the form is created, or how the dates are used for the report? It maybe too early in the morning for me or something?


    :duh:


    Colin

    I have created a report which gives me totals from a table but I would like to run the report and specify between two specific dates. In the table I have a 'created date' field that has the formula '=NOW()', I assume could be used to select the dates in the report. Can anybody tell me how I can set up this function?


    :?


    Colin

    Hi everyone it's me again! Wonder if you can help with this one.


    I have created a bonus ball checking workbook for a syndicate at work (with the help of another forum buddy John Roberts).


    Nothings wrong it all works great but what I would like to do is, If the players entries are matched with the drawn ball, I would like the cell background to change color.


    :gift:


    Colin

    Re: Counting colored cells


    Thanks RoyUk,


    I did another search and found this:



    This works great, thanks again


    :thanx:


    Colin

    I have a workbook with 12 worksheets, each worksheet has 20 columns (which have names in and start at column 'D') and 499 rows. Each cell can be colored either one of 6 colors (ColorIndex 1, 3, 6, 11, 46 or 48).


    What I would like to do is total each column in each worksheet for each color. That way I can create graphs and reports against each name. I have searched through the threads but haven't found anything I can use. Any Ideas??


    :party:


    Colin

    Sorry guys, having a Friday brain freeze.


    I've got 2 worksheets, each have 200 rows and 250 columns of data but not all cells contain data. Is there an easy way to count the number of cells that contain data (not based on criteria)??


    :?


    Colin