PC Review


Reply
Thread Tools Rate Thread

weird problem with references, format(), format$()

 
 
jfp
Guest
Posts: n/a
 
      4th Dec 2003
First, everything described here works fine on my system (Win 2000 /
Access 2002). The weird behavior happens on my client's system (Win 98
/ Access 2002). The references are set identically on these systems:
VBA
Access 10.0 Object Lib
OLE Automation
Office XP Web comps
DAO 3.6
my personal code library

Part of the app is a form with a variety of unbound list boxes. These
all have Row Source Type = "Table / Query" and the row sources are
various Select statements. Some of these statements involve VBA
functions. In particular, list box "A" uses the function Format() in
the SQL string and list box "P" uses Format$(). (Note: no particular
reason for the difference; i believe Format$ is more efficient than
Format, but i don't always remember to use it.) If i open this form, i
get error messages that these two functions are undefined. The form
then opens and list boxes A and P are both blank (the others are fine).
If i go to the immediate pane in VB, i have no problem evaluating these
functions (so they must be defined -- as they should be). My program
uses the Format function in many places and these are all ok. Now,
normally this form is not opened directly by the user. Instead, my
program will copy one of the list boxes into another form with which the
user interacts. When list box P is copied, it continues to come up
empty (due to error with Format$()). But, when list box A is copied, it
works.
So -- Format and Format$ appear to be undefined in a SQL string as row
source for list box -- although they work fine in code. Also, Format
appears to somehow start working whereas Format$ does not. And, again,
this all works without a glitch on my system.

Any ideas ?

 
Reply With Quote
 
 
 
 
Bruce M. Thompson
Guest
Posts: n/a
 
      4th Dec 2003
> First, everything described here works fine on my system (Win 2000 /
> Access 2002). The weird behavior happens on my client's system (Win 98
> / Access 2002). The references are set identically on these systems:
> VBA
> Access 10.0 Object Lib
> OLE Automation
> Office XP Web comps
> DAO 3.6
> my personal code library


You may still want to check for a "references" problem. If you aren't already
familiar with it, see the following page at Doug Steele's web site:

http://members.rogers.com/douglas.j....nceErrors.html

--
Bruce M. Thompson, Microsoft Access MVP
(E-Mail Removed) (See the Access FAQ at http://www.mvps.org/access)
>> NO Email Please. Keep all communications

within the newsgroups so that all might benefit.<<


 
Reply With Quote
 
 
 
 
Van T. Dinh
Guest
Posts: n/a
 
      5th Dec 2003
Likely to be the Reference Errors. See Douglas J. Steele's article:

http://members.rogers.com/douglas.j....nceErrors.html

--
HTH
Van T. Dinh
MVP (Access)



"jfp" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> First, everything described here works fine on my system (Win 2000 /
> Access 2002). The weird behavior happens on my client's system (Win 98
> / Access 2002). The references are set identically on these systems:
> VBA
> Access 10.0 Object Lib
> OLE Automation
> Office XP Web comps
> DAO 3.6
> my personal code library
>
> Part of the app is a form with a variety of unbound list boxes. These
> all have Row Source Type = "Table / Query" and the row sources are
> various Select statements. Some of these statements involve VBA
> functions. In particular, list box "A" uses the function Format() in
> the SQL string and list box "P" uses Format$(). (Note: no particular
> reason for the difference; i believe Format$ is more efficient than
> Format, but i don't always remember to use it.) If i open this form, i
> get error messages that these two functions are undefined. The form
> then opens and list boxes A and P are both blank (the others are fine).
> If i go to the immediate pane in VB, i have no problem evaluating these
> functions (so they must be defined -- as they should be). My program
> uses the Format function in many places and these are all ok. Now,
> normally this form is not opened directly by the user. Instead, my
> program will copy one of the list boxes into another form with which the
> user interacts. When list box P is copied, it continues to come up
> empty (due to error with Format$()). But, when list box A is copied, it
> works.
> So -- Format and Format$ appear to be undefined in a SQL string as row
> source for list box -- although they work fine in code. Also, Format
> appears to somehow start working whereas Format$ does not. And, again,
> this all works without a glitch on my system.
>
> Any ideas ?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
weird weird weird... multiple text boxes alves Microsoft Powerpoint 6 12th Oct 2007 04:53 PM
Weird WEIRD Outlook Problem FBA Microsoft Outlook Discussion 1 24th Jan 2006 01:25 PM
Weird, weird problem... =?Utf-8?B?Um9iIFM=?= Microsoft Dot NET Compact Framework 2 28th Apr 2005 02:58 PM
Weird, weird, Sp2 firewall problem (I think) Chris Powell Windows XP Help 0 23rd Aug 2004 04:30 PM
Re: weird weird blackouts Jim Macklin Windows XP Hardware 0 17th May 2004 09:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:53 AM.