Results 1 to 2 of 2
  1. #1
    gerrymouse1 is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    4

    Update form

    Hello,



    I have a table with 5 areas on it. From a combo box. Each of these areas then have items entered against them and they are each given a number. Because I have 5 different areas I can have duplicate numbers.

    eg Area 1 - Idea No 5
    Area 4 - Idea No 5

    Therefore AutoNumber does not work for this problem!

    To get around this when an idea is entered I have a button on my form linked to a query. The query simply lists the Maximum Idea number of each Area. I simply call the query and increment by 1, (Add 1)

    Code:
    Dim Num As Integer
     
    Num = Nz(DLookup("[MaxOfIdea No]", "[Max Number Of Ideas Query]", "[FI Area] = Forms![Ideas 2]![FI_Area]"))
     
    Me.Idea_No = Num + 1
    This is pretty simply. However the text box on the form does not update until the user clicks on the text box. How do I get the form to update the information after the button has been clicked????

    Any help welcome!!!!

  2. #2
    gerrymouse1 is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    4
    Problem sorted.

    I renamed the text box the name of mu command button.

    That was why I was getting strange results.

    Cheers anyway for any one who had a look and a ponder!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. update/refresh form
    By SlowPoke in forum Access
    Replies: 3
    Last Post: 09-20-2010, 09:21 AM
  2. Open form on update of field in another form.
    By thekruser in forum Forms
    Replies: 5
    Last Post: 09-13-2010, 02:12 PM
  3. Form Update
    By mwabbe in forum Forms
    Replies: 2
    Last Post: 09-03-2010, 01:18 PM
  4. can't update form-in the bottom bar of
    By ymds in forum Access
    Replies: 2
    Last Post: 07-19-2010, 06:26 AM
  5. Replies: 0
    Last Post: 05-09-2010, 08:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums