Solved

Filtering Recordsets Bound to a Form Using the Data Environment Tool

Posted on 2001-06-15
4
144 Views
Last Modified: 2013-11-26
My form uses no data control but instead binds the controls through the command object created in the Data Environment. Using one or more "sort by" combo box values off the form I would like to filter the underlying recordset the form is bound to. Can I change the command text for the current instance of the command object and have all data binding remain in tact?..or another aproach? What is the smart way to accomplish this?
0
Comment
Question by:LFRohr
4 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
ID: 6195892
You can, you just need to refresh the command object that you have changed the source of. This should maintain the binding, though for certainty I would also refresh any bound component to ensure that it has updated itself to any changes.
0
 
LVL 2

Expert Comment

by:kiprimshot
ID: 6195904
Once you change the filter you could try setting the datasources back to your dataenvironment...
this might do the trick.

Set Text1.datasource = Dataenvironment1

loop through all controls or one by one.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7136183
Hi LFRohr,
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 TimCottee's comment(s) as an answer.

LFRohr, 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.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

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

Computer101
E-E Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

860 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