PC Review


Reply
Thread Tools Rate Thread

data-type mismatch...Why am I getting this error???

 
 
Angi
Guest
Posts: n/a
 
      5th May 2005
I keep getting a 'data-type mismatch' error and I know what it means,
but I don't know why I'm getting it here. I copied the zip control
directly from the report and they're both pulling from the same table,
so why am I getting this error???

My code from the form:

Private Sub cmdZipRpt_Click()
DoCmd.OpenReport "ziprptform", acViewPreview, , "zip = " & Me.Zip
End Sub

 
Reply With Quote
 
 
 
 
Duane Hookom
Guest
Posts: n/a
 
      5th May 2005
You zip field is probably text. Try
DoCmd.OpenReport "ziprptform", acViewPreview, , "zip = """ & Me.Zip & """"


--
Duane Hookom
MS Access MVP


"Angi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I keep getting a 'data-type mismatch' error and I know what it means,
> but I don't know why I'm getting it here. I copied the zip control
> directly from the report and they're both pulling from the same table,
> so why am I getting this error???
>
> My code from the form:
>
> Private Sub cmdZipRpt_Click()
> DoCmd.OpenReport "ziprptform", acViewPreview, , "zip = " & Me.Zip
> End Sub
>



 
Reply With Quote
 
Angi
Guest
Posts: n/a
 
      5th May 2005
Duane,
That was it. I thought I tried that, but I think I did it wrong!
Thank you!!!

Angi

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Type mismatch error B. Meincke Microsoft Access Form Coding 3 14th Feb 2009 11:47 PM
Error data type mismatch Eric Microsoft Access 2 15th Aug 2006 08:51 AM
Data Type Mismatch Error =?Utf-8?B?ag==?= Microsoft Access 2 19th Jun 2006 11:51 PM
Data Type Mismatch Error Steve Crowhurst Microsoft Access VBA Modules 1 3rd Nov 2003 03:03 PM
ADO Data Type Mismatch error Lucky Microsoft Access VBA Modules 1 16th Aug 2003 01:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:29 AM.