Computing.Net > Forums > Programming > my second problem in vb (no. 2)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

my second problem in vb (no. 2)

Reply to Message Icon

Name: alenoosh
Date: October 27, 2002 at 05:11:08 Pacific
OS: windows xp
CPU/Ram: pentium 2.0 (350mhz) &
Comment:

hi all.

here's my second problem in vb (creating database using ado connection).

when i add a new record and get data in text box in the form of number (long integer
or integer) this field is not entered and i get runtime error the next time i want to view
the data entered:

run-time error '94':
Invalid use of null

what's the reason?


u know the format of this textbox is set to number(custom)(in vb) and the field in the
database is number(long integer).

what type do u recommand for long numbers like "3436565656767" ?
i want this data to be shown just in the way i have entered not in the scientific form .
but when i set them to long integer they're shown as "444444E+10".

what should i do?

alenoosh.



Sponsored Link
Ads by Google

Response Number 1
Name: Ashwin
Date: October 29, 2002 at 20:02:38 Pacific
Reply:

Hello alenoosh,

Is it necessary to use number type here?
I mean u can take it as text type.

If u want to use number type then also I am giving u the solution.

I hope u might be using MS-Access here.

go to table design, number field.
set the properties as shown below:

Field Size: double
Format: Fixed
Decimal places: 0

Just set these three values properly and ur task will be completed.

Do write back.

Bye.


0

Response Number 2
Name: K.P.KANNAN
Date: October 30, 2002 at 06:32:43 Pacific
Reply:

Whenever you assign a field value to a textbox you always use
text1.text=""& field value
This won't make any difference.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: my second problem in vb (no. 2)

Select-case problem in VB.net www.computing.net/answers/programming/selectcase-problem-in-vbnet/11240.html

Saving problem in vb6 www.computing.net/answers/programming/saving-problem-in-vb6/10488.html

How declare structs in VB? www.computing.net/answers/programming/how-declare-structs-in-vb/11174.html