Article View: be.comp.programming
Article #4060Re: HOWTO: use RowSource property of a field in MS Access table
From: Programmer Dude
Date: Tue, 16 Sep 2003 20:42
Date: Tue, 16 Sep 2003 20:42
40 lines
2867 bytes
2867 bytes
Vladimir wrote: > But why can't I get access to Properties collection of Field object? You can. Row Source is *NOT* a property of a Field. It's a property of the ComboBox on the Form in Access. > Also when I execute query SELECT <field> FROM <table> in Access > Query Designer I get string. When I execute through ADO I get > number. 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? Take a look under the hood of that query and maybe look at the definition of the table in question. Access can link to lookup tables--did you design the database or did someone else? > The problem is that I don't know if Row Source string array will > never be changed. If I place this array in my app I will then need > to make changes to source code and re-compile the program. That's why it's non-ideal. You could use an external text file to initialize your program. That would save re-compiling. > The "Ideal" way is also unacceptable because the users of my app > will need to add this new table to the database every time it is > replaced by new one (which is without this table). I mean > replacing whole MDB files. I take it you are not supplying the MDB files (else you could just add it yourself). -- |_ CJSonnack <Chris@Sonnack.com> _____________| How's my programming? | |_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL | |_____________________________________________|_______________________|
Technical Details
Message-ID:
<3F6775C4.B68635B6@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-mailReferences:
<1063654572.733837@ufacom.ru> <3F661B99.F254B2B5@mmm.com> <1063692744.877932@ufacom.ru>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113dfb,5c969b162d5156fa X-Google-Attributes: gid113dfb,public X-Google-Thread: fcea4,5c969b162d5156fa X-Google-Attributes: gidfcea4,public X-Google-Thread: 108717,5c969b162d5156fa X-Google-Attributes: gid108717,public X-Google-Thread: ff0ac,5c969b162d5156fa X-Google-Attributes: gidff0ac,public X-Google-ArrivalTime: 2003-09-16 14:00:26 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: Tue, 16 Sep 2003 15:42:44 -0500 Organization: Wrenn Productions, Ltd Lines: 40 Message-ID: <3F6775C4.B68635B6@Sonnack.com> References: <1063654572.733837@ufacom.ru> <3F661B99.F254B2B5@mmm.com> <1063692744.877932@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