+ Reply to Thread
Results 1 to 2 of 2

Strange Excel VBA -> Access behaviour

  1. #1
    Registered User
    Join Date
    08-27-2013
    Location
    Zagreb, Croatia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Question Strange Excel VBA -> Access behaviour

    I have an excel table that is not shared and is used by 40 people approx. In that excel i have VBA macro so when someone changes a cell, that macro saves that value in access and makes that value locked.

    What is by your opinion best way to present user that value IS saved (msgbox is out of the question) and what is saved and how to even check that?

    Currently my macro is doing this:

    Value is changed, changed event is fired, excel opens connection to database, it forms sql command, saved that value in database, then it delete value in a cell, runs sql select query for that recordset and presents that value in that cell. So basically if user enters something, if cell empties, value is not stored. But ... there is but. I have some users reporting that it did show value but after reopening an excel file (while opening it retrieves everything) those values are not there.

    What do you think how to solve it?

    I even considered that when user finished, it clicks button save and macro goes line by line and just saves everything that was changed. But ... that would be a lof of queryies ad once, and I cannot build bigger query than 1024 characters if I understood MSDN correctly. Any suggestions? per user I have at least at once 120 records filled up.

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Strange Excel VBA -> Access behaviour

    I think you will need to attach the spreadsheet to get anyone to make a comment


    click on the * Add Reputation if this was useful or entertaining.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Strange Excel spreadsheet behaviour.
    By vbarookie in forum Excel General
    Replies: 2
    Last Post: 03-31-2009, 05:58 PM
  2. Excel ListBox strange behaviour
    By sean_f_howard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2007, 06:32 AM
  3. [SOLVED] Strange behaviour - loading Excel clears Clipboard
    By Trevor Shuttleworth in forum Excel General
    Replies: 1
    Last Post: 08-19-2006, 05:10 PM
  4. Excel strange (erroneous?) decimal behaviour
    By DoctorG in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-25-2005, 05:05 AM
  5. Strange Excel behaviour in debug mode
    By valk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2005, 06:56 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1