Search results

  1. G

    Refering to a variable with a string - please help

    wow, thanks bob.. you have always been an amazing help. Thanks again for the support. Ill keep trying to find out if it is possible. Jason
  2. G

    Refering to a variable with a string - please help

    Ok.. thats not it either, thanks so much for your help... maybe i can better explain by showing you a working example with an array The code below, if you test it, allows me to refer to an array with a variable... maiking it easy to pass more arrays to the function. I would like to do the same...
  3. G

    Refering to a variable with a string - please help

    Maybe i can re-write it so it makes a little more sense Sub test() tmpResult = updateValues("Name_of_Variable1") tmpResult = updateValues("Name_of_Variable2") end sub Function updateValues(Dim myValue as ??) myValue = 1 + 2 + unknownFactor End function So in turn the sudo code would something...
  4. G

    Refering to a variable with a string - please help

    That is correct, I want to update the variable that i started with...
  5. G

    Refering to a variable with a string - please help

    I will attempt and keep this short and sweet, I essentially have a lot of code that is duplicated within a case statement that updates the values of separate variables before performing computations... my question is this, i would like to be able to pass the function the name of a variable and...
  6. G

    DLookup not getting new data

    I have a slight problem. I have a form that is controlled by vba, it starts out on record one. it then uses dlookup to check a query this query is looking at the current forms date text box. it then retrieves the value that i am looking at, the vba then moves to record two and peforms the...
  7. G

    Help with a query... hard to explain

    MVP = Most Valuable Programmer!!! Thanks again!! Jason
  8. G

    nearest date in two tables -- help

    Hi all, Quick question... i am trying to grab the nearest date using vba... I have two tables... (Table 1) 2/1/2008 3/1/2008 4/1/2008 and (table 2) 2/20/2008 2/21/2008 3/21/2008 What i want to be able to do is if someone is looking at value 3/1/2008 in table 1, it would show the date...
  9. G

    Help with a query... hard to explain

    here is one last question... how do i modify your query in order to create a running sum by month? Ill try to figure it out myself and will let you know if it works... thanks
  10. G

    Help with a query... hard to explain

    Wow that was amazing pbaldy... i worked on this thing for 8 hours yesterday and couldnt figure it out and you do it in only a few lines of code... I am going to have to put this code in a vault... a vault wrapped in gold. I don't think many people have an easy time with this concept... i find...
  11. G

    Help with a query... hard to explain

    Ive got it working by making another query and referencing that one... However, since i am trying to create a running sum i seem to be having some issues. I want to be able to create a query which shows everytime a debit or credit is being made. Currently i can only get running sums for months...
  12. G

    Help with a query... hard to explain

    Thanks, ill check this out! I will get back to you after i check it out. Have a good time with you.
  13. G

    Help with a query... hard to explain

    Here you go, this should work
  14. G

    Help with a query... hard to explain

    Here is the sample database... (Its actually a Rar file) you can see what im trying to do... internal_fuel_summary_3 is the query i am trying to get working... cur_Value is the field which should be taking the running total and subtracting the used gallons and that should equal the current...
  15. G

    Help with a query... hard to explain

    Hi all!, i would really appriciate it if you could help me out. I have this complex query... in one table i have dates and costs associated that show when fuel was put into the system such as: 1/1/2008 -- $200 1/20/2008 - $100 1/25/2008 - $150 I then have another table that has data when fuel...
  16. G

    Average Miles Per Gallon Query Require assistance!

    thanks boblarson, That did the trick, i do not know how i overlooked that function. Thanks again, Jason Foster
  17. G

    Average Miles Per Gallon Query Require assistance!

    thanks i will check that out.
  18. G

    Average Miles Per Gallon Query Require assistance!

    i have a quick question... I am having a slight problem with a query that i am using in my database... i am trying to calculate miles per gallon. The query i have set up looks at the previous records odometer value and subtracts the current odometer value to get the miles driven since the...
  19. G

    Loading form.. please help

    Hello, I need some quick help. I have a database which as a Switchboard, the switchboard can take a few seconds as its performing some tasks in the background upon intialization... What I would like is a form that pops up temporarily that says (Please Wait) The problem is, my please wait form...
  20. G

    Setting Form's RecordSource with Macro

    wow fmm I just wanted to say i was rummaging through old posts and found this topic. What a great little idea. A nice workaround to get around some limitations as i understand. Just wanted to let you know you helped someone else out! Thanks Jason
Back
Top Bottom