+ Reply to Thread
Results 1 to 4 of 4

Need Help with Update Statement

  1. #1
    Forum Contributor
    Join Date
    06-30-2008
    Location
    PSL, FL
    Posts
    271

    Need Help with Update Statement

    Hello guys,

    I am looking for a bit more help for my Data Entry form for Trivia Questions.

    I have now an almost completed form. I can create new records, I can scroll between records.

    PROBLEM IS

    DAMMM I can not update. the current record.

    I want to be able to press the SaveQuestion button and it to save the data as it is in the sheet.

    I also have two other small issues

    1) When I scroll between records, I want when I reach the top or bottom of the available records for it to circle.
    The way it currently is written when I spin button up past row 1 it crashes and gives me an error. I want once Row 2 (NOT 1 because that is an header) for it to go to the last row.

    2) I do not want to be able to click more than 1 of the 4 checkboxes at anytime


    Below is my code and I have attached my Workbook.

    Thanks for any help

    Matt

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Need Help with Update Statement

    I should probably chime in on this one too. See the highlighted code for changes. I believe it does what you want:

    Please Login or Register  to view this content.
    Edit: Just noticed you had a question about the checkboxes. I will get back to you in a bit on that.

    Here is the code for the checkboxes. Did I miss anything?

    Please Login or Register  to view this content.
    Last edited by stnkynts; 05-13-2014 at 10:27 PM.

  3. #3
    Forum Contributor
    Join Date
    06-30-2008
    Location
    PSL, FL
    Posts
    271

    Re: Need Help with Update Statement

    Stnkynts,

    Man, you have be a lifesaver you are going to save me and my coworkers so much time. I made such a big point on the two minor issue, I didnt explain the biggest issue I think.

    If you look at my workbook, I have a three buttons

    a new question button which clears all fields and enters the next available record number

    a submit question a button which adds all the data to the workbook.

    and a save question button which is not setup yet.

    This button is so when I am scrolling, if I make a change to a question and click Save Question it saves and updates the question in the workbook.

    This is the last pice I believe. Can you please take a look.

    Thanks


    Matt

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Need Help with Update Statement

    I believe this will take care of your Save Question Button:

    Please Login or Register  to view this content.

+ 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. Can not run SQL update statement
    By jsabo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2013, 07:45 PM
  2. VBA and SQL - help with update statement
    By jsabo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 06:57 PM
  3. IIF statement in SQL Update query in VBA
    By mhm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2013, 08:23 PM
  4. Syntax Error in UPDATE Statement ?
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-02-2011, 11:06 AM
  5. VBA SQL update statement
    By shawby in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-29-2010, 08:41 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