User Profile

Collapse

Profile Sidebar

Collapse
WannabePrgmr
WannabePrgmr
Last Activity: Dec 11 '13, 08:00 PM
Joined: Jan 5 '10
Location: Cleveland, Ohio
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • WannabePrgmr
    replied to Basic Excel Macro to create graphs
    Perfect! Thanks for your help! After messing around for an hour or two, I figured out the rest of what I needed for this as well! Thanks for getting me started and following up!...
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    replied to Basic Excel Macro to create graphs
    I apologize. I didn't know if I should've replied here or post new, so I did both.

    Thank you for the great start! This worked exactly like you said it would, however after the chart was created, a run-time error came up stating "The specified dimension is not valid for the current chart type". When I click "Debug", it highlights:

    Code:
    ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet1&
    ...
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    replied to Basic Excel Macro to create graphs
    Thank you for the great start! This worked exactly like you said it would, however after the chart was created, a run-time error came up stating "The specified dimension is not valid for the current chart type". When I click "Debug", it highlights:

    Code:
    ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet1"
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    started a topic Basic Excel Macro to create graphs

    Basic Excel Macro to create graphs

    I have a simple Excel Spreadsheet that continuously updates with data (both columns and rows). I am trying to build a macro that will start with the first row (which is actually row 2) and graph all the data in that row until an empty cell is found and stop. Then I need it to loop to the next row and graph that row until an empty cell found. I need it to continue row by row until and empty cell is found in Column A. I'd like each of the graphs...
    See more | Go to post

  • Criteria for Query in code instead of query itself

    I am working in Access 2003. Everything was working great, until I started adding criteria to the query! I am now trying to remove the criteria from the query itself and use code instead (I've verified that removing the criteria from the query makes it work again).
    I'm trying to code something like this:
    Code:
    ListSteve.RowSource = "qryOlderT WHERE [StartDate]_
     Between Date()-[Text39] And Date()-20000"
    [Text39]...
    See more | Go to post

  • WannabePrgmr
    replied to Looping through a query
    I figured it out! Classic idiot move on my part! It was actually only [Bendix Number] that was causing the issue and it was because it was not listed in qryOlder.
    Thanks for your help and explanation again! I learn so much from you guys!!!!
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    replied to Looping through a query
    ADezii, I guess I wasn't looking close enough to the emails!!! You're right, when I take away the ! it repeats whatever data is in the first record. But if I put the ! there, the following error comes up "Run-time error '3265': Item not found in this collection".
    It only happens on [Customer Number] and [Bendix Number].
    I'm going to google the error and see what I find.....
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    replied to Looping through a query
    Interesting! Here is the code that works. As soon as I put the ! back in front of those that do not have it, "object not founs" comes back.
    Code:
    .....![Type] & vbCrLf & "Product: " &_
     [Product Type] & vbCrLf & "Status: " & ![Status] &_
     vbCrLf & "Bendix Number: " & [Bendix Number] &_
     vbCrLf & "Customer Number: " & [Customer
    ...
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    replied to Looping through a query
    NeoPa, Thanks for your response! I believe ADezii was simply pointing out what he changed. The "Set objMessage = ..." code was in the original, messy (sorry about that) code that I posted.

    Question for either of you.....I kept the ! in front as you did but for a few of them it kept coming back with an "object not found" error. I had to simply delete the ! and it's working perfect! So most of them still have...
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    replied to Looping through a query
    ADezii, thank you for such a quick reply! Thanks for the corrections! I don't know how I missed .MoveNext (it was in there at one point).
    Now it only sends the same record (the first one) 3 times. So I get three identical emails with the same information in them. 3 happens to be the amount of records returned in the query (and I tested it by deleting one so there were only two in the query. It then sent two of the first record).
    ...
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    started a topic Looping through a query

    Looping through a query

    I have a form that is brought up at startup (frmSteve) and I would like to run a query (qryOlder) in the "On Current" for that form. The query captures any record that is over 14 days old. What I need to do is send an automatic email to myself for each record that came up in the query.
    The query works fine. The code I have to auto-email works fine. I am just completely clueless as to how to set up the code to loop through the...
    See more | Go to post

  • WannabePrgmr
    replied to How to sort combobox data on the fly?
    Thanks Jim Doherty! That did it perfectly! I appreciate the help very much.

    NeoPa, thank you for your input. I am learning on the fly and very much jumped in head first so there is a lot I have to learn to correctly set these databases up.
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    replied to How to sort combobox data on the fly?
    There is a table for each product type. So the case statements pull the correct table for "Model" whenever the product is selected in Product Type.

    I tried to sort the tables themselves and they do sort in the table view, but not when they are listed in the combobox when they are called.

    Thanks
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    started a topic How to sort combobox data on the fly?

    How to sort combobox data on the fly?

    In Access 2003, I am trying to sort the combobox "Model". The "Model" rowsource is chosen based on the "Product Type" choice (i.e. Compressors, Actuators or Valves).

    How can I code it so that each choice loaded as the rowsource will be sorted in ascending order.

    I have the following code:

    Code:
    Private Sub Product_Type_AfterUpdate()
        Select Case Product_Type.Value
    ...
    See more | Go to post

  • Adezii,

    It definitely took care of that issue, but something else has come up as a result that doesn't happen all the time.

    What happens, when it happens is that if you type in a reference number, it will bring up a different reference number (seems to be random) and an error comes up:

    Run-Time error '3077':
    Syntax error (missing operator) in expression

    If I click on "Debug",...
    See more | Go to post

    Leave a comment:


  • Thanks NeoPa! I set it up different, but I'll check out what you have as it looks much less complicated (as usual).
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    replied to Problem with left(text,#) function!
    Wow, do I feel like a HUGE idiot! I guess I was over doing it, as usual! I had picked up one too many things at once and was trying them together!

    Thanks Missinglinq! I appreciate the help very much!
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    replied to Problem with left(text,#) function!
    Directly in a query:

    Code:
    AreaCode: format([Phone Number], left([Phone Number], 3))
    Where "Phone Number" is a phone number. The field is a text field and I have an input mask to force the number n the following format:

    1234567890

    The problem is that if the first three (area code) contain a "0", it will pull the numbers up to the "0" then copy the entire number after...
    See more | Go to post

    Leave a comment:


  • WannabePrgmr
    started a topic Problem with left(text,#) function!

    Problem with left(text,#) function!

    I keep seeing that if the "text" part of
    Code:
     left(text, #)
    is "" or zero, that it will return "text", which is what it is doing in my situation.

    These are phone numbers that I'm trying to pull the area codes from.

    It's actually starting to return the first 3 characters on the left, until it see's a "0" and then it returns the entire number ("text").
    ...
    See more | Go to post

  • I keep seeing that if the "text" part of
    Code:
    left(text, #)
    is "" or zero, that it will return "text", which is what it is doing. It's actually starting to return the first 3 characters on the left, until it see's a "0" and then it returns the entire number ("text").

    I have this field set as a text field but apparently that isn't good enough.

    Does anyone know how to code...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...