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  

why this message dispaly "you tried to assign null value to a variable that is n



 
 
Thread Tools Display Modes
  #1  
Old July 28th, 2009, 11:06 AM posted to microsoft.public.access.tablesdbdesign
sharmamk1966
external usenet poster
 
Posts: 1
Default why this message dispaly "you tried to assign null value to a variable that is n

I create ms access database. In field level i get problem in date/time field
when i enter any date manually it accepted, if i delete it display this
message "you tried to assign null value to a variable that is not a variant
data type" why?

  #2  
Old July 28th, 2009, 01:33 PM posted to microsoft.public.access.tablesdbdesign
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default why this message dispaly "you tried to assign null value to a vari

I'm assuming that you are entering these dates in a form and not driectly
into the table. Therefore there's probably some code behind the form for that
field. Open the form in design more and look at the Event properties for that
field. Is there any code listed? If not check the properties for the entire
form.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"sharmamk1966" wrote:

I create ms access database. In field level i get problem in date/time field
when i enter any date manually it accepted, if i delete it display this
message "you tried to assign null value to a variable that is not a variant
data type" why?


  #3  
Old July 28th, 2009, 04:56 PM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default why this message dispaly "you tried to assign null value to a variable that is n

On Tue, 28 Jul 2009 10:06:36 GMT, "sharmamk1966" u53612@uwe wrote:

I create ms access database. In field level i get problem in date/time field
when i enter any date manually it accepted, if i delete it display this
message "you tried to assign null value to a variable that is not a variant
data type" why?


What's the context? That error message appears to be one that you would get in
a VBA code module, not in a table. How are you doing the delete? What's the
context?
--

John W. Vinson [MVP]
  #4  
Old July 28th, 2009, 10:17 PM posted to microsoft.public.access.tablesdbdesign
David W. Fenton
external usenet poster
 
Posts: 3,373
Default why this message dispaly "you tried to assign null value to a variable that is n

"sharmamk1966" u53612@uwe wrote in news:99be54cf95550@uwe:

I create ms access database. In field level i get problem in
date/time field when i enter any date manually it accepted, if i
delete it display this message "you tried to assign null value to
a variable that is not a variant data type" why?


Funny you should post on this. I'm working on an app I just took
over for a client, and it was developed a long time ago (mid-90s,
Access 2). One subform has a join between two tables and when I
delete the value in the child table that joins that record to the
parent, I get exactly that error.

Is the field you're getting the error with possibly being used in a
JOIN?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
  #5  
Old July 31st, 2009, 01:47 PM posted to microsoft.public.access.tablesdbdesign
sharmamk1966 via AccessMonster.com
external usenet poster
 
Posts: 1
Default why this message dispaly "you tried to assign null value to a vari

thanks for reply.
I resolve this problem at the same day after e-mail on monster. you are right
to say that
check the properies. I set the table properties and get every thing is ok.
but one query is there arise when we transfer data in date field the date
store in "MM/ddyyyy" formate where as i use and set regional date in
"dd/MM/yyyy" format. why this Happen.
regard.


Jerry Whittle wrote:
I'm assuming that you are entering these dates in a form and not driectly
into the table. Therefore there's probably some code behind the form for that
field. Open the form in design more and look at the Event properties for that
field. Is there any code listed? If not check the properties for the entire
form.
I create ms access database. In field level i get problem in date/time field
when i enter any date manually it accepted, if i delete it display this
message "you tried to assign null value to a variable that is not a variant
data type" why?


--
Message posted via http://www.accessmonster.com

 




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


All times are GMT +1. The time now is 05:01 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.