Solved

Refresh a datagrid that is bound to a Designer - DataEnvironment

Posted on 2004-04-06
4
481 Views
Last Modified: 2013-12-25
Help!!!!!!!!!!

I have a DataGrid that is set up in this manner:

Datasource:      DataFEBCO_Systems
Datamember:    Current_Bids

I created the DataEnvironment using:   Add - More AxtiveX Designers - DataEnvironment
Then I created the DEConnection:   dataFEBCO_Database with a DECommand,     Current_Bids
So the tree to the data looks like this:
     DataFEBCO_Systems (DataEnvironment)
     dataFEBCO_Database(DEConnection)
     Current_Bids(DECommand)

Question:  How do I refresh the DataEnvironment, DEConnection, or DECommand - so that when I refresh the DataGrid, it will display the changes made to the database?
Need this ASAP!! - Thanks in advance :)
0
Comment
Question by:CMHamrick
  • 2
  • 2
4 Comments
 
LVL 29

Expert Comment

by:leonstryker
ID: 10765942
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 10766284
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 10766310
... and one more reason not to use DE. :)

Leon
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 10766339
Even if I'm not a fan of the DE, you would have the same problem using ADO objects!

You always need to refresh your ADO object before refreshing your GUI object!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

777 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