473,396 Members | 1,879 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,396 software developers and data experts.

Deleting a field value

Ok, I am using asp that has SQL in it.
I couldn't find a proper SQL NG, so I will post it in here and see if I can
obtain help.

I need a statement that will delete any value in a said field. For example:

strSQL = "UPDATE rounds set Rd3 = '' where name = '" & var2 & "' and meeting
= " & var1 & ""
conn.execute (strSQL)

this, however returns the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Field 'rounds.Rd3' cannot be a
zero-length string.

/GIG/iht_delete_scoreasp.asp, line 37

how can I write this so it deletes any value in that field?

thanks for any help

Bam
Dec 5 '05 #1
6 1460
I forgot to mention, this is on an Access DB
"Jeff" <gi*****@adelphia.net> wrote in message
news:ef********************@adelphia.com...
Ok, I am using asp that has SQL in it.
I couldn't find a proper SQL NG, so I will post it in here and see if I
can obtain help.

I need a statement that will delete any value in a said field. For
example:

strSQL = "UPDATE rounds set Rd3 = '' where name = '" & var2 & "' and
meeting = " & var1 & ""
conn.execute (strSQL)

this, however returns the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Field 'rounds.Rd3' cannot be a
zero-length string.

/GIG/iht_delete_scoreasp.asp, line 37

how can I write this so it deletes any value in that field?

thanks for any help

Bam

Dec 5 '05 #2
Open your database in Access, open the rounds table in Design view,
highlight the Rd3 field, and set the "Allow zero-length string" property to
True.

Bob Barrows
Jeff wrote:
I forgot to mention, this is on an Access DB
"Jeff" <gi*****@adelphia.net> wrote in message
news:ef********************@adelphia.com...
Ok, I am using asp that has SQL in it.
I couldn't find a proper SQL NG, so I will post it in here and see
if I can obtain help.

I need a statement that will delete any value in a said field. For
example:

strSQL = "UPDATE rounds set Rd3 = '' where name = '" & var2 & "' and
meeting = " & var1 & ""
conn.execute (strSQL)

this, however returns the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Field 'rounds.Rd3' cannot
be a zero-length string.

/GIG/iht_delete_scoreasp.asp, line 37

how can I write this so it deletes any value in that field?

thanks for any help

Bam


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 5 '05 #3
Bob, UDAMAN !!!!!
Thanks a bunch bud
Bam
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:O$****************@TK2MSFTNGP09.phx.gbl...
Open your database in Access, open the rounds table in Design view,
highlight the Rd3 field, and set the "Allow zero-length string" property
to
True.

Bob Barrows
Jeff wrote:
I forgot to mention, this is on an Access DB
"Jeff" <gi*****@adelphia.net> wrote in message
news:ef********************@adelphia.com...
Ok, I am using asp that has SQL in it.
I couldn't find a proper SQL NG, so I will post it in here and see
if I can obtain help.

I need a statement that will delete any value in a said field. For
example:

strSQL = "UPDATE rounds set Rd3 = '' where name = '" & var2 & "' and
meeting = " & var1 & ""
conn.execute (strSQL)

this, however returns the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Field 'rounds.Rd3' cannot
be a zero-length string.

/GIG/iht_delete_scoreasp.asp, line 37

how can I write this so it deletes any value in that field?

thanks for any help

Bam


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Dec 5 '05 #4


--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
http://www.outlook-find-replace.com - Find & Replace in Emails, Contacts,
Appointments, Tasks and Notes
http://www.schedule-email.com - Schedule multiple individual
emails/newsletters
"Jeff" <gi*****@adelphia.net> wrote in message
news:ef********************@adelphia.com...
Ok, I am using asp that has SQL in it.
I couldn't find a proper SQL NG, so I will post it in here and see if I
can obtain help.

I need a statement that will delete any value in a said field. For
example:

strSQL = "UPDATE rounds set Rd3 = '' where name = '" & var2 & "' and
meeting = " & var1 & ""
conn.execute (strSQL)

this, however returns the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Field 'rounds.Rd3' cannot be a
zero-length string.

/GIG/iht_delete_scoreasp.asp, line 37

how can I write this so it deletes any value in that field?

thanks for any help

Bam

Dec 5 '05 #5
"Jeff" <gi*****@adelphia.net> wrote in message
news:ef********************@adelphia.com...
Ok, I am using asp that has SQL in it.
I couldn't find a proper SQL NG, so I will post it in here and see if I
can obtain help.

I need a statement that will delete any value in a said field. For
example:

strSQL = "UPDATE rounds set Rd3 = '' where name = '" & var2 & "' and
meeting = " & var1 & ""
conn.execute (strSQL)

this, however returns the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Field 'rounds.Rd3' cannot be a
zero-length string.

/GIG/iht_delete_scoreasp.asp, line 37

how can I write this so it deletes any value in that field?

thanks for any help

Bam


update table set column1= null, column2=null

Regardless of if it is set to allow zero length strings.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
http://www.outlook-find-replace.com - Find & Replace in Emails, Contacts,
Appointments, Tasks and Notes
http://www.schedule-email.com - Schedule multiple individual
emails/newsletters
Dec 5 '05 #6
John Blessing wrote:


update table set column1= null, column2=null

Regardless of if it is set to allow zero length strings.

:-)
Not if its Required property is set to True ...

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 5 '05 #7

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

Similar topics

8
by: xool | last post by:
Hi all, can anyone tell me how to delete just the current record if tempdate >= todaydate then Set newMail=Server.CreateObject("CDONTS.newMail") newMail.to = rs.fields("Email") newMail.From =...
3
by: Nathan Bloom | last post by:
Hi, I have a data entry form (access 2000) that also allows the user to add, update, and delete records from the form. The Delete action is carried out in an event procedure and has the...
5
by: JonH | last post by:
Ok, I have this dynamically created table in my one of my php forms that shows the names of the people the user has entered into a text field. When they hit add a row displays, showing the name...
46
by: DP | last post by:
hi, i've got a form, with a subform in it. i've got a delete button in the subform. the code i;ve got is; Private Sub cmdDeleteRecord_Click() msg = "Are you sure you want to delete this...
2
by: clickon | last post by:
I have set up a GridView control bound to an SQLDataSource control. Depending on which option a user selects in a DropDownList Each datasource is a sethe select command retrieves a list of...
3
by: skennd | last post by:
Here's my problem in exact replication: I have used the find duplicate query in Access, and the query determined the following duplicate values by the following query: In (SELECT FROM As...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
2
Parul Bagadia
by: Parul Bagadia | last post by:
I have written a code for deleting certain value from linklist; it's not working; where as i have written one for deleting a no., after given no. which works fine! I even debugged it; but invain;...
4
by: sphinney | last post by:
I'm not exactly sure how to start this post. My question is pretty simple, but it will take a little bit of context before I can state it. (And thanks in advance for taking the time to read this!) ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.