473,500 Members | 1,963 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Migrating Access Program to ASP have problems with Yes/No Field

A P
I am planning to migrate my exisiting MS Access program that uses yes/no
fields (checkbox). Can ASP identifies checkbox field of ms access? I am
planning to use the same database and use msacess for report generation and
web browser for encoding to the database.

Hope you could help me.

Me
Jul 19 '05 #1
5 2756
The answer is yes.

When testing for 'yes' you would say

WHERE Field = 1

Or

WHERE Field = 'True'
"A P" <ap@textguru.ph> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
I am planning to migrate my exisiting MS Access program that uses yes/no
fields (checkbox). Can ASP identifies checkbox field of ms access? I am
planning to use the same database and use msacess for report generation and web browser for encoding to the database.

Hope you could help me.

Me

Jul 19 '05 #2
A P
I tried to access certain field with Yes/No data type from MS Access but IE
gave me an error message:

Microsoft JET Database Engine error '80040e07'
Data type mismatch in criteria expression.

What do I need to do?

"David Morgan" <da***@davidmorgan.me.uk> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
The answer is yes.

When testing for 'yes' you would say

WHERE Field = 1

Or

WHERE Field = 'True'
"A P" <ap@textguru.ph> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
I am planning to migrate my exisiting MS Access program that uses yes/no
fields (checkbox). Can ASP identifies checkbox field of ms access? I am
planning to use the same database and use msacess for report generation

and
web browser for encoding to the database.

Hope you could help me.

Me


Jul 19 '05 #3
It's hard to say without seeing what your query is, i.e.

Response.write sqlString
response.end

Try using:

where fieldname=true

instead of
where fieldname='true'
if that's what you were using.

Ray at home

"A P" <ap@textguru.ph> wrote in message
news:eK**************@TK2MSFTNGP12.phx.gbl...
I tried to access certain field with Yes/No data type from MS Access but IE
gave me an error message:

Microsoft JET Database Engine error '80040e07'
Data type mismatch in criteria expression.

What do I need to do?

"David Morgan" <da***@davidmorgan.me.uk> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
The answer is yes.

When testing for 'yes' you would say

WHERE Field = 1

Or

WHERE Field = 'True'
"A P" <ap@textguru.ph> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
> I am planning to migrate my exisiting MS Access program that uses
> yes/no
> fields (checkbox). Can ASP identifies checkbox field of ms access? I am
> planning to use the same database and use msacess for report generation

and
> web browser for encoding to the database.
>
> Hope you could help me.
>
> Me
>
>



Jul 19 '05 #4
A P
The error was gone but I think the query cannot find what I'm looking for.

SELECT * FROM tblform WHERE Served = True

Note that Served field is a Yes/No MS Access Data Type.

Me
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:u9*************@TK2MSFTNGP12.phx.gbl...
It's hard to say without seeing what your query is, i.e.

Response.write sqlString
response.end

Try using:

where fieldname=true

instead of
where fieldname='true'
if that's what you were using.

Ray at home

"A P" <ap@textguru.ph> wrote in message
news:eK**************@TK2MSFTNGP12.phx.gbl...
I tried to access certain field with Yes/No data type from MS Access but IE gave me an error message:

Microsoft JET Database Engine error '80040e07'
Data type mismatch in criteria expression.

What do I need to do?

"David Morgan" <da***@davidmorgan.me.uk> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
The answer is yes.

When testing for 'yes' you would say

WHERE Field = 1

Or

WHERE Field = 'True'
"A P" <ap@textguru.ph> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
> I am planning to migrate my exisiting MS Access program that uses
> yes/no
> fields (checkbox). Can ASP identifies checkbox field of ms access? I am > planning to use the same database and use msacess for report generation and
> web browser for encoding to the database.
>
> Hope you could help me.
>
> Me
>
>



Jul 19 '05 #5
You need to use the numeric representations of true/false:
SELECT * FROM tblform WHERE Served = -1

Bob Barrows

A P wrote:
The error was gone but I think the query cannot find what I'm looking
for.

SELECT * FROM tblform WHERE Served = True

Note that Served field is a Yes/No MS Access Data Type.

Me
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote
in message news:u9*************@TK2MSFTNGP12.phx.gbl...
It's hard to say without seeing what your query is, i.e.

Response.write sqlString
response.end

Try using:

where fieldname=true

instead of
where fieldname='true'
if that's what you were using.

Ray at home

"A P" <ap@textguru.ph> wrote in message
news:eK**************@TK2MSFTNGP12.phx.gbl...
I tried to access certain field with Yes/No data type from MS
Access but IE gave me an error message:

Microsoft JET Database Engine error '80040e07'
Data type mismatch in criteria expression.

What do I need to do?

"David Morgan" <da***@davidmorgan.me.uk> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
The answer is yes.

When testing for 'yes' you would say

WHERE Field = 1

Or

WHERE Field = 'True'
"A P" <ap@textguru.ph> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
> I am planning to migrate my exisiting MS Access program that uses
> yes/no
> fields (checkbox). Can ASP identifies checkbox field of ms
> access? I am planning to use the same database and use msacess
> for report generation and web browser for encoding to the
> database.
>
> Hope you could help me.
>
> Me


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #6

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

Similar topics

2
1839
by: Jonathan \(Pickles\) Sklan-Willis | last post by:
Hi All, This is what I want to do: 1. Build a database in Access with certain queries and a query form. (DONE). 2. I now need to use the same form as a form in VB, this will be the front page...
49
14278
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
4
1706
by: John Ortt | last post by:
Hi Everyone, hope you can help. Our company has recently migrated from NT and Access 97 to XP and Access 2003 and in the process a number of problems have surfaced. The team I work in are...
17
2455
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a...
13
2412
by: Matt Fielder | last post by:
First off, if this is better posted in another group that qualifies as a manged group, please let me know. I currently have an application written in VB.Net using MSDE as the database. Current...
22
6601
by: Sri | last post by:
All Recenetly our shop migrated to DB2 V8 from V7. We are in IBM System Level: z/OS 1.6.1 @ RSU 0702. Processor : IBM 2064-1C7 (z/900) # 1B89 Mode: 64-bit One of my application is facing...
9
1971
by: Ron | last post by:
Hi All, I've recently installed a program written in Access 2000 on a laptop. The laptop had an existing Office 2000 Pro which of course included Access. But the program acts oddly (more oddly...
64
4494
by: John | last post by:
Hello there, Im cursing my place of employment...and its taken me a month to realise it... The scenario: Ive just stepped into a role to migrate an access database to VB.Net. The access...
0
7136
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
7018
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
7182
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
5490
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,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4611
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
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.