Solved

convert null value into space

Posted on 2004-03-24
1
729 Views
Last Modified: 2013-12-25
hi,
when i load a "null" value from a field in a table into a control, for e.g a text box,or listview, it will give me error of
"Type Mismatch".any way or syntax that can "convert" the null value into a valid space that can be stored by a
control?any solution for this?

i dun wan to use long statement like:
      if isnull(objrec1!field1)=true then text1=" "


thx.
daniel
0
Comment
Question by:daniellyh
1 Comment
 
LVL 8

Accepted Solution

by:
william_jwd earned 30 total points
ID: 10668721
just give

text1.text = "" & objrec1!field1
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vba find the last empty column 10 88
Restricting text box entry from \/:?<>"| 9 76
Updates not working for MS Windows 7 12 153
Visual Studio 2005 text editor 10 35
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now