473,388 Members | 1,499 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,388 software developers and data experts.

ActiveX Grids

Hello All

I'm going to use ActiveX Grids. I have next

1) Library MSDataGridLib
C:\WINNT\system32\MSDATGRD.OCX
Microsoft DataGrid Control 6.0 (SP4) (OLEDB)

2) Library MSFlexGridLib
C:\WINNT\system32\msflxgrd.ocx
Microsoft FlexGrid Control 6.0 (SP3)

3) Library MSHierarchicalFlexGridLib
C:\WINNT\system32\mshflxgd.ocx
Microsoft Hierarchical FlexGrid Control 6.0 (SP4) (OLEDB)
What is the most powerful ?
What from them the most like Access Datasheet

Thank You
illya
Nov 12 '05 #1
7 9193
I would not use any of them, and would consider just using a regular form in
ms-access, but use the form in continues form mode.

Take a look at the following screen shots of how I make grids in ms-access.
You really do not need any extra controls. Besides, if you start using
ActiveX controls, then you need the developer edition of those controls, and
you also thus need a "installer" when you distribute your application.

In fact, you will find the continues forms in ms-access WAY BETTER then most
grid controls.

check out my screen shots of continus forms:
http://www.attcanada.net/~kallal.msn/Articles/Grid.htm

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
ka****@msn.com
http://www.attcanada.net/~kallal.msn
Nov 12 '05 #2
Thank You for Your reply.
But problem with Access SubForms in next:
==============================
Hello All

I have splitted my MDB into MDE and data MDB.
In old whole MDB I have next piece of code to
create an instance of a form with subform.

.....
Dim objForm As New Form_frmParentFormWithSubForm

objEditForms.Add objForm
With objForm
.FillValues
.Visible = True
End With
.....
When I save it as MDE this code opens only a parent form.
I have next ideas, Please comment
- It comes from that form in MDE is not visible outside
- it can be fixed, I need ....
- it can not be fixed

- I need use special naming with usign Namespaces like MDE module name

- I need create sub form by new as well and assign subform to
subform/subreport property
- it can not be done because subform/subreport property is readonly
- it can be done by "special" SysCmd or etc

- How DoCmd.OpenForm works ? Because without creating an instances I can
open
form with subform outside MDE
- I need to call DoCmd.OpenForm by special way
- It will not help

- I need to write C/C++ DLL to write special version of DoCmd.OpenForm

- I need use MS Forms

- I need to use third company's OCX

- Any other

Thank You
illya
===============================
"Albert D. Kallal" <ka****@msn.com> wrote in message
news:E7wgb.37047$pl3.16069@pd7tw3no...
I would not use any of them, and would consider just using a regular form in ms-access, but use the form in continues form mode.

Take a look at the following screen shots of how I make grids in ms-access. You really do not need any extra controls. Besides, if you start using
ActiveX controls, then you need the developer edition of those controls, and you also thus need a "installer" when you distribute your application.

In fact, you will find the continues forms in ms-access WAY BETTER then most grid controls.

check out my screen shots of continus forms:
http://www.attcanada.net/~kallal.msn/Articles/Grid.htm

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
ka****@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #3
"Illya Havsiyevych" <ga***@ukr.net> wrote in message
news:bl***********@news.wnet.ua...

....
Dim objForm As New Form_frmParentFormWithSubForm

objEditForms.Add objForm
With objForm
.FillValues
.Visible = True
End With
....


I think the above should work just fine. Am I to assume that objEditForms is
a collection?

Also, .FillValues. Is that a custom method of the form (ie: a public
function?). How does that code work?

I don't see anything in the above that would case a mde not to work, and a
mdb to function. The only difference between a mde and mdb is that
un-trapped errors in a mdb re-set all your global vars. Perhaps you have a
un-trapped error in the mdb that resets your values (those values don't
re-set in a mde...but remain intact even AFTER un-trapped errors).

I would spend some time checking the above.

However, if you are really insisting on using a activeX control, then I
would suggest you ask your question for which activex control to use in a VB
group, and not a ms-access group, as most here don't use he activeX controls
due to the problems of references, and the need for a installer. I don't
know which activeX contorl is the best....but what is stopping you from
trying a few?

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
ka****@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #4
Thank You again

I'm not using ActiveX now.
objEditForms is a collection to store refs to all instances of created Forms
..FillValues is Form method but we can skip it. It is not important

If You are going to check smth do next:
1) create a form with a subform
2) create a code that can be visible outside mde that creates an instance of
this form
3) compile all above to mde
4) create other mdb, use this mde as reference
5) use code from mde to open an form

The main difference is next:
I'm not using DoCmd.OpenForm. In case of DoCmd.OpenForm all work
but I have only 1 instance. But I'm trying to have many

illya

"Albert D. Kallal" <ka****@msn.com> wrote in message
news:xaFgb.38800$9l5.1364@pd7tw2no...
"Illya Havsiyevych" <ga***@ukr.net> wrote in message
news:bl***********@news.wnet.ua...

....
Dim objForm As New Form_frmParentFormWithSubForm

objEditForms.Add objForm
With objForm
.FillValues
.Visible = True
End With
....

I think the above should work just fine. Am I to assume that objEditForms

is a collection?

Also, .FillValues. Is that a custom method of the form (ie: a public
function?). How does that code work?

I don't see anything in the above that would case a mde not to work, and a
mdb to function. The only difference between a mde and mdb is that
un-trapped errors in a mdb re-set all your global vars. Perhaps you have a
un-trapped error in the mdb that resets your values (those values don't
re-set in a mde...but remain intact even AFTER un-trapped errors).

I would spend some time checking the above.

However, if you are really insisting on using a activeX control, then I
would suggest you ask your question for which activex control to use in a VB group, and not a ms-access group, as most here don't use he activeX controls due to the problems of references, and the need for a installer. I don't
know which activeX contorl is the best....but what is stopping you from
trying a few?

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
ka****@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #5
I'm sorry very much,
Just subform work Ok
The subform with bound data table gives error

I created recordset by VBA and bound it at Form_Load time
and became Ok

Thank You again

"Illya Havsiyevych" <ga***@ukr.net> wrote in message
news:bm***********@news.wnet.ua...
Thank You again

I'm not using ActiveX now.
objEditForms is a collection to store refs to all instances of created Forms .FillValues is Form method but we can skip it. It is not important

If You are going to check smth do next:
1) create a form with a subform
2) create a code that can be visible outside mde that creates an instance of this form
3) compile all above to mde
4) create other mdb, use this mde as reference
5) use code from mde to open an form

The main difference is next:
I'm not using DoCmd.OpenForm. In case of DoCmd.OpenForm all work
but I have only 1 instance. But I'm trying to have many

illya

"Albert D. Kallal" <ka****@msn.com> wrote in message
news:xaFgb.38800$9l5.1364@pd7tw2no...
"Illya Havsiyevych" <ga***@ukr.net> wrote in message
news:bl***********@news.wnet.ua...

....
Dim objForm As New Form_frmParentFormWithSubForm

objEditForms.Add objForm
With objForm
.FillValues
.Visible = True
End With
....

I think the above should work just fine. Am I to assume that objEditForms is
a collection?

Also, .FillValues. Is that a custom method of the form (ie: a public
function?). How does that code work?

I don't see anything in the above that would case a mde not to work, and
a mdb to function. The only difference between a mde and mdb is that
un-trapped errors in a mdb re-set all your global vars. Perhaps you have a un-trapped error in the mdb that resets your values (those values don't
re-set in a mde...but remain intact even AFTER un-trapped errors).

I would spend some time checking the above.

However, if you are really insisting on using a activeX control, then I
would suggest you ask your question for which activex control to use in

a VB
group, and not a ms-access group, as most here don't use he activeX

controls
due to the problems of references, and the need for a installer. I don't
know which activeX contorl is the best....but what is stopping you from
trying a few?

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
ka****@msn.com
http://www.attcanada.net/~kallal.msn


Nov 12 '05 #6
"Illya Havsiyevych" <ga***@ukr.net> wrote in message
news:bm***********@news.wnet.ua...
I'm sorry very much,
Just subform work Ok
The subform with bound data table gives error
I done the above many times. Some with 3 or even 4 sub forms and a LOT of
code. The multiple instances all functioned as usual.

You should note that the on-load event fires when you create the instance of
the form.

That means the when the following line of code is executed, the on-load even
fires:
Dim objForm As New Form_frmParentFormWithSubForm

Since all class objects fire their initialize event when using the new
keyword, often, many developers will NOT use a the new keyword as a result
(it is considered bad programming practice....and one I am also guilty of).
In fact, if you reference any property of the "base" form object, and that
form object is NOT loaded, then again the on-load event fires. As a result,
I would check any initialize code and make sure NONE OF YOUR CODE uses
references to base forms objects like:

Form_frmParentFormWithSubForm.FillList
If you need to control when the on-load event fires, then don't use the
"new" keyword, but use:

Dim objForm As Form_frmParentFormWithSubForm
...... some code here.....

Then...

set objForm = New Form_frmParentFormWithSubForm

The on-load event will fire at the above point, and not at the "dim"
statement.

I created recordset by VBA and bound it at Form_Load time
and became Ok


Hum, you should not have to do that...but ok....

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
ka****@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #7
Thank You

"Albert D. Kallal" <ka****@msn.com> wrote in message
news:1KWgb.48136$6C4.45639@pd7tw1no...
"Illya Havsiyevych" <ga***@ukr.net> wrote in message
news:bm***********@news.wnet.ua...
I'm sorry very much,
Just subform work Ok
The subform with bound data table gives error
I done the above many times. Some with 3 or even 4 sub forms and a LOT of
code. The multiple instances all functioned as usual.

You should note that the on-load event fires when you create the instance

of the form.

That means the when the following line of code is executed, the on-load even fires:
Dim objForm As New Form_frmParentFormWithSubForm

Since all class objects fire their initialize event when using the new
keyword, often, many developers will NOT use a the new keyword as a result
(it is considered bad programming practice....and one I am also guilty of). In fact, if you reference any property of the "base" form object, and that
form object is NOT loaded, then again the on-load event fires. As a result, I would check any initialize code and make sure NONE OF YOUR CODE uses
references to base forms objects like:

Form_frmParentFormWithSubForm.FillList
If you need to control when the on-load event fires, then don't use the
"new" keyword, but use:

Dim objForm As Form_frmParentFormWithSubForm
..... some code here.....

Then...

set objForm = New Form_frmParentFormWithSubForm

The on-load event will fire at the above point, and not at the "dim"
statement.

I created recordset by VBA and bound it at Form_Load time
and became Ok


Hum, you should not have to do that...but ok....

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
ka****@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #8

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

Similar topics

0
by: BestNews | last post by:
OS: XP ..Net= framework = 1.0.3705 VS.Net IDE = 7.0.9466 1. I used an ActiveX control in C# client Application. After executing Aximp of ActiveX control. I derived a class from the AxHost.
0
by: is_grizzly_adams | last post by:
I am working on a Bid, Bid Details data entry screen and have decisions to make on how to work with Grids/Datasets/Lookups and Templates. My table layouts are as follows: Bid Bid_ID,...
0
by: newsgroupscnhs | last post by:
Hi, I have an app with many forms that contain grids. On my development and test machines everything is fine. I just deployed to my beta site and all my grids are missing their scrollbars! ...
2
by: orekinbck | last post by:
Hi There Using C# forms, I have a main screen that contains 2 data grids. * The data grids are connected to ArrayLists (each grid has its own ArrayList) * The data grids are intended for...
1
by: James G. Beldock | last post by:
I must be missing something simple: I've got several grids on a single page. Those grids can have a variable numbers of lines. But if they expand or contract, I can't figure out how to move the...
0
by: IGotYourDotNet | last post by:
I have a page and I need to put multiple grids on it, (10 to be exact). The issue i'm having is sometime some grids have 3 records and sometimes they can have 20 records and what happens is that the...
1
by: RAJ | last post by:
Hi, I am working on a source code written earlier in VB.net.While loading some forms(already created with some controls on it), I am getting the following error:...
0
by: David Veeneman | last post by:
This post is for the Google crawler-- no response in required. Can a containment hierarchy made up of two collections derived from BindingList<T> be data-bound to master-detail dataGridView...
2
by: Hamayun Khan | last post by:
Hi I have Two Sql tables that hold jobs information. The field names are same but data types are different. I want to select to data from both tables using union into one query. but someone told...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.