Results 1 to 7 of 7
  1. #1
    stalk is offline Competent Performer
    Windows 8 Access 2003
    Join Date
    May 2014
    Posts
    143

    How to read check boxes fields from excel form?

    I have few fields with checkboxes on my excel form, that I would like to read into access..
    MyRecFields("Level_One") = xlsx.cells(17,"B")
    MyRecFields("Level_two") = xlsx.cels(18,"B") and soon.

    In the access table I have these fields as yes/No
    When read the excel file all these check boxes are downloaded as blank instead of checked.



    Thank you

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    If the data is in the sheet why not just link to the sheet in Access like it was a remote table? If that doesn't help then I think you'll have to be more clear, including explaining what "When read the excel file" and "all these checkboxes are downloaded" means.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I did a test of importing worksheet saved after entering data into cells via checkboxes. The values import as either True or False appropriately.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    stalk is offline Competent Performer
    Windows 8 Access 2003
    Join Date
    May 2014
    Posts
    143
    Micron, How do I link this form to access and read the data. This is kind of survey form to collect data.

    June7, I could not read the checkboxes when they are checked. All he 4 are imported as blank

    Any suggestions?

    Thank you
    Attached Files Attached Files

  5. #5
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    I thought you meant you had a user form, which that isn't. If the data is on one of your tabs (sheet) then from Access ribbon go
    External Data tab >New Data Source >From File> Excel >Browse >choose link option >ok
    You will either have to choose a sheet that contains the values, or use the option to choose a range.

    If your checkboxes are not data values, then what you have is akin to a picture of a coin and you are asking how to spend it. In other words, it's virtual and I don't know if you can or how you'd retrieve the values.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The 4 checkboxes are not linked to cells. This means checking box does not save value to a cell. Data must import from cells. This is why no data imports to Access and Access yes/no field defaults to False.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    stalk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    May 2014
    Posts
    143
    Okay, Got it. will try linking the cells.
    Thank you

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

Similar Threads

  1. Replies: 2
    Last Post: 10-07-2020, 10:30 AM
  2. Replies: 1
    Last Post: 01-24-2020, 02:49 PM
  3. Check Boxes linked to Date Fields on a Form
    By WILTSBOY in forum Forms
    Replies: 10
    Last Post: 04-25-2017, 10:16 AM
  4. yes/no fields as check boxes
    By mejia.j88 in forum Reports
    Replies: 6
    Last Post: 01-30-2012, 10:01 AM
  5. How to Query fields with check boxes?
    By JynxRD in forum Queries
    Replies: 2
    Last Post: 09-10-2010, 08:35 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