Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 5th, 2004, 06:15 PM
Kzin Kzin is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 3 Kzin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Type Mismatch

Hey All

Bran spankin' new to this forum. Have a question with regards to Access and Macros...

I have an Access frontend running with an SQL backend. Boss doesn't want me to step into VB much, wants me to handle everything in Macros.

I am trying to make a macro that prepends a date to a field in a form. Problem is that this field is already populated with text data, and date is in date format (Using Date() in the macro) I get a type mismatch error when I run the macro.

Here is the line...
Its a SetValue Action...

Date()+[Forms]![FindDataEdit_Changes].[Notes]

Note that the old notes are preserved and added to the back of the date. Like I said above, I get the error "Type Mismatch" with no error code.

Thanks in advance to any suggestions you may have to offer.

Dylan

Reply With Quote
  #2  
Old February 5th, 2004, 07:28 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Yes - you'll need to convert the date to a string first... I assume Access is similar to any other MS langauge, so check out the cstr() function. Or Google "convert string"
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old February 23rd, 2004, 09:41 AM
Kzin Kzin is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 3 Kzin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Thanks =)

Quote:
Originally Posted by stumpy
Yes - you'll need to convert the date to a string first... I assume Access is similar to any other MS langauge, so check out the cstr() function. Or Google "convert string"



This did the trick, thank you (and sorry about the belated reply)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Type Mismatch


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT