dbTalk Databases Forums  

Table grid on a dialog

comp.databases.ms-access comp.databases.ms-access


Discuss Table grid on a dialog in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gord
 
Posts: n/a

Default Table grid on a dialog - 10-10-2008 , 12:54 PM






Is it possible to get a table type grid to appear on a custom dialog form?
Basically, get the same thing as when you open a table in Datasheet view and
can edit the individual columns. I'd like to make a custom dialog (free
floating without the tab) with some textual instructions and then have a few
records displayed (probably from a query) in a little table that looks and
acts something like a table opened in Datasheet view.

The listbox control is close but doesn't allow the user to click in an
individual column and edit that data. Also, the listbox (as far as I know)
doesn't automatically expand and shrink to accommodate the exact number of
rows to be displayed. I already know how to create a dialog form with some
controls on it but I can't see how to make a little table appear.

Thanks,

Gord



Reply With Quote
  #2  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: Table grid on a dialog - 10-10-2008 , 10:04 PM






On Fri, 10 Oct 2008 17:54:34 GMT, "Gord" <x1gord1x (AT) telus (DOT) net> wrote:

How about a subform in datasheet view?

-Tom.
Microsoft Access MVP


Quote:
Is it possible to get a table type grid to appear on a custom dialog form?
Basically, get the same thing as when you open a table in Datasheet view and
can edit the individual columns. I'd like to make a custom dialog (free
floating without the tab) with some textual instructions and then have a few
records displayed (probably from a query) in a little table that looks and
acts something like a table opened in Datasheet view.

The listbox control is close but doesn't allow the user to click in an
individual column and edit that data. Also, the listbox (as far as I know)
doesn't automatically expand and shrink to accommodate the exact number of
rows to be displayed. I already know how to create a dialog form with some
controls on it but I can't see how to make a little table appear.

Thanks,

Gord


Reply With Quote
  #3  
Old   
Gord
 
Posts: n/a

Default Re: Table grid on a dialog - 10-11-2008 , 04:03 PM



Thanks Tom. I think that's going to work just about perfect.

I have a little experience with VB6 and am teaching myself Access 07. I'm
going to need to know (programmatically) what record/field the user is
editing in the subform datasheet so as to do some checks on data validation.
Any pointers/suggestions on how to do this would be helpful. I'll be using
a query as the 'Source Object' for the subform.

I've created record sets in code from tables and then done editing and
adding new records. In the case here I'm using a query created from design
view in Access so (I assume) Access has created some sort of record set
automatically. I would think that I need to access this record set to see
what's going on?

As I said, any pointers would be appreciated. I have a couple of books and
the on-line help to refer to if I can just get pointed in the right
direction.

Thanks,

Gord



"Tom van Stiphout" <tom7744.no.spam (AT) cox (DOT) net> wrote

Quote:
On Fri, 10 Oct 2008 17:54:34 GMT, "Gord" <x1gord1x (AT) telus (DOT) net> wrote:

How about a subform in datasheet view?

-Tom.
Microsoft Access MVP


Is it possible to get a table type grid to appear on a custom dialog form?
Basically, get the same thing as when you open a table in Datasheet view
and
can edit the individual columns. I'd like to make a custom dialog (free
floating without the tab) with some textual instructions and then have a
few
records displayed (probably from a query) in a little table that looks and
acts something like a table opened in Datasheet view.

The listbox control is close but doesn't allow the user to click in an
individual column and edit that data. Also, the listbox (as far as I
know)
doesn't automatically expand and shrink to accommodate the exact number of
rows to be displayed. I already know how to create a dialog form with
some
controls on it but I can't see how to make a little table appear.

Thanks,

Gord




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.