Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Apr 2003
    Location
    Calgary, Alberta
    Posts
    327
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Update Textbox based on Query (Access 2000)

    I have a textbox which that is based on a query. The controls Source is =DSum("[BaseCost]","[qry_GetProductsinCurrentOpenIncomimgShipmentSUM]"). When I change a value in my form, how can I get this query to fire again?

    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Update Textbox based on Query (Access 2000)

    Do you want it to change with *any* changed value in your form? Since there is no criteria included in your DSum statement, I assume the query uses the form itself in its criteria, but you won't get a changed value until the record has been saved, not just a field changed, so you can use the OnCurrent event of the form to requery the textbox if needed.
    Charlotte

  3. #3
    3 Star Lounger
    Join Date
    Apr 2003
    Location
    Calgary, Alberta
    Posts
    327
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Textbox based on Query (Access 2000)

    OK thanks [img]/forums/images/smilies/smile.gif[/img]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •