473,395 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Set a Field of Recordset to be editable

ANC
hi,

i would like to ask how can i set a field of recordset to be editable?
thanks in advance.

ANC
Jul 19 '05 #1
7 2146
Do not use an adLockReadOnly locktype.

Cheers
Ken

"ANC" <an*******@hotmail.com> wrote in message
news:eV**************@tk2msftngp13.phx.gbl...
: hi,
:
: i would like to ask how can i set a field of recordset to be editable?
: thanks in advance.
:
: ANC
:
:
Jul 19 '05 #2
I'm surprised nobody else here has brought this up: You
shouldn't!

Assuming you are using SQL or Access, you should update
your data with an SQL UPDATE statement.
IE

UPDATE MYTable SET MyTextField = 'somevalue',
MyNumberField = somenumber
WHERE MyKey = SomeKeyValue

HTH,
John
-----Original Message-----
Do not use an adLockReadOnly locktype.

Cheers
Ken

"ANC" <an*******@hotmail.com> wrote in message
news:eV**************@tk2msftngp13.phx.gbl...
: hi,
:
: i would like to ask how can i set a field of recordset to be editable?: thanks in advance.
:
: ANC
:
:
.

Jul 19 '05 #3
A recordset could be, for example, disconnected from the database - using an
UPDATE statement in such a case is pointless.

I suppose we just don't know what the OP is trying to do!

Cheers
Ken

"John Beschler" <gi***@geewhiz.com> wrote in message
news:02****************************@phx.gbl...
: I'm surprised nobody else here has brought this up: You
: shouldn't!
:
: Assuming you are using SQL or Access, you should update
: your data with an SQL UPDATE statement.
:
:
: IE
:
: UPDATE MYTable SET MyTextField = 'somevalue',
: MyNumberField = somenumber
: WHERE MyKey = SomeKeyValue
:
: HTH,
: John
:
:
:
: >-----Original Message-----
: >Do not use an adLockReadOnly locktype.
: >
: >Cheers
: >Ken
: >
: >"ANC" <an*******@hotmail.com> wrote in message
: >news:eV**************@tk2msftngp13.phx.gbl...
: >: hi,
: >:
: >: i would like to ask how can i set a field of recordset
: to be editable?
: >: thanks in advance.
: >:
: >: ANC
Jul 19 '05 #4
ANC
ken, thanks for the advice.

Maybe i'm not making clear to my question, sorry about that.

I created a recordset and put it in a table. User can edit some of the field
on the table.

however, my table is all protected, i don't know how to make it editable by
user.

or is it possible to do this?!

John, please read the question carefully even u're trying to solve my
problem,

of coz i'm not asking how to write the update script with sql statement.

Thanks,

Anthea

"Ken Schaefer" <ke*******@THISadOpenStatic.com> ¦b¶l¥ó
news:uT**************@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...
A recordset could be, for example, disconnected from the database - using an UPDATE statement in such a case is pointless.

I suppose we just don't know what the OP is trying to do!

Cheers
Ken

"John Beschler" <gi***@geewhiz.com> wrote in message
news:02****************************@phx.gbl...
: I'm surprised nobody else here has brought this up: You
: shouldn't!
:
: Assuming you are using SQL or Access, you should update
: your data with an SQL UPDATE statement.
:
:
: IE
:
: UPDATE MYTable SET MyTextField = 'somevalue',
: MyNumberField = somenumber
: WHERE MyKey = SomeKeyValue
:
: HTH,
: John
:
:
:
: >-----Original Message-----
: >Do not use an adLockReadOnly locktype.
: >
: >Cheers
: >Ken
: >
: >"ANC" <an*******@hotmail.com> wrote in message
: >news:eV**************@tk2msftngp13.phx.gbl...
: >: hi,
: >:
: >: i would like to ask how can i set a field of recordset
: to be editable?
: >: thanks in advance.
: >:
: >: ANC

Jul 19 '05 #5
OK, Now I'm really confused. When you say "I created a
recordset and put it in a table." Do you mean an HTML
table in your web page, or a table in your database?

If you mean an HTML table in your web page, then you would
have to replace the values in your table with input tags
and process the page accordingly.

If you mean a table in your database, then you need to let
us know which database you are using (MS-SQL, MS-Access,
mySql, Oracle, etc.)

HTH,
John
-----Original Message-----
ken, thanks for the advice.

Maybe i'm not making clear to my question, sorry about that.
I created a recordset and put it in a table. User can edit some of the fieldon the table.

however, my table is all protected, i don't know how to make it editable byuser.

or is it possible to do this?!

John, please read the question carefully even u're trying to solve myproblem,

of coz i'm not asking how to write the update script with sql statement.
Thanks,

Anthea

"Ken Schaefer" <ke*******@THISadOpenStatic.com> ¦b¶l¥ó
news:uT**************@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...
A recordset could be, for example, disconnected from the database - using
an
UPDATE statement in such a case is pointless.

I suppose we just don't know what the OP is trying to

do!
Cheers
Ken

"John Beschler" <gi***@geewhiz.com> wrote in message
news:02****************************@phx.gbl...
: I'm surprised nobody else here has brought this up: You : shouldn't!
:
: Assuming you are using SQL or Access, you should update : your data with an SQL UPDATE statement.
:
:
: IE
:
: UPDATE MYTable SET MyTextField = 'somevalue',
: MyNumberField = somenumber
: WHERE MyKey = SomeKeyValue
:
: HTH,
: John
:
:
:
: >-----Original Message-----
: >Do not use an adLockReadOnly locktype.
: >
: >Cheers
: >Ken
: >
: >"ANC" <an*******@hotmail.com> wrote in message
: >news:eV**************@tk2msftngp13.phx.gbl...
: >: hi,
: >:
: >: i would like to ask how can i set a field of recordset : to be editable?
: >: thanks in advance.
: >:
: >: ANC

.

Jul 19 '05 #6
ANC
the recordset is put into an HTML table and user can edit some of the field
on the web, and they press submit button,
then i will update the data by script.
but now i can't make my HTML table to be editable.

Thanks for reading my problem.

Anthea

"John Beschler" <gi***@geewhiz.com> ???
news:07****************************@phx.gbl ???...
OK, Now I'm really confused. When you say "I created a
recordset and put it in a table." Do you mean an HTML
table in your web page, or a table in your database?

If you mean an HTML table in your web page, then you would
have to replace the values in your table with input tags
and process the page accordingly.

If you mean a table in your database, then you need to let
us know which database you are using (MS-SQL, MS-Access,
mySql, Oracle, etc.)

HTH,
John
-----Original Message-----
ken, thanks for the advice.

Maybe i'm not making clear to my question, sorry about that.
I created a recordset and put it in a table. User can edit some of the fieldon the table.

however, my table is all protected, i don't know how to make it editable byuser.

or is it possible to do this?!

John, please read the question carefully even u're trying to solve myproblem,

of coz i'm not asking how to write the update script with sql statement.
Thanks,

Anthea

"Ken Schaefer" <ke*******@THISadOpenStatic.com> ¦b¶l¥ó
news:uT**************@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...
A recordset could be, for example, disconnected from the database - using
an
UPDATE statement in such a case is pointless.

I suppose we just don't know what the OP is trying to

do!
Cheers
Ken

"John Beschler" <gi***@geewhiz.com> wrote in message
news:02****************************@phx.gbl...
: I'm surprised nobody else here has brought this up: You : shouldn't!
:
: Assuming you are using SQL or Access, you should update : your data with an SQL UPDATE statement.
:
:
: IE
:
: UPDATE MYTable SET MyTextField = 'somevalue',
: MyNumberField = somenumber
: WHERE MyKey = SomeKeyValue
:
: HTH,
: John
:
:
:
: >-----Original Message-----
: >Do not use an adLockReadOnly locktype.
: >
: >Cheers
: >Ken
: >
: >"ANC" <an*******@hotmail.com> wrote in message
: >news:eV**************@tk2msftngp13.phx.gbl...
: >: hi,
: >:
: >: i would like to ask how can i set a field of recordset : to be editable?
: >: thanks in advance.
: >:
: >: ANC

.

Jul 19 '05 #7
So what you have is:
<table>
<tr>
<td>Data from my field 1</td>
</tr>
<tr>
<td>Data from my field 2</td>
</tr>
....
</table>

Is this correct? And you want to be able to edit that data?

Then you would need something like this:

<form name=myform action=update.asp method=post>
<table>
<tr>
<td><input type=text name=txtfield1 value="Data from my
field 1"></td>
</tr>
<tr>
<td><input type=text name=txtfield2 value="Data from my
field 2"></td>
</tr>
<tr>
<td>
<input type=submit value="Submit">
</td>
</tr>
....
</table>
</form>

Then, you have to write the code for update.asp to process
the data when it gets back to the server.

-----Original Message-----
the recordset is put into an HTML table and user can edit some of the fieldon the web, and they press submit button,
then i will update the data by script.
but now i can't make my HTML table to be editable.

Thanks for reading my problem.

Anthea


Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
3
by: WC Justice | last post by:
I need to build an UPDATE statement that copies the values of roughly 40 fields from a table that stores standard or default values into a table of specific contracts. There are 8 or so fields in...
9
by: William Wisnieski | last post by:
Hello Everyone, Access 2000 I have a main form with a continuous subform. On the main form I have a text field called . It gets populated based on what the user selects in a field on the...
4
by: Javier Gomez | last post by:
I have a query field which is a non editable field because is a function's result. Due to I need to edit the information, Can you please suggest me any solution for this problem?? (No matter...
3
by: shumaker | last post by:
This code from the subform works for getting the value of a field of the main form named "WorkSheet": MsgBox Form_WorkSheet.Recordset.Fields("Clerk").Value Each record in the mainform datasheet...
7
by: Benton | last post by:
Hi there, I have a text box which will receive its value from a pop-up date picker. The user should not be able to edit this field with the keyboard or mouse. I am using ASP.NET. If I set the...
5
by: Henrik | last post by:
The problem is (using MS Access 2003) I am unable to retrieve long strings (255 chars) from calculated fields through a recordset. The data takes the trip in three phases: 1. A custom public...
4
by: Paul | last post by:
Hi all, I have a page that has a form on it which has a dropdown list on it. It connect to an sql database and populate the list. What I would like to do is make the list editable so that if the...
2
by: jghouse | last post by:
Everyone, Hopefully you can help me with a little problem I am having. I have a need to limit the records shown in a form by a few different criteria. I also need these records to be editable....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.