Solved

my 1'st  Q for Experts Only

Posted on 2001-06-09
3
128 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

757 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

19 Experts available now in Live!

Get 1:1 Help Now