Solved

Filtering Recordsets Bound to a Form Using the Data Environment Tool

Posted on 2001-06-15
4
141 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

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

Suggested Solutions

Title # Comments Views Activity
Sending a email via excel using vba 6 72
maro to copy and paste from one worksheet to another based on a condition 11 48
Add and format columns in vb6 7 47
vbModal 12 37
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

867 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

12 Experts available now in Live!

Get 1:1 Help Now