473,499 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem in updating time field

Hi
I'm trying to update time field which MSACCESS using query

Sql2 = "Update tblExtraNetUsers SET Lo_date = " & Date()
& ",Lo_time =#" & FormatDateTime(Time(),4) &"# ,Lo_count
= " & rs("Lo_count") + 1 & " WHERE UserLogOn = 'david'"

But its always gives a error message
Operation must use an updateable query.

Thanx at advance
Jul 19 '05 #1
3 1657
Check your NTFS permissions. You probably need to give the IUSR account
sufficient privileges to update the database.

Cheers
Ken

"Bhavin" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
: Hi
: I'm trying to update time field which MSACCESS using query
:
: Sql2 = "Update tblExtraNetUsers SET Lo_date = " & Date()
: & ",Lo_time =#" & FormatDateTime(Time(),4) &"# ,Lo_count
: = " & rs("Lo_count") + 1 & " WHERE UserLogOn = 'david'"
:
: But its always gives a error message
: Operation must use an updateable query.
:
: Thanx at advance
Jul 19 '05 #2
How can I check NTFS permission and how to give the IUSR
account sufficient privileges to update the database.
-Bhavin
-----Original Message-----
Check your NTFS permissions. You probably need to give the IUSR accountsufficient privileges to update the database.

Cheers
Ken

"Bhavin" <an*******@discussions.microsoft.com> wrote in messagenews:06****************************@phx.gbl...
: Hi
: I'm trying to update time field which MSACCESS using query:
: Sql2 = "Update tblExtraNetUsers SET Lo_date = " & Date (): & ",Lo_time =#" & FormatDateTime(Time(),4) &"# ,Lo_count: = " & rs("Lo_count") + 1 & " WHERE UserLogOn = 'david'"
:
: But its always gives a error message
: Operation must use an updateable query.
:
: Thanx at advance
.

Jul 19 '05 #3
Right-click on a folder in Explorer -> Properties -> Security tab.

IUSR_<machinename> needs Read/Execute/Write
Creator/Owner should have "Full Control"

Cheers
Ken

"Bhavin" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
: How can I check NTFS permission and how to give the IUSR
: account sufficient privileges to update the database.
: -Bhavin
: >-----Original Message-----
: >Check your NTFS permissions. You probably need to give
: the IUSR account
: >sufficient privileges to update the database.
: >
: >Cheers
: >Ken
: >
: >"Bhavin" <an*******@discussions.microsoft.com> wrote in
: message
: >news:06****************************@phx.gbl...
: >: Hi
: >: I'm trying to update time field which MSACCESS using
: query
: >:
: >: Sql2 = "Update tblExtraNetUsers SET Lo_date = " & Date
: ()
: >: & ",Lo_time =#" & FormatDateTime(Time(),4)
: &"# ,Lo_count
: >: = " & rs("Lo_count") + 1 & " WHERE UserLogOn = 'david'"
: >:
: >: But its always gives a error message
: >: Operation must use an updateable query.
: >:
: >: Thanx at advance
: >
: >
: >.
: >
Jul 19 '05 #4

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

Similar topics

11
16069
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
6
5753
by: Hennie de Nooijer | last post by:
Hi, Currently we're a building a metadatadriven datawarehouse in SQL Server 2000. We're investigating the possibility of the updating tables with enormeous number of updates and insert and the...
5
2011
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
4
5294
by: Reney | last post by:
I have a very weird problem in updating my datagrid. Please help me to solve it. The datagrid is tied to a dataset table with five columns. Three of them are primary key and the other two columns...
6
4424
by: yoshitha | last post by:
hi db : sql server 2000 lan : C#.net(ASp.Net) in my database table there are 2 fileds of data type datatime. in field 1 i'm storing date in field 2 i'm storing time.
9
3191
by: zMisc | last post by:
When I try to update record, I kept getting this error: Row cannot be located for updating. Some values may have been changed since it was last read. No other users are accessing the database...
0
1446
by: JACompute | last post by:
I have an invoicing system that uses a VB6 program to post new invoice entries to a centralized Vendor management system (also in VB6), via a Web server and some ASP code. The system has been in...
2
3131
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
15
7318
by: sara | last post by:
I have a Memo field in a table to hold notes from a conversation a social worker has had with a client (this is for a non-profit). If the user needs to update the memo field, I need to find the...
11
6041
by: SAL | last post by:
Hello, I have a Gridview control (.net 2.0) that I'm having trouble getting the Update button to fire any kind of event or preforming the update. The datatable is based on a join so I don't know...
0
7009
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
7178
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
7223
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...
1
6899
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
7390
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
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.