Consulting

Results 1 to 6 of 6

Thread: Solved: Data Form

  1. #1
    VBAX Regular
    Joined
    Oct 2010
    Location
    Texas
    Posts
    93
    Location

    Solved: Data Form

    Hello Everyone,

    Is it possible to access an Excel Data Form on worksheet 1 that references a table on worksheet 3 without the user ever have to go to or see worksheet 3? If yes, please advise.

    Thank you for your assistance!

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Yeah, just create a simple macro with this code

    [vba]

    Worksheets(3).ShowDataForm
    [/vba]

    and assign it to a button.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Oct 2010
    Location
    Texas
    Posts
    93
    Location
    Thanks, but I'm getting a Run-time error 9: Subscript out of range
    Do you know how to correct this?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Preumably you don't have a worksheets(3).
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Oct 2010
    Location
    Texas
    Posts
    93
    Location
    Here's the code I'm using:

    [vba]Sub ShowCustomerDataForm()

    wksCustomerListing.Activate
    wksCustomerListing.ShowDataForm

    End Sub
    [/vba] I get the error message without the .Activate as well.

    Thank you!!
    Last edited by Aussiebear; 11-17-2010 at 02:45 PM. Reason: added VBA Tags to code

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Without seeing the workbook, I don't have many (any?) suggestions.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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