borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (Run SQL Job from Access) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : VBA word spacing Solved Topic
Poster Message
gosamerone
Level: Big Cheese

Registered: 22-03-2005
Posts: 27

icon VBA word spacing

In VBA when I type and use a space between words, my space automatically gets eliminated and all my words become one. What did I turn off or on to make VBA do this?

19-12-2006 at 12:51 PM
View Profile Send Email to User Show All Posts | Quote Reply
yronium
Level: Moderator


Registered: 14-04-2002
Posts: 933
icon Re: VBA word spacing

Post your code, more details and a sample.

____________________________
Real Programmer can count up to 1024 on his fingers

19-12-2006 at 01:30 PM
View Profile Send Email to User Show All Posts | Quote Reply
gosamerone
Level: Big Cheese

Registered: 22-03-2005
Posts: 27
icon Re: VBA word spacing

it is happening with all my code example
I type the following

dim street as string

as I type it automatically takes spaces away like below

dimstreetasstring

Or when I use my first " suddenly I see"" and I can't seem to stop it from automatically putting in the second one.

19-12-2006 at 04:30 PM
View Profile Send Email to User Show All Posts | Quote Reply
yronium
Level: Moderator


Registered: 14-04-2002
Posts: 933
icon Re: VBA word spacing

It's amazing, I've never seen anything like it!

It makes me thinking to any virus/worm/backdoor/netbus. Did you check your pc for it? (of course you did...) Anyway, it would behave this way with every text editor you work in, not only in Access VBA editor (but why not only into Access IDE?)...

And it makes me wonder about my keyboard driver, but it should be a standard Windows driver for sure. (is your keyboard clean from dust, particularily under the spacebar key?...)

And when does it remove the spaces? When you press Return to move on the new line, I guess, isn't it? If so, and if your keyboard works properly into other text editors, try completely remove and reinstall MSAccess. Maybe one library of it is corrupted at the moment.

In fact, if you type a double quote char, in order to enclose a string value within a couple of double quotes, there's no need to type the second one, as it's put automatically as you move on the next line. This is the normal VB editor behaviour. The strange thing is that it happens to you while you are still typing. It seems like it moves on the next line and then suddenly return back on the line you're typing in. If this would be the case, it looks like a trojan behaviour.

Well I'm aware I'm not that useful, sorry. Hope I gave you some reflection points to start.


____________________________
Real Programmer can count up to 1024 on his fingers

19-12-2006 at 05:26 PM
View Profile Send Email to User Show All Posts | Quote Reply
gosamerone
Level: Big Cheese

Registered: 22-03-2005
Posts: 27
icon Re: VBA word spacing

Virus protection up to date and on scheduled scan (sunday nights) But I did run again to make sure - no virus found.

Keyboard has been with pc for over a year and many projects - did clean it up a bit though

I'm going to try the tip on reinstall

very strange and I have never seen it before either
Thanks for the tips

19-12-2006 at 06:32 PM
View Profile Send Email to User Show All Posts | Quote Reply
gosamerone
Level: Big Cheese

Registered: 22-03-2005
Posts: 27
icon Re: VBA word spacing

Just to update I found my problem. I have a timer running a form that will automatically shut down the program if not active for a certain time period. (this eliminates user license issues with ODBCs) The form is hidden upon open and if not closed will cause the wierd vba typing. I close it on open when making changes and everything is normal.

30-05-2008 at 01:24 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : VBA word spacing Solved Topic
Next Topic (Run SQL Job from Access) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder