Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7433333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:39:11+00:00 2026-05-29T09:39:11+00:00

I am building an excel application that is able to list out tools based

  • 0

I am building an excel application that is able to list out tools based on a user’s input. From this input, they are able to click on tool (the tools in this case are different excel files) which then opens the new tool. Since I am running this app on a remote server and many people will have access to these tools, I would like to create a update the field isLocked in the Access database which contains all the tools information (other fields for the tool include name, path, project number). So my question is, how can I look at the tool that user opened and then go into the access database and change the field isLocked to YES? I think I’m ultimately looking for a specific type of SQL statement…

Thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:39:12+00:00Added an answer on May 29, 2026 at 9:39 am

    I’m assuming you can add this to the code which open the Excel file “tool” the user selects. Other assumptions include: tblExcelTools as the name of the table; a numeric primary key field, tool_id; a combo box control named cboToolChooser and it’s bound field is tool_id.

    Dim strSql AS String
    strSql = "UPDATE tblExcelTools" & vbCrLf & _
        "SET isLocked = -1" & vbCrLf & _
        "WHERE tool_id = " & Me.cboToolChooser
    Debug.Print strSql ' look in Immediate window (Ctrl+g) if problems '
    CurrentDb.Execute strSql, dbFailonerror
    

    You should add an error handler to deal with any problems dbFailonerror turns up.

    I think something roughly similar to that could work to satisfy your immediate goal — set isLocked to -1 (True) when the user opens the tool. However, I got no clue about how you’re gonna set isLocked back to False when the user has finished with the tool.

    Edit: I suggested that code sample thinking you would run it from Access, but you’re doing this from Excel. I don’t use Excel with user form stuff. Maybe that code could be simply adapted for ADO. Open your ADO connection to the Access db, then use: cn.Execute strSql

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an app that pulls data in from an excel .csv file and
I'm building an iPhone app that has to download an Excel (.xls) file from
I am building an application in Excel which will enable a user to select
I'm building a ComboBox in an Excel userform that gets its rows from an
I'm building an excel template (*.xlt) for a user here, and one of the
I'm currently building a MS Reporting Services Report that gets rendered to excel. I'm
I'm currently building an Excel 2003 app that requires a horribly complex form and
Building our Android app from Ant fails with this error: [apply] [apply] UNEXPECTED TOP-LEVEL
I’m building a application that monitors information on a website. The website allows you
I am building an asp.net website and I am constructing a Excel document based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.