Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 December 19th, 2006, 09:52 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default Auto Complete Problem - not working sometimes

Okay, this is bothering me and I thought someone might have a quick fix:

When using VBA in Access 2003, sometimes the auto complete works, and sometimes it doesn't.

Specifically, if I name an ADODB.Recordset "rs", then auto complete will not work for like rs.Open (it won't supply anything after the .) and it won't suggest recordset types or lock types.

If I name the ADODB.Recordset "rsL" auto complete DOES work.

I am not sure if this makes a difference, but I will use multiple ADODB.Recordsets to open a few tables at once and pass data back and forth, so maybe it has to do with which one is opened first? I haven't really noticed a difference other than it doesn't like "rs". Could it be a reserved word?

Thanks,

mmcdonal
__________________
mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old December 19th, 2006, 02:35 PM
Authorized User
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to FalseParadigm
Default

I do not have a solution to this, but I have noticed the same thing happening to me. When I'm working with objects and controls, this will sometimes happen, but it is seemingly random.

First, I tried your ADO "rs" example, and I have the same problem. This is bizzarre. I had never noticed this before because I always use "rst" for my recordsets.

I don't think "rs" is a reserved phrase. My theory at first was that the autocomplete feature may require at least 3 letters in order to work, but I gave some controls random 2-letter names (and even on named "rs") Autocomplete worked just fine on all of them.

This is a very interesting issue.

--------------------------------
Ben

"It's my way, or the Hemingway."
--------------------------------





Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Suggest is not working vinayhk BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 0 May 28th, 2008 03:18 AM
problem with Auto Number Brendan Bartley Access 6 August 14th, 2006 10:13 AM
Auto Complete Feild qazi_nomi Access 1 October 4th, 2004 09:11 AM
problem with auto login script to MSDE cmedley007 Access VBA 1 July 8th, 2004 11:01 AM
Auto Complete sridevi HTML Code Clinic 4 June 28th, 2004 06:45 AM





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