Re: Exe Weirdness

From: Rick Rothstein (rickNOSPAMnews_at_NOSPAMcomcast.net)
Date: 01/11/05


Date: Tue, 11 Jan 2005 12:02:48 -0500


> >> fileYear = Replace(currCDKFile, "CDK", "", , , vbTextCompare)
> >> fileYear = Replace(currCDKFile, ".mdb", "", , , vbTextCompare)
> >
> > Shouldn't the first argument of the second statement be fileYear and
not
> > currCDKFile? Otherwise, the first statement is having no effect.
> >
> > Rick - MVP
> >
>
> Yes. Transcription error.

Just making sure.<g>

> It doesn't explain why we're getting the "Invalid Property"...

True

> We replaced the replaces with the single Mid$() but I was
> reconstructing the Replace from memory in a big hurry.
>
> Still doesn't explain the mysterious disappearing 'Invalid Property'
> however.

I know you have focused down on the Replace functions, but a 380 error,
as you point out, is an Invalid Property error. The arguments of a
Replace function are not "properties". Properties are what Objects have
and no where in what you have posted do I see an Object of any sort. It
seems unlikely to me that the code you posted is the culprit. After your
last line (LoadCDKYears=True), what do you do? Somewhere, you must try
and open (load) this database, right? How are you doing that?

Rick - MVP



Relevant Pages

  • Re: Exe Weirdness
    ... > Shouldn't the first argument of the second statement be fileYear and not ... the first statement is having no effect. ... > Rick - MVP ... Still doesn't explain the mysterious disappearing 'Invalid Property' ...
    (microsoft.public.vb.general.discussion)
  • Re: [PHP] Re: whats the difference in the following code?
    ... In the first statement $search would either be set to $_GET ... whereas in the second statement $search would only ... or an empty string if it does not. ... Application and Templating Framework for PHP ...
    (php.general)
  • Re: [PHP] Re: whats the difference in the following code?
    ... In the first statement $search would either be set to $_GET ... whereas in the second statement $search would only ... or an empty string if it does not. ...
    (php.general)
  • Re: OT CNN calls Florida Republican Primary for McCain
    ... Her first statement is irrelevent to the discussion until she ties it to ... second statement. ... YOU being a shit for brains completely misinterpreted how her second ...
    (rec.gambling.poker)

Loading