A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Variant data type



 
 
Thread Tools Display Modes
  #1  
Old December 3rd, 2004, 06:25 AM
Wantula
external usenet poster
 
Posts: n/a
Default Variant data type

Im trying to assign auto date(current date) to the date field.However
everytime I do this, there is an error, saying im trying to assign a null
value to the variable that is not a variant data type.Im using: =date(). Is
there a way I can change the date variable to a variant datatype.
  #2  
Old December 3rd, 2004, 06:48 AM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Thu, 2 Dec 2004 22:25:01 -0800, "Wantula"
wrote:

Im trying to assign auto date(current date) to the date field.However
everytime I do this, there is an error, saying im trying to assign a null
value to the variable that is not a variant data type.Im using: =date(). Is
there a way I can change the date variable to a variant datatype.


There are a couple of possible causes of this error:

- Check your References. Open the VBA editor and select Tools...
References from the menu. If one is marked MISSING, many things will
get messed up, calls to Date() amongst them. Uncheck the checkbox by
the missing reference, and (if it's needed) recheck it. Close and open
Access and see if the problem is resolved. If not, doublecheck that
the file referred to by the reference does in fact exist in the
pointed-to directory.

- If you have a field or a control named Date, Access may be getting
confused. Rename it.


John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
join problem Jonas Running & Setting Up Queries 8 December 23rd, 2004 07:35 AM
Table Data Type for Option Group controls on Forms? Pat Dools Using Forms 1 December 18th, 2004 01:01 PM
SQL view of messed up action queries Kendra Running & Setting Up Queries 2 August 31st, 2004 09:53 PM
Importing Excel spreadsheet into Access - data type problem Andrew Good General Discussion 2 August 27th, 2004 09:39 AM
Number Data Type Field and Leading Zeros Carlos Database Design 4 July 28th, 2004 07:29 PM


All times are GMT +1. The time now is 08:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.