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

DMAX function Data Type Mismatch error

82 64KB
Gurus, please help .. am having Data Type Mismatch error with my below codes...

fromDate is a date variable
txtTest is textbox in my report

Expand|Select|Wrap|Line Numbers
  1. Me.txtTest = DMax("[mtrRead]", "fuelMngtTable", "[issueDate] < 'fromDate'")
May 19 '13 #1

✓ answered by Seth Schrock

Change it to
Expand|Select|Wrap|Line Numbers
  1. Me.txtTest = DMax("mtrRead", "FuelMngtTagle", "IssueDate < #" & fromDate & "#")
Dates have to be surrounded by pound signs (#).

2 1769
Seth Schrock
2,965 Expert 2GB
Change it to
Expand|Select|Wrap|Line Numbers
  1. Me.txtTest = DMax("mtrRead", "FuelMngtTagle", "IssueDate < #" & fromDate & "#")
Dates have to be surrounded by pound signs (#).
May 19 '13 #2
deanvilar
82 64KB
thank you sir @seth ... u always save the day!
May 20 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: JP SIngh | last post by:
Hi All I am trying to write a recursive function to list the managers and his employees in a tree like sctructure Manager 1 Emp1 Emp1.1 Emp 1.2 Emp 2
3
by: | last post by:
Hello All, this is my first post. OK - The goal is to display the following (note: substitute 1' ' for 2'*') by using 3 recursive functions. 0123454321001234543210 **012343210012343210**...
1
by: Robert | last post by:
Vb.Net Make dll that contain one function. Help Please. I would like to call a function from different applications. I think i have to make a dll. I have Visual Basic.net 2003 Standard...
2
by: Mihir | last post by:
I have a quick question. I am trying the following This is my table..tStudents Name Grades Ram 20 Ram 30 Ram 50
2
by: Goldie | last post by:
Can some please look at this function and maybe help me with why it's not doing as it's told... :) It's basicall meant to check to see if that field returned from database actually has any data...
2
by: ontherun | last post by:
Hi, I have a form called Customer based on the table tblCustomer and another form called Job based on the table Job when the user enter the details for the Customer i have a button at the...
5
by: turtle | last post by:
Background: I have a table of fields each field representing a month (Jan, Feb, Mar...). These are not a date field but more of a bucket to hold labor actuals. Along with the months their is...
1
by: maccount | last post by:
I'm having a simple problem (or at least I believe it to be), one that has stumped me. I have a simple text box in my Access Report, page header. Dmin("ppID", "qry001") This report is based on...
1
by: nrtyme | last post by:
Hello, I need to add several new records to Table2 from Table1. Table2 contains a field called that needs to be the previous maximum value of incremented by 1. Below is my code but i keep...
21
by: DanicaDear | last post by:
I have a report named "rptHOTSTICKS_EXPIRING" based on a query named "HOSTICKS_SHIPPING_REPORT Query". The query contains these fields: ORDER_NUM (text) CUST_NUM (text) Name, address, contact...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
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 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.