473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

how can we fill data in same mshflexgrid using two recordset?

dnb
34
how can we fill data in same mshflexgrid using two recordset?
Some from one & some from another recordset?
please give reply
Jan 4 '08 #1
2 1753
QVeen72
1,445 Expert 1GB
Hi,

A Flex Grid can have only one Datasource, you cannot give multiple.

An alternative is to Change the Query itself..
Column Names, and ColumnTypes of both recordsets are same...?
If yes, then Change your Query itself.. Use "Union All" from 2 tables

Something like this :
Expand|Select|Wrap|Line Numbers
  1. Select T1.ID, T1.TName, T1.Addr1, T1.Amt  From Table1 T1
  2. UNION ALL
  3. Select T2.ID, T2.TName, T2.Addr1, T2.Amt  From Table2 T2
  4.  
Another Alternative is open both recordset and Fill each Row by looping through..

REgards
Veena
Jan 4 '08 #2
dnb
34
Thank You So Much.....It works.....Bye....

Hi,

A Flex Grid can have only one Datasource, you cannot give multiple.

An alternative is to Change the Query itself..
Column Names, and ColumnTypes of both recordsets are same...?
If yes, then Change your Query itself.. Use "Union All" from 2 tables

Something like this :
Expand|Select|Wrap|Line Numbers
  1. Select T1.ID, T1.TName, T1.Addr1, T1.Amt  From Table1 T1
  2. UNION ALL
  3. Select T2.ID, T2.TName, T2.Addr1, T2.Amt  From Table2 T2
  4.  
Another Alternative is open both recordset and Fill each Row by looping through..

REgards
Veena
Jan 4 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Joanne Lewis | last post by:
I am having a great deal of difficulty with a form. Basically, I would like to enter an account # and have the account #, patient first name, and patient last name automatically fill. The form...
10
by: Rich | last post by:
I have a stored procedure on Sql Server2k. I can fill a data table which I can append to a dataset using an ADODB recordset object which gets populated from a command object that runs the sp. I...
4
by: doller | last post by:
Hi Dear , I have a mshflexgrid control on the VB form having 200 rows .I need to add a row before or after the selected row in the grid. As wee do in excel we can add rows before or after...
2
by: nairda | last post by:
Hi, I'm Adrian from Indonesia. I have a problem using MSHFlexgrid in VB. I want to show a data from a single cell in MSHFlexgrid that I choose by mouse click in a textbox. The problem is, how to...
0
by: nairda | last post by:
Hello all! I have a problem combining 2 tables from excel to my MSHFlexgrid. I've succeeded to show an excel table in my MSHFlexgrid using clipboard, but then I have to add a view columns from...
4
by: nairda | last post by:
Hi, I have a minor trouble in my program. I've one MSHFlexgrid to show all datas from an input form that I made. The problem occurs when I deleted one or more rows in the MSHFlexgrid and would like...
4
by: nairda | last post by:
Hi all, I have a MSHFlexgrid to show my database and some textboxes to show datas I choosed from MSHFlexgrid. I would like to know if there's a way to show a specific data I choosed from MSHF in...
1
by: babbles | last post by:
I have a problem about data reports. My project is to view reports monthly, yearly and daily and show the query on MShflexgrid and show the total income summary. I have already made my query on that...
2
by: WhiteShore | last post by:
hi there just wonder is it possible to save all the data item from mshflexgrid that has been retrieved from another table? let say i got 1 table called A and has been retrieved by mshflexgrid,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.