Results 1 to 5 of 5
  1. #1
    robx2309 is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    8

    Code a data validation list in a spreadsheet control of a form

    Hi everyone,


    I can't figure out how to code a data validation list on the active cell of a spreadsheet control within an Access form. I use the 11.0 spreadsheet, however I don't think the versions are so differents.
    Anyway, I would be so glad if someone could help me because I do really need this code for a project.

    Thanks in advance, and have a nice end of day

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,

    Why don't you use an object frame with OLE class set to excel? This way you can use all Excel's features within the control (be sure to set the data properties enabled to yes and locked to false).

    greetings
    NG

  3. #3
    robx2309 is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    8
    It sounds to be a good solution, as long as I can use all the features of Excel in my control.
    Could you tell me how to do that ?

  4. #4
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,


    • open the form in design view
    • add a new unbound object frame control
    • Choose as object type : Microsoft Excel Worksheet: you have now all excel toolbars to change the spreadsheet, if not doubble click the object.
    • Click outside the object to return to the form design.
    • If the users need to change the excel themselves, open the properties window of the control, and in the data tab set "Enabled" to yes and "Locked" to No.

    Succes
    NG

  5. #5
    robx2309 is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    8
    Thanks, it finally works
    And I had just a last question, do you know how can I do to handle the selectionChange event on that unbound object frame ?

    EDIT : It's ok I found myself the answer. Thanks for your help

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

Similar Threads

  1. Replies: 2
    Last Post: 11-25-2013, 10:56 AM
  2. Replies: 2
    Last Post: 03-29-2011, 01:26 PM
  3. Image List Control
    By Fredwards in forum Access
    Replies: 2
    Last Post: 11-23-2010, 10:30 PM
  4. Data Entry Form: Retain Selected List Box Value
    By William McKinley in forum Forms
    Replies: 1
    Last Post: 11-05-2010, 10:14 AM
  5. Replies: 1
    Last Post: 08-12-2010, 10:04 PM

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