Saving Bound Data

I am completely(well almost completely) baffled, hopefully someone can put me on the right track.
I am using Visual Basic 2010 with an Access database. The code in the exhibit attached works perfectly when I ad a new record but throws an error when I try to change a record.
Private Sub TblBooksBindingNavigatorSaveItem_Click(sender As System.Object, e As System.EventArgs) Handles TblBooksBindingNavigatorSaveItem.Click
Try
Me.Validate()
Me.TblBooksBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.MyCollectionsDataSet)
lblResultsInfo.Text = "The information you entered has been successfully saved to the Books database."
Catch
lblResultsInfo.Text = "Your attempt to save this record failed. Please check your entries, correct any errors and try again."
End Try
End Sub
Note that with the exception of the error message the code is identical to the recommended code.  I have run tests using change of each field individually but none work.
Milt
sirmilt

Milt,
Absolutely nothing wrong with the "old fashioned" way. I've been doing database data access with .NET that way for just about 13 years. I don't remember exactly when it was that Microsoft introduced TableAdapters, but I disagreed with
it right from the get-go because of the way the Typed DataSet generator put the TableAdapter in my Typed DataSet class ... a big no-no in my (and others) opinion!!!
You might find some interesting reading in a couple of my blog posts. Unfortunately for you, I use C#, so some of my examples may be not quite what you're used to, code-wise, but you should be able to follow along.
http://geek-goddess-bonnie.blogspot.com/2009/09/tableadapters-are-crap.html
That post also contains a link to another of my blog posts (http://geek-goddess-bonnie.blogspot.com/2010/04/create-xsd.html) about how to go about creating an .xsd
and generating the Typed DataSet without all the TableAdapter junk getting put into it.
And, you might need this one too:
http://geek-goddess-bonnie.blogspot.com/2012/08/msdatasetgenerator-gone-wild.html
If you want any ideas for DataAccess, I have posts about that in my blog too. I can post the links here if you'd like to know more.
~~Bonnie DeWitt [C# MVP]
http://geek-goddess-bonnie.blogspot.com

Similar Messages

  • Not saving the data in two tables

    Hello,
    its my production problem, i have an update form where you can update the records and these
    records will sit in the temp tables until the final approval from the supervisor.
    In this update form i have two table where i am saving the data one is dup_emp to save the
    officer data and another is the dup_address to save the officer where he worked data.
    in this form address form is pop up screen where you can update and gets back to the original
    form where you can see all the other fields. my problem is if a user hit the cancel button on
    address form example the user doesnt want to update any information on that screen so user
    cancel that screen, and comes to the other screen where the user makes the changes to the
    appropriate fields and hits the SAVE button. in this case its saving only to the dup_emp table
    data not the address data from the address form to dup_address table for the same record.
    if the user cancels in both the screens cancel button it should delete the record from both the
    tables but cancel in form and saves in another form it should save the record in both the
    tables.
    here is my code from both cancel buttons from both the forms.
    this is code is from address form cancel button.
    delete from dup_address
    where address_id=:address_id
    and parent_table_name='emp';
    commit;
    CLEAR_BLOCK;
    go_block('DUP_EMP');
    This code is from dup form of the cancel button
    declare
    temp_address_id varchar2 (12);
    begin
    delete from dup_emp
    where secondemp_id =:dup_emp.secondemp_id;
    delete from dup_address
    where parent_t_id=:global.secondemp
    and parent_table_name='emp';
    commit;
    clear_block;
    go_block('secondaryemp');
    END;

    Hi,
    As Aravind mentioned, it's nothing related to workflow. You have to find a BADI in tcode PA30 that could be used after the infotype is updated. So, you can use FM SAVE_TEXT.
    Regards,

  • Saving array data from a waveform chart

    I am using a CRIO 9004 and a 9237 bridge module to measure some strains from strain gauges. I've got one timed loop that reads the DMA FIFO and puts the arrays of values (16 data points, 4 per channel) into a queue. In the consumer timed  loop a For loop scales the binary data, auto indexes it into arrays, then the arrays are merged into a 2D array for the four channels  displayed on a waveform chart . Everytime the consumer loop runs it indexes 4 data points (per channel) yet the waveform chart plots them in a consecutive manner and doesn't overwrite the previous four. If I convert the arrays to waveform arrays I don't see anything on the waveform chart.
    If I pass the 2D array of data to a array indicator inside or outside the consumer loop I get only 16 data points. I want to save the information that appears on the waveform chart  after the consumer loop but because I'm not using waveform data type I can't use the write waveforms to file vi. The waveform chart history buffer has been set to 195360.
    Idealy we will run the four channels for 120 seconds charting the data and saving the data. The minimum data rate is 1613kS/s (403 per channel) The data can be saved after the loops have finished gathering and processing or while they are running. I noticed when I tried to write to TDMS it slowed the consumer down. Same thing if I use a shift register with the volume of data.
    I suspect I'm not sending data to the chart in the correct manner ( usualy takes two attempts to "clear chart" using shortcut menu).  I'm not too familiar with timed loops /producer consumer loops  and just tried to put something together based on examples.
    I've attached my host vi and front panel screenshot.

    Hope they appear attached this time.
    Attachments:
    Basic DMA (Host).vi ‏444 KB
    screenshot2.jpg ‏113 KB

  • WD - Adobe Interactive Form -  Bound data node must not be empty!

    Hello,
    i have a problem to display the result of a search view in an Adobe PDF. I got the error-message "Bound data node Node(ResultPDFView.FlightList) of InteractiveForm must not be empty!"
    To develop a prototyp i have changed the Flight-List example. I have added a new view, mapped the data of the model to the data of the customController. At the wdInit-Method i have initialized the nodes.
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
         // Create a new element in the Bapi_Flight_Getlist_Input node
         Bapi_Flight_Getlist_Input bapiInput = new Bapi_Flight_Getlist_Input();
         wdContext.nodeBapi_Flight_Getlist_Input().bind(bapiInput);
         // Create new elements in the Destination_From and Destination_To nodes
         bapiInput.setDestination_From(new Bapisfldst());
         bapiInput.setDestination_To(new Bapisfldst());
         // Create a new element in the Bapi_Flight_Getlist_Output node
         Bapi_Flight_Getlist_Output bapiOutput = new Bapi_Flight_Getlist_Output();
         wdContext.nodeOutput().bind(bapiOutput);
         // Create a new element in the Flight_List node          
         Bapisfldat     bapiFlightList = new Bapisfldat();
         wdContext.nodeFlight_List().bind(bapiFlightList);
         bapiFlightList.setAirline("LH");
        //@@end
    If i start the application i can see all the information (the airline) in my PDF-Dokument, but after the Bapi-Call
    i got the error message !
      //@@begin javadoc:onActionSearch(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionSearch(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSearch(ServerEvent)
         wdThis.wdGetFlightListCustController().executeBapi_Flight_Getlist_Input();
        //@@end
    Where is the problem ? Must i mapp the result element to the currentContextElement ?
    Thanks for help !
    Regards
    Jürgen Berndt

    Hi Jurgen
    Were you able to find out the solution for this? I am getting the same error on a much simpler application - I am trying to do the tutorial given on SAP Help Site at
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
    Thanks
    Pankaj

  • Apple Configurator - Updating to iOS 6.1.2 removed saved user data

    We are currently managing several classroom sets of iPads using Apple Configurator. When updating to iOS 6.1.2 on the Supervise tab, about two-thirds of one classroom (about 20 iPads) and another 4 out of 6 in a special education classroom lost all previously saved data (application data, documents, pictures, etc.) during the update. We have another classroom that updated approximately 30 iPads following the same exact steps using the same configurator computer and none were erased so we're having a hard time figuring out the issue.
    When I was watching the configurator run through the status updates during the iOS update (e.g. downloading iOS, decompressing iOS, installing iOS) there was another step on the iPads that lost data which was "supervising device." All of the iPads were already supervised so I don't know why this step occurred or what caused it to happen. With the grouping of 6 iPads, the 4 that were erased immediately started decompressing and installing iOS while the 2 that saved user data went to the downloading iOS stage first. I wasn't monitoring the grouping of 30 as closely, but I did notice the "supervising device" stage on the iPads that lost all user data.

    I think for the teachers you are going to have to tell them to copy their data off the device. 
    Suggest dropbox or other cloud storage.  Could set up a WebDave server.
    A simple and popular way to copy files.
    http://wiki.dropbox.com
    Could set up sync-ing so they would come back in he fall.  I'd be cautios and do everythig simple.
    For syncing pc or mac folders to iPad applications.
    "Using SugarSync, you simply designate folders that you want to “sync” to the cloud and it keeps everything in sync anytime you make changes.  This is the way cloud storage should be done and especially if you are using your iPad for buisness or for school."
    The only potential downside is that so many apps for the iPhone/iPad come with Dropbox sync built in which makes it extremely convenient.
    http://www.tcgeeks.com/best-ipad-cloud-sync-app/
    Doug says:
    "This can be done with Dropbox as well using one of the many Dropbox addons…"
    http://wiki.dropbox.com/DropboxAddons

  • Updating iPod Touch Software Version and Apps saved game data

    When I transfer my apps from iPod touch to iTunes will it also moved the saved game data like in Zombie Cafe, Amateur  Surgeon 2 so on and so fort? Because I want to update my software version...

    No.  Transferring the app to the computer only transfers the app itself. not app data.  App dat is stored in the iPod backup that iTunes makes as the first step of the a sync and of an update.  Therefore, I would do one last sync of the iPod before restoring and ensure that the backup gets made.  You can check by going to the Devices tab in iTunes' Preferences and looking at the date of the backup.  Also, make sure your apps are in your iTunes library since the apps themselves are not in the backup but are synced to the iPod at the end of the update.

  • Form created with LiveCycle is not saving the data of a fillable form.

    I had posted this in another forum, which got moved over to this forum.  Forgive the double post, I wasn't sure if it was assumed that it was resolved.
    This document:  http://www.southark.edu/employment/application-v5.pdf  was created a couple of years ago in Acrobat and LiveCycle.
    I wanted visitors to have the ability to fill in the document and save their data.
    So, I opened it in Adobe Acrobat X and saved it using the Save As > Reader Extended PDF > Enable Additional Features.
    However, after filling in the document and saving, no data is saved.
    I was informed that since it was an XFA form created in LiveCycle Designer, that they have special considerations that don't apply to forms created in Acrobat.
    Still needing help in giving my visitors the ability to save their form data.
    Thanks,
    Charley

    Thanks so much for your reply.
    Employing your solution our website visitors can save the data using Acrobat Pro.
    They cannot save their data using Reader (most of them don't have Acrobat Pro).  See image below.
    Any other thoughts?
    Thanks very much for your time and interest. 
    Charley

  • How can I transfer saved games data (smurf, bakery story, etc) from iPhone 3GS to iPad mini retina?

    How can I transfer saved games data (smurf, bakery story, etc) from iPhone 3GS to iPad mini retina? I have a reached in a very high levels at all these games I choose iPad for continuing  played all my saved games in the bigger screen of iPad. Please send step by step the way I can transfer them at the levels I have reached.

    I have installed all the games from my iPhone 3GS at my iPad mini retina throw iCloud. I did what iTunes suggest but when I open the game start from the beginning. For example all the games of team lava company like farm story 2 bakery home design etc I have register and I took storm ID and I have reached in a big level that some times cost money to change level or to buy gems to continue the games.
    I am very angry because before I bought this iPad they told me that I could played my games in a big screen of iPad and this as I can see is nit possible. Apple send me details that didn't help me and everything suggest me is not working.
    I fell stupid because I spend my money in an apple product that isn't what I want and the information I have throw apple are fake

  • What are the setting for Save button for saving plan data in WAD template

    Hi,
    i created SAVE button in Webtemplate for saving plan data.But this button is not
    active.is there any setting for this?
    thanks in advance
    chandu

    Hi Chandu,
    The settings to Configure the  Save function.
    Right click the Button Group Item ® Properties ®  * Button    ® 
    Type Caption  ‘Save’ ® Command    ® Select ‘All Commands’ Tab ® 
    De-select ‘Execute Planning Function’ and then select checkbox ‘Save
    Changed Data’ ® Double click on ‘Save Changed Data’ ® OK ® OK ® Save your template.
    *pls assign points,if info is useful*
    Regards
    CSM Reddy

  • Saving chart data into a spreadshee​t and also displaying it onto a table

    I am having a few different problems with this VI.
    My intentions are to display incoming data from the serial port, and view it on a chart as well as the table, then I want to save the data and the time values into a text or excel file.
    Receiving data and charting it is fine but when it comes to displaying it in real time on the table it looks like the Express table seems to be duplicating some of the entries as noted in the block diagram and the regular table keeps updating the values (date/time and value) on the first entry.
    Saving the data using write to spreadsheet file. vi poses some other problems when importing the History files from the Chart. It brings in the values except the date is the default NI date which I correct before going into the loop in order to accurately plot it on the display.
    If I use the Export waveform to spreadsheet file.vi it saves the data in the text file just fine, but if I save it into an excel file the Y values and the time values are all in one column.
    PLEASE Help
    Attachments:
    Export Waveform To Spreadsheet File.vi ‏44 KB
    Testing Blocks2aexp.vi ‏138 KB
    Waveform Time to Date Time String.vi ‏10 KB

    Mrjazzitup wrote:
    I think if you go to VI properties then go under Windows Size and uncheck the "Maintain proportions of window for different monitor resolutions" you can get it to work.
    If I open your VI in LabVIEW 8.5 or 8.2, the window title bar and menu bar, widow border, and scrollbar are all outside the visible region of my monitor, so I don't have access to anything. The FP even fully covers the task bar (set to autohide) so I cannot even get to the start menu. Even if I move the mouse to the lower screen border, it remains at the LabVIEW cursor. (This might actually be something that needs to be fixed in LabVIEW so it cannot happen!)
    All I can do is ctrl+e to go to the diagram (which looked like a huge mess without a clear indication where I am supposed to look), and thus I quit the program. At least it's nice that you gave my a shiny star, even though I could not help you. Thanks!
    As Dennis said, you need to familiarize yourself with the basics of dataflow. Building a 1D array with two elements and making this into a 1x2 2D array does not magically insert history data. You need to built the 2D array in a shift register or feedback node.
    LabVIEW Champion . Do more with less code and in less time .

  • Error Saving Face Data

    Whenever I click "find faces for tagging"
    The box comes up
    Then all the faces start to appear
    When i try and tag any of them, it says Error Saving Face Data
    Please Help!

    Is the error visible both on XP and Vista?
    Can you try one thing - Try to tag the photos in small subsets say 50 or 100 at a time and once all the photos have been tagged once in small subsets, try to tag all of them together. See if that produces the crash?
    ~V

  • Saving chosen date format in csv-file

    I format all cells in one column to a dateformat dd-mmm-yy
    i.e. 01-jan-06, works fine I have all the dates in the year by clicking on first cell.
    BUT I can not SAVE the file as csv keeping the format - it is saved as 01-01-2006, which I can not use.
    I do this in Excel all the time - do I have to do something special in Staroffice Calc 8.0 ?

    A similar issue faced here trying to save a worksheet (Staroffice Version 8) in .csv format. The worksheet had one column for date of birth formatted as "dd/mm/yyyy" and another one for age using formula "=TODAY()-B6", formatted as "yy". In the corresponding .csv file the age column showed up as "dd/mm/yyyy" as against the required "yy" format . On saving the data in text file with the space delimited option, the date of birth column showed up in the "mm/dd/yyy" format - the age column however was in the desired "yy" format.
    Here is a workaround though;
    On your existing staroffice worksheet format all the data just as would like it appear in the .csv file. The trick is to transfer the data into an intermediate application that does not understand the underlying formatting or formula, which in our case will be notepad. Copy the entire range of data from your staroffice worksheet into notepad. Minimise notepad after the data has been pasted. Save and exit the existing staroffice workbook. Open a new workbook, select the entire range that is going to hold the data and then format the cells as "text". Now, maximise notepad, select all the data using the edit menu and copy it into the new worksheet. The data should appear just as it was in the original worksheet, but without any formatting or formula. You can now proceed to save the data in a .csv file without having to worry about changed date formats.
    However, if you have come across some other method through which this issue has been resolved, please post here or drop me a a mail
    anandkumarvj [at] rediffmail.com

  • Saving of data in a table having large number of records

    Hi,
    i'm working in forms 6i and database 10g.
    i'm having two tables, stock_head and stock_detail.
    The stock_detail table is having millions of records.
    The stock_detail is having 3 database triggers.
    the saving of data into these tables is very slow even after disabling the triggers.
    can anyone please help me regarding this matter...
    How to improve the performance?
    please help me...

    As always the same thing applies to these type of queries
    - No exact version numbers are provided
    - The problem description is way too vague to resolve the issue
    - The requestor doesn't read documentation
    - The requestor didn't use online resources, and didn't search this forum
    The central question always is
    What is it waiting for
    So you need to run ADDM and/or AWR reports provided you are properly licensed, or statspack when you don't have a license for AWR/ADDM.
    Apart from that no help is possible, as the post didn't contain a problem description other than 'It doesn't work, help'
    Sybrand Bakker
    Senior Oracle DBA

  • I am trying to create a community addition, but just keep getting *Error occurred while saving your data.

    I am trying to create a community addition, but just keep getting   *Error occurred while saving your data.
    Trying to add the following community addtion for:     http://technet.microsoft.com/en-us/library/cc755631(v=ws.10).aspx
    In the above website do NOT copy the command, you have to type it in.  Webpage Error.
    You can use both    dsquery server –hasfsmo schema    and    dsquery server -forest –hasfsmo schema
    The problem is, I believe, a hidden character in the command on this webpage which follows the Paste function and results in the error Unknown Parameter error.

    Hi John,
    You might have better luck posting this in the library feedback forum here:
    http://social.msdn.microsoft.com/Forums/en-us/home?forum=libraryfeedback&filter=alltypes&sort=lastpostdesc
    It seems odd to me that the TechNet library feedback forum lives under the MSDN branding, but that seems to be the case.
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Automatically Saving Form Data

    Hello,
    I'm looking for a way to automatically save the user input in background while the user is filling forms. I've had cases where the user is filling out large forms and when they accidentally closes the browser without "submitting the form", navigate away from the web page or the browser crashes only to find that all their data is lost. I've noticed if you submit the page without saving the data is cached/saved. I would think a technique to submit the page without the window refresh could work but not sure how that would function in APEX. Does anyone have any suggestions?
    thanks!
    Randy

    You have to work with javascript to do this.
    Register an onchange event to each input field and use an Ajax call to a plsql procedure that saves the item value in session state.
    Use this call:
    APEX_UTIL.SET_SESSION_STATE (
    p_name IN VARCHAR2 DEFAULT NULL,
    p_value IN VARCHAR2 DEFAULT NULL);
    Create an application process (on demand) that uses this call to save the item value, and call the application process using the url syntax with an Ajax call.
    I prefer using Jquery (See Jquery.com) to do such things, but you can use the Apex library function htmldb_Get to do this too.
    Will this work for you?
    Regards Guido

Maybe you are looking for

  • How can i see the images that i've already sent in bbm with the description that i did??

    Hello!, i can't see the description of the images that i've already sent by bbm. Is any way to see that???. Any app for that??. Please i need help!

  • Final cut canvas video problem

    i haven't done a video in several months(i don't think this has anything to do with the problem) started on one,, recorded some video on the camera i always use, captured it and drug onto the timeline,, but when i started to edit from the timeline, t

  • Question regarding layout of my site

    Hi, I'm quite new to Dreamweaver so please bare with me. Basically I created a homepage for my website, and I have the layout that I want for my entire site. My question is: is there a way to build each page off of this layout, and whenever I need to

  • How to changes Object in different system

    Hi All, All BW objects are owned by BWQ i want to make all the object are owned to BWD(Bcoz this is copied system). Is there any transaction i have to use.. please help me guyz. Thanks DST

  • Changing socket server config at runtime

    Is it possible to modify properties of a socket server at runtime without needing to change the xml? For example, if I wanted to change something like connection-idle-timeout-minutes from 120 to 60, could I do it without modifying the following xml b