Advertisement

05.19.2008 at 05:49AM PDT, ID: 23413483
[x]
Attachment Details

Dlookups not working after changing to sql 2005

Asked by CaptainGiblets in Access Forms, MS SQL Server, Access Coding/Macros

Tags: Microsoft, Access 2003 / SQL server 2005 express

I am in the process of transfering out database from an Access backend to an SQL backend linked to an access front end.

All is going well apart from 1 problem, i have this code =DCount("*","dashpro ","(Date()-[Date recorded])<8") linked over about 40 text boxes changing slightly on each txt box.  It used to work great on the access backend, however since moving to sql it just comes up with #Error   there are some boxes that where a bit different and have this code =DCount("*","dashquery"), they all work properly.

because of this it lead me to believe that the dates are calculated differently through SQL, so in the access query that pulls the data from the sql databases i changed the date to be filled as so
Expr1: Format(dbo_tblcustomerdetails.[Date Recorded],"dd/mm/yyyy")
this shows fine in the query view, but when i load the text boxes they just flash quickly with the #Error message.

The actual date in the SQL table is stores as nvarchar(50), when i try to change it to DATETIME i get the error
'tblcustomerdetails' table
- Unable to modify table.  
Arithmetic overflow error converting expression to data type smalldatetime.
The statement has been terminated.
I believe this is because the data is stored in an english format (although as text) eg 24/03/08

any help with this problem would be greatly appreciated.Start Free Trial
[+][-]05.19.2008 at 06:30AM PDT, ID: 21597570

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 04:24AM PDT, ID: 21605078

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 04:37AM PDT, ID: 21605132

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 05:08AM PDT, ID: 21605355

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 06:56AM PDT, ID: 21606145

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 07:55AM PDT, ID: 21606725

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 08:09AM PDT, ID: 21606885

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 01:21AM PDT, ID: 21612951

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 02:06AM PDT, ID: 21613173

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Forms, MS SQL Server, Access Coding/Macros
Tags: Microsoft, Access 2003 / SQL server 2005 express
Sign Up Now!
Solution Provided By: koutny
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.21.2008 at 02:09AM PDT, ID: 21613187

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 02:17AM PDT, ID: 21613224

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.15.2008 at 05:52PM PDT, ID: 21790281

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 02:45AM PDT, ID: 21820622

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 05:55AM PDT, ID: 21821647

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 08:29AM PDT, ID: 21823169

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 09:23AM PDT, ID: 21823792

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628