Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 19th, 2007, 06:19 AM
Registered User
 
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Simple report adjustments give #error

Hi everyone. I was hoping someone could help me debug some #error messages I am getting, driving me mad!

The following test works fine and prints the address split with a dash;
[claddr3] & " - " & [claddr3]

But, this gives me errors but I dont know why!

=StrConv("test",3) - WORKS
=StrConv([claddr3], 3) - #Error

Do i have to check that [claddr3] is a string or convert it to one before modifying?

 
Old March 19th, 2007, 01:00 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Are you using this code in text boxes on your report?

Could it be that there are null values in these fields?

If so, check for nulls and supply an alternate value if the field is null.


mmcdonal
 
Old March 19th, 2007, 04:37 PM
Registered User
 
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Thanks for the reply mmcdonal! I figured it out, the boxes were assigned wrongly so i remade dummy ones and used them (not quite sure how they were broke in the first place) and it is working now. Access feels very finicky though! Have ordered a book on it all as I am clearly out of my depth here despite writing a few word and outlook macros, this is just, well, a whole new ball game!

p.s. ordered Alison Balter's Mastering Microsoft® Office Access 2003, it looked like the best book which wouldnt waste 300 pages telling you how to import data from excel and all that pretty obvious stuff. If youve read the book and think i've made a helluva mistake please let me know!

Thankyou again! :D

 
Old March 20th, 2007, 07:01 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

No, Alison Balter is probably the best for this sort of thing. There are two volumes, desktop and enterprise. Both are very good starting points.

Access can be a bit dodgey, so you have to know your code and its quirks. FIXING Access Annoyances is a good one from O'Reilly. Pretty much all the Wrox books on Access are good, except the Access VBA references. You can get much better descriptions online at MSDN. The commentary in the book is extremely thin and not very helpful.

Don't forget to get some VBScript references too, since it works in the VBA environment, and can be used for some very powerful operations that VBA does not support, or does not support as well. The Microsoft Windows 2000 Scripting Guide, and Advanced VBScript books are the best.

HTH

mmcdonal
 
Old March 21st, 2007, 03:41 PM
Registered User
 
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the advice. I checked out that Fixing Access Annoyances book and it seems perfect. Shame it has a cover design that makes me want to avoid it and makes you think it is the kinda thing you'd give your mum.

Thanks again.






Similar Threads
Thread Thread Starter Forum Replies Last Post
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
Missing report field! - probably something simple LenexaKS Crystal Reports 0 October 10th, 2006 10:12 AM
Hiding datagrid column give error annsary ASP.NET 1.0 and 1.1 Professional 5 April 7th, 2006 03:45 AM
simple error jack_3 C# 5 November 16th, 2005 08:05 AM
PublishObjects give Error 1004 TimP Excel VBA 1 June 16th, 2004 03:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.