Update Access database via OleDB from DataGridView

I have been scouring these forums and the internet in general as well as doing a lot of reading, all to no avail.  I can not seem to successfully update the Access database from an edited DataGridView.  I am trying to use Stored Procedures that
are in the Access database and work fine therein.  The DGV is filled in properly.  I have tried an ever-increasing number of variants to update the database (Private Sub BtnUpdate...)  without success.  I'd really, really appreciate some
guidance here.
Here is my code thus far:
Public Class Form1
    Dim con As OleDbConnection    
    Dim cmd As OleDbCommand
    Dim da As OleDbDataAdapter
    Dim ds As DataSet
    Dim ProviderConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    Dim TargetList As String = "C:\Users\Administrator\Documents\Visual Studio 2010\Projects\Development5\Test.mdb"
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'establish a connection to the database
        con = New OleDbConnection(ProviderConnectionString & TargetList)
        con.Open()
        'define the command to be used
        cmd = New OleDbCommand
        cmd.Connection = con
        cmd.CommandType = CommandType.StoredProcedure
        cmd.CommandText = "ListAllTargets"
         'create the data adapter based on the command
        da = New OleDbDataAdapter(cmd)
        'fill the data set based on the command
        ds = New DataSet
        da.Fill(ds, "AllTargets")
        'bind and load dgvTargets with the data
        dgvTargetList.DataSource = ds.Tables("AllTargets")  ' Binding to dgvtargetlist
     End Sub
    Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click
         da.UpdateCommand = New OleDbCommand("UPDATE TargetList SET;", con)
        Validate()
        da.Update(ds.Tables("AllTargets"))
        Me.ds.AcceptChanges()
    End Sub
End Class

Hi John,
Welcome to MSDN forums!
Cor pointed you to the right direction. An OleDBCommandbuilder object is required, which can be used to automatically
generate DeleteCommand, UpdateCommand and InsertCommand for DataAdapter object.
Here is detailed walkthrough: How to update
(Insert/Update/Delete) data back into MS Access database from DataGridView.
1) New a WinForms project, drag&drop DataGridView1 and Button1 onto
Form1.
2) Add database file test.mdb to project via: Data menu -> Add New Data Source
Wizard ... then you can use ralative path to this database file in code
3) Select/click
your database file test.mdb in Solution Explorer
-> Properties Pane
-> change the "copy to ouput directory" to "copy
if newer"
4) Code sample
Imports System.Data.OleDb
Public
Class Form1
Dim myDA As OleDbDataAdapter
Dim myDataSet As DataSet
Private Sub Form1_Load(ByVal sender
As System.Object, ByVal e
As System.EventArgs) Handles
MyBase.Load
Dim con As OleDbConnection =
New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=|DataDirectory|\test.mdb")  ' Use relative path to database file
Dim cmd As OleDbCommand =
New OleDbCommand("SELECT * FROM Table1", con)
con.Open()
myDA = New OleDbDataAdapter(cmd)
'Here one CommandBuilder object is required.
      'It will automatically generate DeleteCommand,UpdateCommand and InsertCommand for DataAdapter object  
Dim builder As OleDbCommandBuilder =
New OleDbCommandBuilder(myDA)
myDataSet = New DataSet()
myDA.Fill(myDataSet, "MyTable")
DataGridView1.DataSource = myDataSet.Tables("MyTable").DefaultView
con.Close()
con = Nothing
End Sub
' Save data back into database  
Private Sub Button1_Click(ByVal sender
As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Me.Validate()
Me.myDA.Update(Me.myDataSet.Tables("MyTable"))
Me.myDataSet.AcceptChanges()
End Sub
End
Class
Best regards,
Martin Xie
MSDN Subscriber
Support in Forum
If you have any feedback on our support, please contact
[email protected]
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

Similar Messages

  • Update a field in an access database via TestStand

    I want to read a value from a numeric field in an MS Access database, increment that value by one, and then update the database record that I got the value from with the new value. I am able to execute an Open Database step, execute a Open SQL Statement step with a SELECT query, execute a "Get" operation in a Data Operation step to get the value into a TestStand variable, and increment the value, but I'm at a loss for how to update the databse record with the incremented value.
    I tried to execute another Open SQL Statement step with an UPDATE statement, but I get a "Specified value does not have the expected type." error. The TestStand variable type is a number, and the Data Type of the database field is Number. I've tried using long integer, double, and decimal as field sizes, but they all give me the same error.
    I also tried to execute a "Set" operation with another Data Operation step against the original Statement Handle. When I do this, the Data Operation runs without error, but when I run a Close SQL Statement step against the statement handle I get an "ADODB.Recordset: Operation is not allowed in this context." error.
    Any help would be appreciated.

    Scripter -
    When you try to do a Set and Put, it is always good to explicitly set the statement's cursor type to something other than forward only, like keyset, and the lock type to something other than read-only. See if that helps...
    Scott Richardson
    National Instruments

  • How to administer an Access database via web-based interface?

    There are times when I need to edit a database record to do something my CMS wasn't designed to do, so I have to manually edit it. Normally I just ftp the Access mdb file to my pc, make edits, and reupload the mdb file and hope nobody updated the database in the meantime.  Does anyone know of a web-based database admin system that will allow me to edit Access data?  Sure would be nice if I could install something on the server that would allow me to edit any datasource there and not have to have a separate, customized interface for each datasource.
    Thanks for looking, Bill

    I would recommend naming that page with an extension that the web server will not serve.  Rename it to use it and then rename it back when done.
    Or just put access restrictions on it via the web server, so one needs to authenticate to the system before using it.
    Or stop using Access and use a decent DB: Access is not appropriate to be used as a DB for a web application.  But that might not be an option.
    Adam

  • Adobe LiveCycle ES4 add new and update Access Database, Non-Null failure

    I am using adobe livecycle es4 and I am trying to add a new record and then update it to an Access database. However, when i press update the error tells me that i cannot have Null values and it displays a check box field name. How can i allow a null value for a check box? Because when my form is used, not all of the check boxes will be checked

    You can use the resolveNode function that can catch the null value of your check box component.
    Exemple:
    if (this.resolveNode("NameCheckBox").rawValue == null)
    //Do Something

  • Accessing NetStorage via WebDAV from Windows 7

    Until last week we were running Netware 6.5 SP8. I was aware that accessing NetStorage via WebDAV (using Microsoft Web Folders) does not work on Windows 7. Now I migrated the server to OES 11 SP2 and I decided to re-investigate the issue. Currently, I still can't access NetStorage from WebDAV on Windows 7. When I try to add new network location in Windows, enter the correct URL and I'm prompted for username and password. After entering the correct password, the username/password window re-appears. On entering the username and password second time, I get error message "The folder you entered does not appear to be valid. Please choose another."
    Is the situation still such that accessing NetStorage via Microsoft Web Folders on Windows 7 does not work, or do I have something misconfigured?
    From web browser, there are no problems accessing NetStorage.

    Originally Posted by vatson
    Until last week we were running Netware 6.5 SP8. I was aware that accessing NetStorage via WebDAV (using Microsoft Web Folders) does not work on Windows 7. Now I migrated the server to OES 11 SP2 and I decided to re-investigate the issue. Currently, I still can't access NetStorage from WebDAV on Windows 7. When I try to add new network location in Windows, enter the correct URL and I'm prompted for username and password. After entering the correct password, the username/password window re-appears. On entering the username and password second time, I get error message "The folder you entered does not appear to be valid. Please choose another."
    Is the situation still such that accessing NetStorage via Microsoft Web Folders on Windows 7 does not work, or do I have something misconfigured?
    From web browser, there are no problems accessing NetStorage.
    My limited understanding is that MS seriously mangled/changed WebDav in Windows 7 and if you google for webdav webfolders and windows 7 you'll find all sorts of differing things that may be needed for things to work.
    I do know that you can download the free NetDrive client software somewhere and that should work on Win7 against NetStorage.
    I vaguely recall there was something special you had to do with Web Folders on Windows 7 if you wanted to use WEBDAV against FILR, so perhaps those same steps are necessary against NetStorage.
    Also, are you accessing NetStorage directly, or going through a reverse proxy such as NAM?

  • Urgent -Create  RFC for update the database and delete from the database

    Hi Guy's,
    Please help me how  to create the RFC for update to databse and delete from database(step-by-step) procedure.
    Thanks and Regards,
    Sai.

    Hi,
    Please go through the following link,
    reward if helps.
    [RFC Step By Step|https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728]
    regards,
    mahantesh

  • Updating a Access Database via a Bean

    I�m having a problem using a java bean to update the contents of a database. I receive the error message:
    Cannot find a method to read property 'firstname' in a bean of type 'myBeans.UpdateGuestBean'
    I have an html form embedded in a jsp page as follows:
    <FORM NAME="members" ACTION="members.jsp"
          METHOD="POST">
        <TABLE BORDER="1" WIDTH="50%" ALIGN="center" BGCOLOR="lightgreen" CELLPADDING="2">
        <TR>
             <TD WIDTH="25%"><B>Firstname:</B></TD>
             <TD WIDTH="25%"><INPUT TYPE="text" SIZE="25" NAME="firstname" VALUE="<%= firstname %>"></TD>
        </TR>
        <TR>
             <TD><B>LastName:</B></TD>
             <TD><INPUT TYPE="text" NAME="surname" SIZE="25" VALUE="<%= surname %>"></TD>
        </TR>
        <TR>
             <TD><B>Email:</B></TD>
             <TD><INPUT TYPE="text" NAME="email" SIZE="25" VALUE="<%= email %>"></TD>
        </TR>
             <TD COLSPAN="2" ALIGN="right" WIDTH="50%"><INPUT TYPE="submit" VALUE="Update"></TD>
        </TR>I then call on members.jsp
    <%@ page language="java" contentType="text/html" errorPage="errorpage.jsp" %>
    <HTML>
    <HEAD><TITLE>Order Form</TITLE></HEAD>
    <BODY>
    import java.sql.*;
    <jsp:useBean id="members" class="myBeans.UpdateGuestBean" />
    <jsp:setProperty name="members" property="*"/>
    <ul>
    <li>first: <jsp:getProperty name="members" property="firstname" />
    <li>secondname: <jsp:getProperty name="members" property="surname" />
    <li>email: <jsp:getProperty name="members" property="email" />
    </ul>
    <% members.updateDatabase(); %>
    <jsp:forward page="confirmation.jsp" />
    </BODY>
    </HTML>Finally calling my java bean:
    package myBeans;
    import java.sql.*;
    class UpdateGuestBean
      //declare variables
      private String firstname;
      private String surname;
      private String email;
      //set methods
      public void setfirstname(String inputFirstname)
        this.firstname=inputFirstname;
      public void setsurname(String inputSurname)
        this.surname=inputSurname;
      public void setemail(String inputEmail)
        this.email=inputEmail;
      public void makeChanges(String email)
        try
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
          Connection conn = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/Tomcat/jakarta-tomcat-4.1.31/webapps/ROOT/MyDB.mdb","","");
          Statement statement = conn.createStatement();
          String sql = "UPDATE members SET MyDB.Firstname='" + this.firstname + "' WHERE Username ='" + email + "';";
          statement.executeUpdate(sql);
          if (statement != null) statement.close();
          if (conn != null) conn.close();
        catch(Exception e)
          System.out.println("My error: " + e);
    }Help! I�ve run out of ideas. For a reminder, the error message is
    Cannot find a method to read property 'firstname' in a bean of type 'myBeans.UpdateGuestBean'
    Thanks in advance.

    Thanks for that. I put the getter methods in and it resolved that error message, however now I get a new error message:
    cannot resolve symbol
    symbol: method updateDatabase ()
    location: class myBeans.UpdateGuestBean
    members.updateDatabase();
    ^
    Any ideas? I think its referring to the jsp file members.jsp:
    <%@ page language="java" contentType="text/html" errorPage="errorpage.jsp" %>
    <HTML>
    <HEAD><TITLE>Order Form</TITLE></HEAD>
    <BODY>
    import java.sql.*;
    <jsp:useBean id="members" class="myBeans.UpdateGuestBean" />
    <jsp:setProperty name="members" property="*"/>
    <ul>
    <li>first: <jsp:getProperty name="members" property="firstname" />
    <li>secondname: <jsp:getProperty name="members" property="surname" />
    <li>email: <jsp:getProperty name="members" property="email" />
    </ul>
    <% members.updateDatabase(); %>
    <jsp:forward page="confirmation.jsp" />
    </BODY>
    </HTML>

  • Locked out of iPhone. Can't update, access or save anything from my phone.

    I was never able to access the cloud becuase of another problem where Apple seems to think I'm using an old email as my apple id. (i'm using gmail these days, and the old email- the one I don't use anymore was for comcast) and I kept getting alerts whenever I tried to use it: texting, net surfing, apps- would be interrupted. The message was of the old email address, and then it would ask for my password. I use the new email for buying things on itunes and what-not, so I would just ignore the alerts involving the comcast email.
    To sign into the cloud, it ALWAYS wanted to use my comcast email. So I couldn't get into the cloud. So I was never able to back up my iphone/ save my pictures and videos.
    The new update has been out for a few weeks now and I finally get around to updating my phone. (plug my phone into my macbook, itunes up and running) It gets through all the other processes pretty normal. Then a popup on my computer says that it cannot finish the update because of a lack of space. I delete a few albums, make space and try again. Now the screen- when not turned off- is stuck with an icon of the itunes note, and the image of the cord indicating that it is plugged in I suppose. My itunes on my computer is giving me only one option: Restore iPhone. (There's another button that says 'Check for update' but it's not clickable) It also tells me that my software is up to date.
    Still, I can't do anything with the phone. Nobody can call me either, it goes straight to voicemail. Aside from deleting everything I've ever had for two years on that phone, HOW do I just use my phone?
    Also: I was able to access and start up iCloud account AFTER all of this went down. Previously, because I couldn't get into it, I just didn't bother with it. When I asked a friend for help, they were able to set all that up for me, but the problem with the phone remains, so even though it's finally up and running, I can't access my photos etc to stream.

        Hello isikhulu,
    I would love to help you update your payment information!  Thanks Budone for providing the global support number for assistance!  Isikhulu you can also contact us via Facebook, Twitter @VZWSupport, email here http://bit.ly/FJncH and you may also DM me your name and mobile number as well.  Please let me know if this is resolved.  Thank you!
    TominqueB_VZW
    Please follow us on Twitter @VZWSupport

  • Accessing Views via ODBC from MSAccess

    Hello,
    This started as a simple thing, allow somebody to access to a database on a SQL 2005 server so they could get to it from MSAccess. I have created a login (Windows Authentication) so they can see the database and gave them "public" and "datareader" abilities.
    The user then informed me that while they could see the views they could not see the data. Not being a DBA (sorry) I added "public" to the view's permissions (under properties) and granted it "Select" access and nothing else. After I completed this the user could not even see the views to pick them (via the ODBC link from MSAccess) and when I try to remove "public" from the permissions it dissapears, but when I reopen the permission "public" is back.
    I then find out there is no data in the views and so the user would not have been able view anything anyway.
    So what I want to do is remove "public" from the views permissions, is this possible?
    Thanks for any help,
    Tyrone

    Is anybody still curious about this?
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • New login can't access database via SSMS

    I created my Azure database “MyDatabase” and established admin login “MyAdmin” at that time via the Azure management website.
    Now I want to create an application login and user “MyUser” to access the data.  But, when I did the below I still cannot connect via SSMS.  I get error:
    Cannot open database “master” requested by the login.
    I’m just trying to get to the tables under MyDatabase via SSMS.  What am I doing wrong please?
    -- Connect to master database as myadmin and run:
    CREATE LOGIN myuser WITH password=‘Blah$Blah$Etc’
    -- Connect to mydatabase database as myadmin and run:
    CREATE USER myuser FROM LOGIN myuser;
    EXEC sp_addrolemember 'db_datareader', ‘myuser’;
    EXEC sp_addrolemember 'db_datawriter', ‘myuser’;
    Thanks for any help!

    Hello fiverc,
    Thank you for reaching out. You might be connecting to the wrong database (master instead of the user DB). In the 'Connect to Server' window in SSMS, click the 'Options' button. Then enter the name of the database ("MyDatabase"
    in your case) in the 'Connect to database' field and then try to connect.
    Hope that helps,
    Jan

  • Link between SAP Ztables and MS-ACCESS database via XI

    Hi All,
    I have two application one is in Ms-Access and other is in SAP . I have to link the SAP ztables to the MS-Access databse, is this be done with via XI. If yes, do i need to write the interface programs while fetching the data from the XI to SAP, or XI will take care of the updation and linking between the SAP and access application , since the cross flow of data between two application will be there .
    Regards
    Gajendra

    hi !!
    It is possible with XI, of course.
    You can use jdbc as sender at the MS-Access end and at R/3 (as reciever) you can have an RFC to put the data into the tables.
    There is no need of interface programming to be done manually.
    you have to be clear at what condition the synchronizations should happen and there is more enhancements that could be done.
    regards,
    nikhil.
    **reward if helpful

  • Access database using Java from HTML webpage

    Hi,
    I've got to create some online maths tests to be taken by students with their marks being stored in a database.
    I've wrote some simple java code which can add/remove and modify entries in a test mySQL database that I made. What I now need to do is be able to add entries to the database from a html page.
    The math tests will be java applets with the students having to interact according to questions, press submit and their score will be output. The score will then be entered into the database.
    The problem I'm having is that with an Applet their are all sorts of security issues (I'm having problems getting images to load in an Applet) so assume I'll face the same security issues when I try to access a database through an applet.
    So, could someone please help get started.
    Cheers

    MVC - I assume you mean model-view-control and not Marvel vs Capcom :)
    If so then does this mean I should completely seperate the user interface (the actual applets that will contain the test), the database (that will store the results) and the link between the two?
    is it possible to acheive this using Java, Java Applets, Java Script and the database (in my case mySQL) and could you give me some tips on how best to tackle the problem.
    Thanks

  • Accessing database via OID username and password

    I've have 2 servers, one with the following software:
    --- SERVER #1 ---
    * Oracle database v9.2.0.1
    * Management Server
    * OID
    --- SERVER #2 ---
    and the other database server with:
    * Oracle database v9.2.0.1
    * and the database that it is registered (via dbca) with the OID database above...
    I'm pretty sure everything is pretty close to configured correctly due to the
    the following: only 1 tnsnames file exist on my laptop, from the DOS prompt, if I comment out the tns entry that points to the database on server #2 then tnsping
    the database on server #2 it returns a message saying that it uses the LDAP file and it comes back with a message that ends w/OK, meaning (or what I believe means) that it hit the OID server for authentication.
    My only issue is logging in though, I always get a invalid username & password error message.... I did log into "Enterprise Securtiy Manager" on server #1 and register the database from server #2.... I also created that guest user w/"create user guest identified globally as '';".... I also created the "schema mapping" on server #1 to the guest schema and users within OID.... On what server was I supposed to run this command: "create user guest identified globally as '';", on server #1 or #2? I read a lot of stuff on the Internet about Oracle Wallets, not sure where this comes in, is this where I'm going wrong? When I ran the DBCA assistant on the db on server #2 it didn't prompt\ask for any Oracle Wallet info....
    What am I missing???
    Thanks in advance for your help,
    Wes

    You have another thread on this as well.
    Server 1 is the LDAP server (Oracle's implementation of it: OID), it can be used for network alias resolving as well as for authentication and authorization.
    There is no need to use OID for network resolving, so let's skip that. The only need is that server#2 is registered in OID (server#1) - the wallet comes in when server#2 needs to communicate passwords with OID - when you used DBCA on server #2, it should have created the wallet, altered your network (on server#2), and created ldap.ora.
    On server #2:
    - sqlnet.ora should contain LDAP in addition to other configured options on the names.directory_path entry
    - ldap.ora should contain your ldap server location, default (realm) context, and type (=OID)
    After running DBCA, you should be able to see the instance on server#2 in cn=OracleContext,dc=<your default realm context> in Oracle Directory manager (ODM)
    All the mapping stuff, I answered in the other thread, although I always use:
    create user global_schema identified globally;
    This works for 10G - and there have been changes from 9 to 10, but I'd check the syntax once more, if I were you

  • Problem accessing VIP via HTTP from service servers

    I thought I had a pretty simple config on my CSS11501- but have run into an issue I'm having trouble resolving.
    I have two unix webservers (IPs are .99 and .100) on ports e1 and e2, and my uplink for the CSS is on port e8.
    The CSS has a VIP address (.105) that load balances HTTP requests to .99 and .100.
    From .99 and .100 I can ping the VIP address - and from outside the CSS - almost everything works great for the site I'm hosting on .105.
    I do have two web pages however that attempt to make calls directly to the VIP address - I noticed I can't load those pages.
    Nor can I just browse the website on the VIP address from either of the servers. The webservers can browse their own pages via IP, and each other's pages via IP.
    Just not pages on the VIP.
    I think it may be a case of the servers thinking that IP spoofing is occurring - or maybe I missed something simple in the config.
    Here's what I see in a 'show flows' when I try and browse the VIp address (.105) from the .100 server.
    Src Address SPort Dst Address DPort NAT Dst Address Prt InPort OutPort
    65.207.212.100 53758 65.207.212.105 80 65.207.212.100 TCP e2 e2
    65.207.212.100 80 65.207.212.100 53758 65.207.212.100 TCP e2 e2
    Since it appears that the CSS NATs the request to the same IP the server is using, will the reply from the server ever make it back to the CSS?
    Or does it think that it shouldn't need to reply - becauuse it is that IP?
    Should I be able to browse the VIP site from the webservers.
    Below is the full CSS config if someone can help me figure this out.
    Thanks in advnace for any and all help.
    Paul
    CSS11501# show run
    !Generated on 08/30/2005 12:08:11
    !Active version: sg0750004
    configure
    !*************************** GLOBAL ***************************
    no restrict web-mgmt
    acl enable
    logging subsystem acl level debug-7
    ip route 0.0.0.0 0.0.0.0 65.207.212.1 1
    !************************** CIRCUIT **************************
    circuit VLAN1
    ip address 65.207.212.104 255.255.255.0
    !************************** SERVICE **************************
    service www2
    keepalive type tcp
    keepalive port 80
    ip address 65.207.212.99
    active
    service www3
    keepalive type tcp
    keepalive port 80
    ip address 65.207.212.100
    active
    !*************************** OWNER ***************************
    owner WWW
    content rule1
    vip address 65.207.212.105
    add service www2
    add service www3
    port 80
    protocol tcp
    advanced-balance sticky-srcip-dstport
    active
    !**************************** ACL ****************************
    acl 1
    clause 10 permit any any destination any
    apply circuit-(VLAN1)

    Paul,
    simple config and well-know basic mistake :-)
    If a server tries to access the vip, the css will forward the request to the same server or the other one.
    Both ways, the response from the server will go directly to the client-server, bypassing the CSS.
    For this to work, you need to do client nat so the server making the HTTP connection appears to be coming from the CSS.
    Create a group like this
    group servernat
    vip addr 65.207.212.105
    active
    and add the following to your acl
    clause 5 permit any 65.207.212.99 destination content www/rule1 sourcegroup servernet
    Do a similar clause for the 2nd server.
    re-apply the acl.
    Everything should work now.
    Gilles.
    Thanks for rating.

  • Accessing database package variables from Forms

    I have a database package that populates a table of values, i.e.
    type t_route_list is table of rt_route.RTR_ID%type;
    route_list t_route_list
    route_list gets populated by a package function and I want to access route_list in the Form.
    While I can access other package variables by writing a function that returns the variable, Forms doesnt seem to like functions that return a user defined datatype as above. I have also tried using a procedure with an OUT param instead of a function but it also fails with same error.
    i.e.
    declare
    v_route_list pkg_bulk_route_replace.t_route_list;
    begin
    pkg_bulk_route_replace.init;
    pkg_bulk_route_replace.get_route_list(v_route_list);
    message(v_route_list(1));
    end;
    This will not compile, but removing the index (1) from the last line makes it compile but crash with ORA-0600.
    The code above with message replaced with dbms_out.put_line works fine on TOAD.
    So my question is......
    Can my database package return a plsql table to a form and if so, how?!

    Actually I've got this to work now!
    Thde main culprit appears to be a difference in the version of sql or pl/sql used on forms (version 5) and the database (8.1.7).
    I had defined my table as a nested table. By redefining this as a indexed table, simply by adding on 'index by binary_integer' on my server package, I am suddenly able to access the elements of the table on my form. Fortunately this did not break the server code either - the table was populated using bulk collect and that still works.
    Still got a bit of coding to do, but things are looking up now.

Maybe you are looking for

  • Show Stopper today with eDirectory (LDAP)

    We are currently setting up Sun IDM 5.5 and are trying to do reconciliation with an eDirectory 8.6.2 (10350.29) but are experiencing severe performance issues. The directory contains groups with large scale membership base, some groups 25.000+ member

  • 3D Bar code printing

    Hi, I was asked to print sample documents using 3D Bar code. Does anyone have any idea on this? Any hints would be really helpful. Thank you, Chandra

  • Content on this page requires a newer version of Adobe Flash Player...What??

    Hi, I have a really enoying problem here, please help me out! I have built my personal webpage in Flash CS3/AS3. I did some updates today, changed some pictures and stuff. Now when I upload and replace the previous *.swf on the server, and try to loa

  • Leopard and Iphoto 08

    I loaded leopard then upgraded to ilife 08 now when I launch iphoto the thumbnails are blank. Any help would be great!!!

  • Remove Event Listener : Best Practice

    This quesiton isn't really keeping me from progressing on my current project, but I was wondering what the best practice was. If I'm about to remove an item with removeChild(), should I first remove any Event Listeners that were on that object or do