I'm using Access to create forms with a SQLExpress backend.
My form is for logging purchases. I have a date ordered and a date delivered. (I know the write issue comes from the date)
I've tried adding a TS colum to all of my tables with a timestamp data type (allow nulls). - Still get the error.
My recordset type is "updateable snapshot".
Not sure what else to try. I've looked at all the others with this issue but have yet to find a solution that works for me.
Thank you so much.
17 6191
I've also tired this: http://support.microsoft.com/kb/304181 but still no luck.
Sorry to keep replying to my own post - does the timestamp field need to be part of the form as well?
I'm using Access to create forms with a SQLExpress backend.
My form is for logging purchases. I have a date ordered and a date delivered. (I know the write issue comes from the date)
I've tried adding a TS colum to all of my tables with a timestamp data type (allow nulls). - Still get the error.
My recordset type is "updateable snapshot".
Not sure what else to try. I've looked at all the others with this issue but have yet to find a solution that works for me.
Thank you so much.
This may be a formatting issue. Access stores dates as numbers and this can sometimes cause problems with conflict in date formatting. You may be trying to store dates the invalid numbers representing months as 09/23/06 in mm/dd/yy format has been translated as dd/mm/yy and there is no month 23. To get around this and see if it is the problem change all the date formats to dd-mmm-yyyy. This should stop the confusion.
Mary
Should my SQL be Datetime or shortdatetime? What format exactly should the access form be? Thanks!
Should my SQL be Datetime or shortdatetime? What format exactly should the access form be? Thanks!
It won't matter what the sql is because access will pass it as a number. The access format needs to be medium date time. Access is the problem here not the sql.
Mary
dd-mmm-yyyy
Do you mean dd-mm-yyyy?
dd-mmm-yyyy
Do you mean dd-mm-yyyy?
Changed Access to "short date" dd-mm-yyyy
Still get error.
Thank you so much for helping me with this. I've posted on 4 forums now and seems like everyone is stumped.
dd-mmm-yyyy
Do you mean dd-mm-yyyy?
No I mean dd-mmm-yyyy (23-Jan-2006)
Access can switch between UK and US date formats so ...
23/01/2006 can be changed to 01/23/2006 which is an invalid date value under dd/mm/yyyy. Using the above format in Access prevents this problem.
Mary
hmmm still nada. I really thought I had it. Changed access to "medium date" dd-mmm-yyyy and still got write conflict. I really think this does have something to do with SQL though.
hmmm still nada. I really thought I had it. Changed access to "medium date" dd-mmm-yyyy and still got write conflict. I really think this does have something to do with SQL though.
Post the actual VBA code you are using maybe something will jump out.
Mary
- Option Compare Database
-
-
Private Sub Command23_Click()
-
On Error GoTo Err_Command23_Click
-
-
-
DoCmd.GoToRecord , , acNewRec
-
-
Exit_Command23_Click:
-
Exit Sub
-
-
Err_Command23_Click:
-
MsgBox Err.Description
-
Resume Exit_Command23_Click
-
-
End Sub
-
Private Sub Command24_Click()
-
On Error GoTo Err_Command24_Click
-
-
-
DoCmd.GoToRecord , , acNewRec
-
-
Exit_Command24_Click:
-
Exit Sub
-
-
Err_Command24_Click:
-
MsgBox Err.Description
-
Resume Exit_Command24_Click
-
-
End Sub
-
-
Private Sub Form_Activate()
-
Dim rs As ADODB.Recordset
-
Set rs = Me.Recordset.Clone
-
rs.Bookmark = Me.Bookmark
-
DoCmd.RunCommand acCmdRefresh
-
Me.Bookmark = rs.Bookmark
-
rs.Close
-
Set rs = Nothing
-
End Sub
-
-
Private Sub Form_Deactivate()
-
DoCmd.RunCommand acCmdSaveRecord
-
End Sub
-
-
Private Sub Office_ID_AfterUpdate()
-
Me.Office_Name = DLookup("[Office_Name]", "Office", "[Office_ID]=" & Me.Office_ID)
-
-
End Sub
1. Are your tables linked to the Access database through odbc?
2. Is the form bound to one of these tables?
a) If so why are you running a save command in the form deactivate event?
b) If not how are the records being saved to the backend?
Mary
1. Are your tables linked to the Access database through odbc?
2. Is the form bound to one of these tables?
a) If so why are you running a save command in the form deactivate event?
b) If not how are the records being saved to the backend?
Mary
If it helps, I'm opening an ADP file in access. I connected to the server and all my tables, data was there.
Is the form bound to one of these tables? - I use the form Wizard at frist and it lets me choose from the existing tables. If I enter directly into the tables, it all updates just fine.
If it helps, I'm opening an ADP file in access. I connected to the server and all my tables, data was there.
Is the form bound to one of these tables? - I use the form Wizard at frist and it lets me choose from the existing tables. If I enter directly into the tables, it all updates just fine.
Just out of curiousity remove any formatting or masks from the date controls and see if you still have the problem.
Mary
Just out of curiousity remove any formatting or masks from the date controls and see if you still have the problem.
Mary
Any just make them varchar?
Any just make them varchar?
Just change the formating on the ADP form not in the data.
Mary
NeoPa 32,556
Expert Mod 16PB
I've been trying to look through this thread today and I find that there is simply not enough correct information. It is impossible to find an answer because fundamental information is only provided many posts after it is needed.
If you are still interested in getting an answer to this then please re-post from the beginning, paying particular attention to the instructions in POSTING GUIDELINES: Please read carefully before posting to a forum.
Table MetaData is likely to be required in this case (see example provided below for the format of this info) : - Table Name=tblStudent
- Field; Type; IndexInfo
-
StudentID; Autonumber; PK
-
Family; String; FK
-
Name; String
-
University; String; FK
-
Mark; Numeric
-
LastAttendance; Date/Time
Please don't misunderstand, we do want to help. It is simply that the information you're providing is not adequate for understanding your problem via a website.
MODERATOR.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Mark Richards |
last post by:
The solutions for the following problems seems to be simple but I did not found a (convenient) solution:
Assume we have a number of elements of the same type under a common parent e.g.
<person...
|
by: bissatch |
last post by:
Hi,
I am trying to use JavaScript to write a table column on a web page.
The code is as follows:
<html>
<head>
<script>
function displaycount() {
|
by: Eric E |
last post by:
Hi all,
I am using an Access 2000 client linked to a Postgresql 7.4 server
via ODBC.
I have a stored proc on the server that inserts rows into a
table.particular table, accomplished via an...
|
by: nsj |
last post by:
How shall i use quotation marks within another in asp.net?
|
by: Jacek Dziedzic |
last post by:
Hi!
<OT, background>
I am in a situation where I use two compilers from different
vendors to compile my program. It seems that recently, due to
a misconfiguration, library conflict or my...
|
by: cc50818j |
last post by:
Hi,
Can anyone suggest a Unix command or c-shell algorithm to simulate to behavior of "wall" command minus the "all users"? What I'm trying to do is to send a notice to just one particular user...
|
by: coldstar |
last post by:
In an ASP Querystring, how do I include the double quotes in the code below at "1.0" part as text in my string?
I have tried ""1.0"" and almost everything else but can't get it to work.
I need...
|
by: duli |
last post by:
Hi:
I would like recommendations for books (in any language, not
necessarily C++, C, python) which have walkthroughs for developing
a big software project ? So starting from inception, problem...
|
by: Miles |
last post by:
On Mon, Sep 15, 2008 at 6:06 AM, Harish K Vishwanath
<harish.shastry@gmail.comwrote:
"built-in type" generally means "implemented in C", also sometimes
called "extension type".
Both the...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |