Results 1 to 5 of 5
  1. #1
    noaccessguru is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    Melbourne, Australia
    Posts
    68

    VBA code help


    Howdy,

    I have a Form for each of my sites and I have a combo box for the user to select the site and based on the site selected need it to open the relevant form….How do I write this in VBA? (On Click event to a command button)

    So I basically need it to say if ‘Combo Box = Victoria, open Frm_Vic, if it equals NSW then open Frm_NSW etc……(I have 8 sites all up) and I dont want to do a command button for each site.

    I’m still not that great with code!

    TIA!

  2. #2
    noaccessguru is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    Melbourne, Australia
    Posts
    68
    Figured it out

    Thanks anyway! (wanted to delete the thread but can't?)

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    How about if I mark it solved??

  4. #4
    noaccessguru is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    Melbourne, Australia
    Posts
    68
    Quote Originally Posted by ssanfu View Post
    How about if I mark it solved??
    I was looking for how to do this also but I couldn't figure it out? (maybe having a very blonde day) How do I do that myself for future reference please

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    In the green (on my computer) header just above the first post, there are options on the right :"Linkback | Thread Tools | Search Thread |Rate this thread".
    Click on "Thread Tools"... should be the third option "Mark this thread solved".

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

Similar Threads

  1. Replies: 2
    Last Post: 06-28-2013, 12:58 PM
  2. Report Code is not allowing return to main code
    By rcwiley in forum Programming
    Replies: 2
    Last Post: 06-16-2013, 10:31 AM
  3. Replies: 7
    Last Post: 05-28-2013, 09:11 AM
  4. Replies: 1
    Last Post: 05-04-2013, 12:19 PM
  5. Word code in Access - How to modify my current code
    By Alexandre Cote in forum Programming
    Replies: 0
    Last Post: 11-15-2010, 08:26 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