473,671 Members | 2,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reload query Not the total dataset

Hi

I have a listbox that I want to update when the an item is updated/added.
Now the listbox is attached to a query. Now I tried to just reload the
query by modifying the forms loadDataSet and filldataset subroutines but
when I do that the table values do not mesh which the lstbox anymore. As
well, I have looked at the data adapters select statement to try and update
it but to no avail.

Any suggestions?

The code below is the code that I used to reload the query.

Thanks in Advance

Bill

public void qryLoadDataSet( )

//--------------------------------------------------------------------------
-
//
{
MemSys.dsFamily objDataSetTemp;
objDataSetTemp = new MemSys.dsFamily ();
try
{
this.FillDataSe t(objDataSetTem p);
}
catch (System.Excepti on eFillDataSet)
{
// Add your error handling code here.
throw eFillDataSet;
}
try
{
objdsFamily.qry FamName.Clear() ;
objdsFamily.Mer ge(objDataSetTe mp);
}
catch (System.Excepti on eLoadMerge)
{
// Add your error handling code here.
throw eLoadMerge;
}

}


//--------------------------------------------------------------------------
-
public void qryFillDataSet( MemSys.dsFamily dataSet)

//--------------------------------------------------------------------------
-
//
{
dataSet.Enforce Constraints = false;
try
{
this.connFam.Op en();
this.daFQryFamN ame.Fill(dataSe t);
}
catch (System.Excepti on fillException)
{
// Add your error handling code here.
throw fillException;
}
finally
{
dataSet.Enforce Constraints = true;
this.connFam.Cl ose();
}

}
Nov 13 '05 #1
0 1850

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1928
by: dan_williams | last post by:
I am attempting to create a ASP.NET report whereby users can specify which columns they wish to be able to view depending on the options they select from a CheckBoxList. I have 4 tables, ClientGroups, Clients, Bookings & Depts. ClientGroups Clients Bookings -------------- ------------------ ------------------- cgId PK int ClientId PK int BookingId PK int cgName varchar ClientName...
3
2085
by: Jamie Pittman via AccessMonster.com | last post by:
I am having trouble bellow wit this query. I have the total regular hours and the overtime. The problem is that if it is 8 hours and under, I need it to show as regular hours. Any thoughts? SELECT ., .Date, ., IIf(<=8,,8) AS , Sum((-)) AS Ot FROM GROUP BY ., .Date, ., IIf(<=8,,8); -- Message posted via http://www.accessmonster.com
10
1666
by: riversmithco | last post by:
This should be easy, How do I reload a page so that it makes the server think it's the first time the page has been loaded? Thanks
0
1209
by: menno.abbink | last post by:
Hi All, I'm asked to come up with a sollution for the following: We are developing an application that will be displayed on a videowall ( at least 4000 x 2000 pixels) that will be used to monitor the actual state of several objects. We are thinking of using Scalable Vector Graphics to display the objects and the relations between them. The application needs to change the color of the objects whenever an event occurs (e.g. network link...
3
1792
by: dekern | last post by:
Good afternoon all, I guess I am missing the benefit of using datasets with Crystal. For years I have written wrapper apps that used the Pull method and I let Crystal do all the sql work. Now I have an issue where the queries run for 4+ minutes so I don't want Crystal doing repeated legwork. I was under the impression that once the DataSet is filled and bound to the report the report (crystalviewer) would not need to re-run the...
2
17648
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
How can I run this query against a table in my Access database? I don't know hwo to use it in C#. In VB I would use .Recordset = "some sql statement". How do I do this in C#? //I get a vlaue form a cell and apply it to the SQL statement commandCol = scriptDataGridView.FormattedValue.ToString(); string sCommand = "SELECT CommandString FROM Commands WHERE CommandName = " + commandCol; //This reutne a valie SQL statement which will return...
2
1885
by: is49460 | last post by:
Hello! I have data that consist of the follow as an example: Team name, player name and the score for that player. in the same time i have a total for that team in the dataset so it looks like this: team player score red John 5 red Mike 7 red Josh 4 red total 16 green Ron 4
4
2619
by: dsdevonsomer | last post by:
Hello, I have one simple query joining two tables with left outer join on 3 fields and using MIN on two fields. These two tables have lot of data about 3 mil in total. I am trying to migrate db from MS Access to SQL 2005. I get about 689000 rows in SQL Server, vs 863000 rows in MS Access. SELECT T1., T1., T2., MIN ( T1.), MIN(T1. ), T1.COUNT
3
2028
by: Mo | last post by:
I thought that this was going to be super easy (and it probably is), but I couldn't figure it out. I have results from a MySQL query which include PartNumber, Qty, Cost, and Price. In one part of the report, I want to only display Sum/Total info. As an example, let's say there are 5 rows of data, and I want to know only the sum total of $result from all 5 rows. I was expecting to use array_sum(), but have come to discover that
0
8471
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8907
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8663
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7423
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6218
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5687
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4396
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1799
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.