Solved

my 1'st  Q for Experts Only

Posted on 2001-06-09
3
131 Views
Last Modified: 2010-05-02
Dear experts;

I have a table(Authors: AuthorID/autnumber,AuthorName/ text).

In some forms I need to populate all authors in Data List combo box ordered by authorname. I do that by;

dim AuthRS as Adodb.recordset
set AuthRS = new adodb.recordset

Authrs.Open "Select * From Authors Order By AuthorName", _
        myConn,,adCmdText

set Combo1.RowSource=AuthRS

it works fine when the recordset cursor location is clientside, but the problem is my application is networkable and some workstation adding authors and the others use other forms that contains the desired combo box. if iam going to requery the recordset it will take a few seconds to repopulate the new data. Is there any way to keep my table dynamic to all users? if i use the serverside cursor location then the statement :
     Set Combo1.RowSource = AuthRS
will not work.

many thanks,
0
Comment
Question by:soso28
3 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 25 total points
ID: 6170850
You need to refresh the recordset explicitly. VB won't do it for you. You normally fill combos when you open the form and you may offer a button to force the refresh of your controls if your data is volatile.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7133480
Hi soso28,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Accept emoreau's comment(s) as an answer.

soso28, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7167893
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now