Re: list of fields and their names in a form, under Access 2000 (* I am lost! *)
From: Troy (Troy_at_fmsinc.com)
Date: 02/18/05
- Next message: Harold DeMooy: "Re: Using SQL statement to append a recordset to a table"
- Previous message: pokdbz: "Re: Update Checkmark"
- In reply to: Douglas J. Steele: "Re: list of fields and their names in a form, under Access 2000 (* I am lost! *)"
- Next in thread: Gilles Maisonneuve via AccessMonster.com: "Re: list of fields and their names in a form, under Access 2000 (* I am lost! *)"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Feb 2005 12:35:00 -0500
HA! Sorry, I was really unclear in my last post. I did not mean to say that
the *reference* must exist, but rather that DAO must exist on the
machine.....After re-reading it, that certainly isn't what I wrote down,
though....Silly scattered thoughts move so quickly...
-- Troy Troy Munford Development Operations Manager FMS, Inc. www.fmsinc.com "Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message news:OtIG7OUFFHA.464@TK2MSFTNGP09.phx.gbl... Actually, Access can run fine without the DAO reference, Troy. After all, neither Access 2000 nor Access 2002 have that reference by default, and they both run. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Troy" <Troy@fmsinc.com> wrote in message news:eghdZhRFFHA.2828@TK2MSFTNGP09.phx.gbl... > In order to use the DAO recordset Type, you need to set a reference to DAO > (Microsoft Data Access Objects 3.6). > > Code Window/IDE -->Tools -->References -->Scroll down until you find > "Microsoft Data Access Objects 3.6" -->Check the check box for this > reference > > It *must* exist (yes, even in French <g>) for Access to even run at all! > > -- > Troy > > Troy Munford > Development Operations Manager > FMS, Inc. > www.fmsinc.com > > > "Gilles Maisonneuve via AccessMonster.com" <forum@AccessMonster.com> wrote > in message news:4be67bc606974856ad698366db6d9b4c@AccessMonster.com... > Hello, > > I a a newbie under Access. I've read the topics already dealing with field > list in a form and how to handle but I have a problem: all the code > samples > given in this site and also with the help file provided with my (French) > version of Access 2000 do not work. > > More precisely: > 1?) DAO.Recordset does not exist so no code can be coded with this type of > data > 2?) using Recordset type to declare variable always bring me to "type > incompatible" (I translate from French "Incompatibilit? de type") when I > try the following code: > > Dim rst As Recordset > Set rst = Me.RecordsetClone <<< here is the erroneous statement seen > under the debugger > > I can do it with the following syntax: > > Dim rs As Object > Set rst = Me.RecordsetClone > > but then, when I use the code: > > Dim fld As Field > For Each fld In rs > Debug.Print fld.Name > Next fld > > I get the error: > "Unauthorised operation for this type of object" (error 3251). Once again > I > translate from French ("Op?ration non autoris?e pour ce type d'object") to > English so forgive me if its the wrong message text. > > > I'va been looking fo the whole day on internet and in the Access help > files > and I get a clue while all those samples are not functionning (I've also > trie to use the syntax I found in the help and on the web: "For Each fld > In > Me.Recordset" and of course I get the same error message). > > *** Please can somebody help me, I am completely lost! *** > > Gilles (my address: gilles AT maisonneuve.dabsol.co.uk) > > -- > Message posted via http://www.accessmonster.com > >
- Next message: Harold DeMooy: "Re: Using SQL statement to append a recordset to a table"
- Previous message: pokdbz: "Re: Update Checkmark"
- In reply to: Douglas J. Steele: "Re: list of fields and their names in a form, under Access 2000 (* I am lost! *)"
- Next in thread: Gilles Maisonneuve via AccessMonster.com: "Re: list of fields and their names in a form, under Access 2000 (* I am lost! *)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|