Results 1 to 5 of 5
  1. #1
    tucker1003 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    11

    Web Database Form Buttons No Wizzard!!!

    I noticed something when creating a Combo Box in my WEB database Form.
    I don't get the wizard nor I don't get as many actions to apply to that combo box or buttons either! I have 3 ebooks on Access 2010 that I reference and all never give any detailed help in how to apply actions without the wizard.

    Can anyone please help figure this out?

    I want to use a Combo Box to be able to enter a value or select from previous entered values. I am able to enter the first value, and set an action to SaveRecord, but there is no action to Add New Entry. How can I accomplish this?? Remember this is a Web Database.



    Thanks in Advance!

  2. #2
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    I'm not sure if there are any differences for a web combobox versus a combobox on an MSAccess form but on an MSAccess form, you'd set the 'Limit To List' = Yes and then use the 'On Not in List' event which has a 'NewData' parameter for the new text which you can write code against (ie. open a recordset and append the NewData value). You may also want to set the Response = acdataerrcontinue (1st line of vba code in the On Not in List event) so it does it silently.

    BUT don't get this confused with the combobox on the form for a recordsource where it only ever gets a single value for that record.

    In the Not In List event you need to write vba code to open a recordset and append the NewData value to the correct table (and then probably requery the combobox so the new value shows in the rowsource (ie. dropdown) for the combobox).

  3. #3
    khudsonllb is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    1
    Note that you cannot write VBA code for web databases. You can write the code in the client application, and it will be stored on the SharePoint site, but will only run in the client when a user downloads the database to his/her desktop.

    Some functionality is not available in web databases. This may be one example.

  4. #4
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    You can write vb.net code for web development (same syntax as vba) but typically, stored procedures/views are writtin in SQL Server and the web application then calls those procedures as needed.

    I myself avoid SharePoint for several reasons.

  5. #5
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    Quote Originally Posted by tucker1003 View Post
    I am able to enter the first value, and set an action to SaveRecord, but there is no action to Add New Entry. How can I accomplish this?? Remember this is a Web Database.

    Thanks in Advance!
    You need a stored procedure on SQL Server (or whatever backend) to actually perform the action of adding the data to the db. The stored procedure is then simply callled with the php or web coding.

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

Similar Threads

  1. Form and Buttons
    By rmohebian in forum Forms
    Replies: 1
    Last Post: 02-14-2011, 09:57 AM
  2. Edit Buttons for a Rich Text Box on Form
    By trb5016 in forum Forms
    Replies: 2
    Last Post: 10-13-2010, 12:28 PM
  3. Image Buttons Menu type form
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-30-2010, 10:17 PM
  4. Querying a database with optuion buttons
    By MattB in forum Access
    Replies: 1
    Last Post: 01-28-2010, 06:43 PM
  5. Replies: 2
    Last Post: 04-11-2006, 08:40 AM

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