PC Review


Reply
Thread Tools Rate Thread

Access 97 VBA removes all my spaces

 
 
Colander
Guest
Posts: n/a
 
      1st Feb 2006
Dear group,

I have an Access database from an other company, and it
needs a little alteration, so far so good.

Now when I enter the VBA editor, and I try to type code,
like:
Dim a As String

Then when I type not fast enough (typing fast helps) it turns out like
DimaAsString

Off course I'm not happy with that :-(

Does anybody have any clue where the 'Let me easily type spaces'
options is?
or any suggestion what so ever, I re-installed Acces, Office, and more
like
that.

Thanks,
Bas

 
Reply With Quote
 
 
 
 
Brendan Reynolds
Guest
Posts: n/a
 
      1st Feb 2006
It sounds like the kind of thing that happens if you try to edit code while
a form is open in form view that has code in its Timer event procedure.

It is safer not to have any forms open except in design view while editing
code.

--
Brendan Reynolds
Access MVP


"Colander" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear group,
>
> I have an Access database from an other company, and it
> needs a little alteration, so far so good.
>
> Now when I enter the VBA editor, and I try to type code,
> like:
> Dim a As String
>
> Then when I type not fast enough (typing fast helps) it turns out like
> DimaAsString
>
> Off course I'm not happy with that :-(
>
> Does anybody have any clue where the 'Let me easily type spaces'
> options is?
> or any suggestion what so ever, I re-installed Acces, Office, and more
> like
> that.
>
> Thanks,
> Bas
>



 
Reply With Quote
 
Colander
Guest
Posts: n/a
 
      1st Feb 2006
Thanks!

I can't find any open forms, so I clicked the reset button (Is that
stopping all timers?) and the problem still remains...

Albeit that when I click on the mbd file all kind of automatic stuff
happens (like logging in to an external database and setting menu
options), is the reset button sufficient to kill all this?

(Sorry for my not knowing, I'm a C++ programmer, and the company I work
for still thinks that if you can programme one thing you can programme
all :-( )

 
Reply With Quote
 
Brendan Reynolds
Guest
Posts: n/a
 
      1st Feb 2006
It is possible that a form could be open but hidden. Try entering the
following in the Immediate Window (if you don't see the Immediate Window,
you can get to it with the keyboard shortcut Ctrl+G).

? Forms.Count

Forms is a collection of open forms, so if no forms are open, this should
print 0 to the Immediate Window.

It is also possible, of course, that I could be wrong and it may not be a
Timer event causing the problem at all, though from the description that is
what it sounds like.

To by-pass startup code when opening the MDB, hold down a Shift key when
opening it. There are two places that start-up behaviour may be defined. If
there is a macro named AutoExec, Access will execute it automatically when
the MDB is opened. Alternatively a form (or, more rarely, a Data Access
Page) can be defined as the start-up object, and any code in, for example,
the Open or Load event procedures of that form will be executed when the MDB
is opened. To see if a start-up object has been defined, from the Tools menu
select Startup. There are several other options in that dialog box that you
might want to change during development work too, for example you might want
'Allow Full Menus' enabled during development.

It is possible to disable the Shift-bypass key option, so if the AutoExec
macro or startup form code still fires even when you hold down the Shift key
when opening the MDB, it is because the original developer disabled that
option.

--
Brendan Reynolds
Access MVP

"Colander" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks!
>
> I can't find any open forms, so I clicked the reset button (Is that
> stopping all timers?) and the problem still remains...
>
> Albeit that when I click on the mbd file all kind of automatic stuff
> happens (like logging in to an external database and setting menu
> options), is the reset button sufficient to kill all this?
>
> (Sorry for my not knowing, I'm a C++ programmer, and the company I work
> for still thinks that if you can programme one thing you can programme
> all :-( )
>



 
Reply With Quote
 
Colander
Guest
Posts: n/a
 
      1st Feb 2006
Hi,

Thank you,

The ? Forms.Count says 2, so I think you might be right.

And after I tried the <shift> option you mentioned, I can code
again, in a normal fashion, a space stays in it's place!

Thans a lot,
Bas

 
Reply With Quote
 
=?Utf-8?B?a2FiYWth?=
Guest
Posts: n/a
 
      1st Feb 2006
You might still have hidden forms open - close your database and reopen it
holding the shift key. This will bypass any startup forms or settings and
allow you to directly access the module you want to edit the code for.
That's all I can suggest - If you're still having the same problem after that
maybe one of the MVP's has another suggestion.

"Colander" wrote:

> Thanks!
>
> I can't find any open forms, so I clicked the reset button (Is that
> stopping all timers?) and the problem still remains...
>
> Albeit that when I click on the mbd file all kind of automatic stuff
> happens (like logging in to an external database and setting menu
> options), is the reset button sufficient to kill all this?
>
> (Sorry for my not knowing, I'm a C++ programmer, and the company I work
> for still thinks that if you can programme one thing you can programme
> all :-( )
>
>

 
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
Access 2002 Run-Time removes license from Access 97 Sharon Lovett Microsoft Access Getting Started 1 8th Apr 2004 03:36 PM
OE removes access to attachments bryan Microsoft Outlook 1 26th Mar 2004 04:58 PM
COM+ removes spaces in field Jeppe A Microsoft ADO .NET 0 19th Nov 2003 04:07 PM
OE removes access to attachments Harry Windows XP Basics 0 19th Sep 2003 02:23 PM
Re: OE removes access to attachments Nicholas Windows XP Basics 0 19th Sep 2003 02:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 PM.