iamareplicant
Programmer
Experts,
I have an Access 2003 app that utilizes linked Oracle tables.
I have multiple pass-thru queries, sequences set up, all is well.
At the moment, I am developing unbound forms. A lot more work, but they work and I have complete control of the data as I have set up the app so far as a 2-tier app.
I would like to explore, though, binding the forms to the tables.
The problem:
In an Access form bound to an Access table with Autonumber, using docmd.gotorecord acNewRec is no problem as Access takes care of creating a new record and realizes that, even if there are constraints (NOT NULL in some fields, etc), it will allow you to create a new record and then save it.
But with my Oracle tables, when I try goto asNewRec, I of course get an error because Oracle will not let a new record be created until all of the fields (with constraints) are populated.
So, I cannot use goto acNewRec, period, unless I find a work-around to being able to get the Oracle sequence, insert it into a new record, but not error out because Oracle throws the error that ya cant create a record with all of the NULL values, etc.
Hope I am making sense...
So, what is the work around for a bound 2003 MS Access form that is bound to an Oracle table? I know that I could create a temp table, bind the form to that, then append to and from this table to the Oracle table i am trying to bind to, but this wouldnt really be what i want - a form bound directly to an Oracle table.
TIA,
I have an Access 2003 app that utilizes linked Oracle tables.
I have multiple pass-thru queries, sequences set up, all is well.
At the moment, I am developing unbound forms. A lot more work, but they work and I have complete control of the data as I have set up the app so far as a 2-tier app.
I would like to explore, though, binding the forms to the tables.
The problem:
In an Access form bound to an Access table with Autonumber, using docmd.gotorecord acNewRec is no problem as Access takes care of creating a new record and realizes that, even if there are constraints (NOT NULL in some fields, etc), it will allow you to create a new record and then save it.
But with my Oracle tables, when I try goto asNewRec, I of course get an error because Oracle will not let a new record be created until all of the fields (with constraints) are populated.
So, I cannot use goto acNewRec, period, unless I find a work-around to being able to get the Oracle sequence, insert it into a new record, but not error out because Oracle throws the error that ya cant create a record with all of the NULL values, etc.
Hope I am making sense...
So, what is the work around for a bound 2003 MS Access form that is bound to an Oracle table? I know that I could create a temp table, bind the form to that, then append to and from this table to the Oracle table i am trying to bind to, but this wouldnt really be what i want - a form bound directly to an Oracle table.
TIA,