C
Chris Strug
Hi,
I have an unbound form. A user enters data in a couple of fields, clicks
submit and the fields are included in a table through an update statement.
However, my question is what is the best (most efficient) way to do this.
I'm something of a newbiew to ADP / SQL Server, however, as I see it I have
these options:
1. Create a Stored Proc which takes the information to be added as
parameters and includes the data as an UPDATE statement.
2. Use an ADO recordset in code. I.e.
rst.addnew
rst!description = me.txtDesc
rst!...
..
..
rst.update
3. Create the SQL statement in code as a string and then execute that string
using an ADO command object.
From what I can see and from what others have already told me (in particular
Vadim - many thanks) - options 1 & 2 have the advantage that they#re on the
server so changes won't mean me having to update every client, however,
option 3 means one less object in the project.
Of course, are there any other ways that I have missed?
Sorry if this is stupid but I think this could be important to know if some
projects I have my eye on get approved.
Many thanks
Chris Strug
I have an unbound form. A user enters data in a couple of fields, clicks
submit and the fields are included in a table through an update statement.
However, my question is what is the best (most efficient) way to do this.
I'm something of a newbiew to ADP / SQL Server, however, as I see it I have
these options:
1. Create a Stored Proc which takes the information to be added as
parameters and includes the data as an UPDATE statement.
2. Use an ADO recordset in code. I.e.
rst.addnew
rst!description = me.txtDesc
rst!...
..
..
rst.update
3. Create the SQL statement in code as a string and then execute that string
using an ADO command object.
From what I can see and from what others have already told me (in particular
Vadim - many thanks) - options 1 & 2 have the advantage that they#re on the
server so changes won't mean me having to update every client, however,
option 3 means one less object in the project.
Of course, are there any other ways that I have missed?
Sorry if this is stupid but I think this could be important to know if some
projects I have my eye on get approved.
Many thanks
Chris Strug