🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #4009

Re: HOWTO: use RowSource property of a field in MS Access table

#4009
From: Programmer Dude
Date: Thu, 18 Sep 2003 20:18
48 lines
3105 bytes
Vladimir wrote:

>> Row Source is *NOT* a property of a Field.  It's a property
>> of the ComboBox on the Form in Access.
> 
> Then how can I get those sort of properties?

I'm not sure you can with ADO.  If you use Access COM, you might
be able to, but it may require the form be open (the Access COM
includes a Forms collection, which would contain the Form in
question, but I'm not sure you can access it unless the Form is
opened).

>> Are you saying you get "Above" in that case and "1" if you issue
>> an SQL statement through VC++?  That's.... impossible.  Something
>> else is going on.  Are you sure the Query Designer isn't linking
>> in a table or doing some sort of lookup?
> 
> It is possible. You can create your own table in Access with one
> field having lookup with following properties:
> 
> Display control = Combo Box
> Row ource type = Value list
> Row source = 1;"qwe";2;"asd";3;"zxc"
> Bound column = 1
> Column count = 2
> Column heads = No
> Column widths = 0cm;4cm
> List rows = 8
> List width = 4cm
> Limit to list = Yes

Yes, this is exactly what I was talking about.  The Access table
has a control defined in it.  I'm fairly certain you can't access
this via ADO, but you might via Access COM.

> Then fill table with data and enter MANUALLY in Query Designer
> (View / SQL mode) this text: SELECT <field> FROM <table> - and
> you will get strings.

Yes, I see what you mean, now.  I'm leaving for the day and might
not be back until Monday, but if you are still having trouble then,
I'll see if I can provide some areas to explore.

-- 
|_ CJSonnack <Chris@Sonnack.com> _____________| How's my programming? |
|_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL  |
|_____________________________________________|_______________________|
Technical Details
Message-ID: <3F6A1307.C9F1F28D@Sonnack.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!msc1.onvoy!onvoy.com!news.mmm.com!not-for-mail
References: <1063654572.733837@ufacom.ru> <3F661B99.F254B2B5@mmm.com> <1063692744.877932@ufacom.ru> <3F6775C4.B68635B6@Sonnack.com> <1063827758.127724@ufacom.ru>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,5c969b162d5156fa
X-Google-Attributes: gidfcea4,public
X-Google-Thread: 108717,5c969b162d5156fa
X-Google-Attributes: gid108717,public
X-Google-Thread: 113dfb,5c969b162d5156fa
X-Google-Attributes: gid113dfb,public
X-Google-Thread: ff0ac,5c969b162d5156fa
X-Google-Attributes: gidff0ac,public
X-Google-ArrivalTime: 2003-09-18 13:30:21 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!msc1.onvoy!onvoy.com!news.mmm.com!not-for-mail
From: Programmer Dude <Chris@Sonnack.com>
Newsgroups: be.comp.programming,comp.databases.ms-access,comp.os.ms-windows.programmer.win32,comp.programming
Subject: Re: HOWTO: use RowSource property of a field in MS Access table
Date: Thu, 18 Sep 2003 15:18:15 -0500
Organization: Wrenn Productions, Ltd
Lines: 48
Message-ID: <3F6A1307.C9F1F28D@Sonnack.com>
References: <1063654572.733837@ufacom.ru> <3F661B99.F254B2B5@mmm.com> <1063692744.877932@ufacom.ru> <3F6775C4.B68635B6@Sonnack.com> <1063827758.127724@ufacom.ru>
NNTP-Posting-Host: 169.10.179.242
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en