From william.thompson1 at att.net Wed Dec 1 01:09:47 2004 From: william.thompson1 at att.net (William Thompson) Date: Tue, 30 Nov 2004 23:09:47 -0800 Subject: [AccessD] View with dependancy used in Acc3k.adp combo box?? In-Reply-To: <027f01c4d763$9fca35a0$6501a8c0@HAL9002> Message-ID: <200412010709.iB179gL20634@databaseadvisors.com> Hi All - Does anyone know if there would be any problems stemming from using this 'View with dependancy' (for lack of a better word) as the rowsource for a combo box? - Acc3k .adp, SQL Server 2k: -- The table that holds 'parameter' is loaded from start form -- A sproc updates the table with selection before next form loads CREATE TABLE [dbo].[FYALL_YEAR_SELECTED] ( [UserName] [nvarchar] (50) NOT NULL , [User_Year_Selected] [int] NULL ) GO -- The 'dependant' view draws recordset into combo on form 2 conditioned -- upon year previously chosen in start form. ALTER VIEW vw_lkp_FYPYGroup As SELECT Group FROM FYALLGroupRef WHERE FiscalYearInteger = ((SELECT User_Year_Selected FROM FYALL_YEAR_SELECTED WHERE UserName = Suser_sname())-1) GO -- The domain table for the view CREATE TABLE [dbo].[FYALLGroupRef] ( [Group] [nvarchar] (120) NOT NULL , [FiscalYearInteger] [int] NULL ) GO Any thoughts, suggestions appreciated. Bill Thompson Washington State From andy at minstersystems.co.uk Wed Dec 1 01:28:47 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 1 Dec 2004 07:28:47 -0000 Subject: [AccessD] Which Report Event to use. and related code XP In-Reply-To: <006c01c4d736$cf3465e0$6501a8c0@delllaptop> Message-ID: <002d01c4d777$6717a760$b274d0d5@minster33c3r25> Joe You need to click into the section that that control is in. Then you'll see the OnFormat event for tht section (eg Detail) -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 30 November 2004 23:46 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Which Report Event to use. and related code XP > > > I want to set some code > > If is null [txtnotes] then > > [txtnotes].visible = false > > > > I am thinking that should go into the on format event, but I > do not see that event. This text box is part of a sub report > so it needs to check this for each row in the report. > > > > Thanks > > > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jmhla at earthlink.net Wed Dec 1 01:46:44 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 23:46:44 -0800 Subject: [AccessD] code help please Message-ID: <000201c4d779$e7c0e690$6501a8c0@delllaptop> It is almost Midnight here What is wrong with the following code please? Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As Integer) if isnull me.txtPONptes then < This is null line is the trouble maker Me.lblPONotes.Visible = False Me.txtPONptes.Visible = False End If End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From rbgajewski at adelphia.net Wed Dec 1 01:52:59 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Wed, 1 Dec 2004 02:52:59 -0500 Subject: [AccessD] code help please In-Reply-To: <000201c4d779$e7c0e690$6501a8c0@delllaptop> Message-ID: Joe What exactly is the problem (ie: what is happening that shouldn't, or what is not happening that should)? Are you getting an error message? Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Wednesday, December 01, 2004 02:47 To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] code help please It is almost Midnight here What is wrong with the following code please? Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As Integer) if isnull me.txtPONptes then < This is null line is the trouble maker Me.lblPONotes.Visible = False Me.txtPONptes.Visible = False End If End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 1 01:57:46 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 23:57:46 -0800 Subject: [AccessD] code help please In-Reply-To: Message-ID: <000301c4d77b$74c2a8c0$6501a8c0@delllaptop> It is red I am not sure why JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Tuesday, November 30, 2004 11:53 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Joe What exactly is the problem (ie: what is happening that shouldn't, or what is not happening that should)? Are you getting an error message? Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Wednesday, December 01, 2004 02:47 To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] code help please It is almost Midnight here What is wrong with the following code please? Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As Integer) if isnull me.txtPONptes then < This is null line is the trouble maker Me.lblPONotes.Visible = False Me.txtPONptes.Visible = False End If End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Dec 1 02:17:15 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 1 Dec 2004 09:17:15 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A2@stekelbes.ithelps.local> I managed to relate most labels to a textcontrol, but have still two labels that are not related. It is already an improvement because the (whole) form only flickers when moving over these 2 labels... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, December 01, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form flickers like hell in A2K3 Marty: Thanks for the heads up on this. Just came across this today at two customer sites where they put my A2K app on an A2K3 machine and the flash was really annoying. I tried a couple of things but no soap. I'll walk them through this tomorrow . Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, November 30, 2004 10:26 AM Subject: Re: [AccessD] Form flickers like hell in A2K3 > You ain't gonna believe this but if running WinXP change your theme by > right-clicking your Windows XP desktop, choosing Properties, and setting > the Theme to "Windows Classic". > If you cannot solve it by deselecting Use Windows Themed Controls on > Forms under Tools | Options | Forms/Reports in Access 2003 > The flickering or flutter goes away on my machine using Win XP Theme > Classic Access 2003 and by deselecting above option > The flickering is triggered by unattached labels on the page of a tab > control. The workaround is to convert these labels to text boxes. > For non english speakers I found this by searching on Screen Flutter > rather than Flicker. > > For full explanation. and code to correct all forms if above tools option > method doesn't work > http://members.iinet.net.au/~allenbrowne/ser-46.html > > Erwin Craps - IT Helps wrote: > >>Can anyone tell me why the form in this database flickers like hell when >>moving over the green zones or labels. >>This only in A2K3, same database same form, does not flicker in A2K2.... >> http://www.ithelps.be/temp/test.mdb >> greetz >> >> >>Erwin Craps >> >>Zaakvoerder >>www.ithelps.be/jonathan >> >> >>This E-mail is confidential, may be legally privileged, and is for the >>intended recipient only. Access, disclosure, copying, distribution, or >>reliance on any of it by anyone else is prohibited and may be a criminal >>offence. Please delete if obtained in error and E-mail confirmation to >>the sender. >> >>IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >> >>www.ithelps.be * www.boxoffice.be >> * www.stadleuven.be >> >>IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >> >>IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >>Info at ithelps.be >>Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >>Staff at boxoffice.be >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Dec 1 02:16:20 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 1 Dec 2004 08:16:20 -0000 Subject: [AccessD] code help please In-Reply-To: <000201c4d779$e7c0e690$6501a8c0@delllaptop> Message-ID: <003001c4d77e$0a319810$b274d0d5@minster33c3r25> Joe if isnull(me.txtPONptes) then IsNull is a function. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > Subject: [AccessD] code help please > > > It is almost Midnight here > What is wrong with the following code please? > > Private Sub ReportFooter_Format(Cancel As Integer, > FormatCount As Integer) > if isnull me.txtPONptes then < This is null line is the > trouble maker > Me.lblPONotes.Visible = False > Me.txtPONptes.Visible = False > End If > > End Sub > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Erwin.Craps at ithelps.be Wed Dec 1 05:11:37 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 1 Dec 2004 12:11:37 +0100 Subject: [AccessD] code help please Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A3@stekelbes.ithelps.local> I would prefer if isnull(me.txtPONptes) = true then I know there use to be a bug in one of the access versions with this "if x then" without the "= y" part. They where wrongly interpreted due to this missing operator. Some Access books advice to write the full comparison for better readability and bla bla bla... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 01, 2004 9:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code help please Joe if isnull(me.txtPONptes) then IsNull is a function. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > Subject: [AccessD] code help please > > > It is almost Midnight here > What is wrong with the following code please? > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > Integer) > if isnull me.txtPONptes then < This is null line is the > trouble maker > Me.lblPONotes.Visible = False > Me.txtPONptes.Visible = False > End If > > End Sub > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Dec 1 05:33:26 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 1 Dec 2004 06:33:26 -0500 Subject: [AccessD] Which Report Event to use. and related code XP Message-ID: If the [txtnotes] are null, then would they not be not visible by definition of null? Set the field to allow it to shrink and the section of the report containing the field to allow shrinkage and then no code is needed (?) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, November 30, 2004 6:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Which Report Event to use. and related code XP I want to set some code If is null [txtnotes] then [txtnotes].visible = false I am thinking that should go into the on format event, but I do not see that event. This text box is part of a sub report so it needs to check this for each row in the report. Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Wed Dec 1 06:25:35 2004 From: lists at theopg.com (MarkH) Date: Wed, 1 Dec 2004 12:25:35 -0000 Subject: [AccessD] Access can't save the database properties In-Reply-To: <2A261FF9D5EBCA46940C11688CE872EE03AAF4@goexchange2.pghcorning.com> Message-ID: <000f01c4d7a0$dd18b660$040d6bd5@netboxxp> Hello Guru Types :@) Not sure whats going on here at all... I have a tablet PC running Windows XP Tablet Edition and Access XP. My copy of Office etc. comes from a MS Empower subscription. Not sure if any of this is relevant but what I have found is that several of my working databases etc. have their author properties set to "norriew" and the company to "Microsoft Corp". If I try and change the properties I get a message saying Access can't save them :@( I have tried opening exclusively, without executing any code, creating a new mdb (properties reflect my own but I still can't edit them) and I have checked the security and workgroup etc. These databases were all created by me ??? Any ideas much appreciated... Cheers Mark PS - I also tried opening them from another machine across my network and got the same problem... And I searched Google and the archives :@) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From andy at minstersystems.co.uk Wed Dec 1 06:42:40 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 1 Dec 2004 13:42:40 +0100 Subject: [AccessD] code help please Message-ID: <20041201134237.A434B2571FE@smtp.nildram.co.uk> Better safe than sorry Erwin, I know, but if you're thinking of the problem of Access not shutting down correctly then according to MS this was a very specific problem: "You have code behind a subform control that references a Boolean control such as a check box on the main form, and are using an If..Then statement to implicitly test for a value of True, as shown in the following example: If Me.Parent![CheckBox] Then" See http://support.microsoft.com/default.aspx?scid=kb;en-us;190074 -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Date: 01/12/04 11:14 > > I would prefer > > if isnull(me.txtPONptes) = true then > > I know there use to be a bug in one of the access versions with this "if > x then" without the "= y" part. > They where wrongly interpreted due to this missing operator. > Some Access books advice to write the full comparison for better > readability and bla bla bla... > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 9:16 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] code help please > > Joe > > if isnull(me.txtPONptes) then > > > IsNull is a function. > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > > Sent: 01 December 2004 07:47 > > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > > Subject: [AccessD] code help please > > > > > > It is almost Midnight here > > What is wrong with the following code please? > > > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > Integer) > > if isnull me.txtPONptes then < This is null line is the > > trouble maker > > Me.lblPONotes.Visible = False > > Me.txtPONptes.Visible = False > > End If > > > > End Sub > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From bchacc at san.rr.com Wed Dec 1 08:27:15 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 1 Dec 2004 06:27:15 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: <46B976F2B698FF46A4FE7636509B22DF1B55A2@stekelbes.ithelps.local> Message-ID: <003b01c4d7b1$db931810$6501a8c0@HAL9002> Erwin: I had a couple of other problems running an A2K app in A2K3. I had the contents of a couple of text boxes on a report quit working. The Control Source for one of them is "=[Report].rptRASubRpt!txttotaldailyrate" (picks up the value from a sub-report) and it works fine in A2K but shows up blank in A2K3. So I moved it to the format event but that's a kludge. Is this a known bug? I also had a couple of dates (mm/dd/yyyy) get cut off on the right as if the display in A2K3 is bigger than A2K. Another A2K3 bug? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 01, 2004 12:17 AM Subject: RE: [AccessD] Form flickers like hell in A2K3 >I managed to relate most labels to a textcontrol, but have still two > labels that are not related. > It is already an improvement because the (whole) form only flickers when > moving over these 2 labels... > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Wednesday, December 01, 2004 6:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > Marty: > > Thanks for the heads up on this. Just came across this today at two > customer sites where they put my A2K app on an A2K3 machine and the > flash was really annoying. I tried a couple of things but no soap. > I'll walk them through this tomorrow . > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, November 30, 2004 10:26 AM > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > >> You ain't gonna believe this but if running WinXP change your theme > by >> right-clicking your Windows XP desktop, choosing Properties, and > setting >> the Theme to "Windows Classic". >> If you cannot solve it by deselecting Use Windows Themed Controls on >> Forms under Tools | Options | Forms/Reports in Access 2003 >> The flickering or flutter goes away on my machine using Win XP Theme >> Classic Access 2003 and by deselecting above option >> The flickering is triggered by unattached labels on the page of a tab >> control. The workaround is to convert these labels to text boxes. >> For non english speakers I found this by searching on Screen Flutter >> rather than Flicker. >> >> For full explanation. and code to correct all forms if above tools > option >> method doesn't work >> http://members.iinet.net.au/~allenbrowne/ser-46.html >> >> Erwin Craps - IT Helps wrote: >> >>>Can anyone tell me why the form in this database flickers like hell > when >>>moving over the green zones or labels. >>>This only in A2K3, same database same form, does not flicker in > A2K2.... >>> http://www.ithelps.be/temp/test.mdb >>> greetz >>> >>> >>>Erwin Craps >>> >>>Zaakvoerder >>>www.ithelps.be/jonathan >>> >>> >>>This E-mail is confidential, may be legally privileged, and is for the >>>intended recipient only. Access, disclosure, copying, distribution, or >>>reliance on any of it by anyone else is prohibited and may be a > criminal >>>offence. Please delete if obtained in error and E-mail confirmation to >>>the sender. >>> >>>IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >>> >>>www.ithelps.be * www.boxoffice.be >>> * www.stadleuven.be >>> >>>IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >>> >>>IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >>>Info at ithelps.be >>>Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >>>Staff at boxoffice.be >>> >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From EdTesiny at oasas.state.ny.us Wed Dec 1 08:26:58 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 1 Dec 2004 09:26:58 -0500 Subject: [AccessD] Convert text to number X posted Message-ID: Have you tried the CLng() function? Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Tuesday, November 30, 2004 9:09 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Convert text to number X posted Finally found big trap in inherited database. Foreign Key Vendor ID is set as text. I need to convert it to long number. If I change data type to number Access threatens to delete all fields. I cannot find anything in help on Cnum. All thoughts apreciated JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From EdTesiny at oasas.state.ny.us Wed Dec 1 08:31:21 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 1 Dec 2004 09:31:21 -0500 Subject: Recall: [AccessD] Convert text to number X posted Message-ID: Tesiny, Ed would like to recall the message, "[AccessD] Convert text to number X posted". From ssharkins at bellsouth.net Wed Dec 1 08:34:06 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 1 Dec 2004 09:34:06 -0500 Subject: [AccessD] RecordsAffected Property Message-ID: <20041201143429.TPVP2421.imf24aec.mail.bellsouth.net@SUSANONE> Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. From cyx5 at cdc.gov Wed Dec 1 08:48:43 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 1 Dec 2004 09:48:43 -0500 Subject: [AccessD] RecordsAffected Property Message-ID: For a Recordset-returning Command: Set recordset = command.Execute( RecordsAffected, Parameters, Options ) For a non-recordset-returning Command: command.Execute RecordsAffected, Parameters, Options -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, December 01, 2004 9:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] RecordsAffected Property Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Wed Dec 1 08:41:39 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 1 Dec 2004 09:41:39 -0500 Subject: [AccessD] RecordsAffected Property Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2866@TTNEXCHCL2.hshhp.com> I belive that's a returned value of Connection.Execute HTH Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Wednesday, December 01, 2004 9:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] RecordsAffected Property Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Gustav at cactus.dk Wed Dec 1 09:04:15 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Dec 2004 16:04:15 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: Hi Rocky Shouldn't that be: =[SubReportControlName].Report!txttotaldailyrate /gustav >>> bchacc at san.rr.com 01-12-2004 15:27:15 >>> Erwin: I had a couple of other problems running an A2K app in A2K3. I had the contents of a couple of text boxes on a report quit working. The Control Source for one of them is "=[Report].rptRASubRpt!txttotaldailyrate" (picks up the value from a sub-report) and it works fine in A2K but shows up blank in A2K3. So I moved it to the format event but that's a kludge. Is this a known bug? I also had a couple of dates (mm/dd/yyyy) get cut off on the right as if the display in A2K3 is bigger than A2K. Another A2K3 bug? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From ssharkins at bellsouth.net Wed Dec 1 09:04:14 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 1 Dec 2004 10:04:14 -0500 Subject: [AccessD] RecordsAffected Property In-Reply-To: Message-ID: <20041201150500.KGAF2443.imf18aec.mail.bellsouth.net@SUSANONE> Karen -- I'm looking for a similar property for the Command object, but thanks! I was trying to avoid the Connection object. Susan H. For a Recordset-returning Command: Set recordset = command.Execute( RecordsAffected, Parameters, Options ) For a non-recordset-returning Command: command.Execute RecordsAffected, Parameters, Options From bchacc at san.rr.com Wed Dec 1 09:23:27 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 1 Dec 2004 07:23:27 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: Message-ID: <004901c4d7b9$b4fa2330$6501a8c0@HAL9002> Gustav: That syntax works in A2K. Do you think it need to be changed for A2K3? Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Wednesday, December 01, 2004 7:04 AM Subject: Re: [AccessD] Form flickers like hell in A2K3 > Hi Rocky > > Shouldn't that be: > > =[SubReportControlName].Report!txttotaldailyrate > > /gustav > > >>>> bchacc at san.rr.com 01-12-2004 15:27:15 >>> > Erwin: > > I had a couple of other problems running an A2K app in A2K3. > > I had the contents of a couple of text boxes on a report quit working. > The > Control Source for one of them is > "=[Report].rptRASubRpt!txttotaldailyrate" > (picks up the value from a sub-report) and it works fine in A2K but > shows up > blank in A2K3. So I moved it to the format event but that's a kludge. > Is > this a known bug? > > I also had a couple of dates (mm/dd/yyyy) get cut off on the right as > if the > display in A2K3 is bigger than A2K. Another A2K3 bug? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Wed Dec 1 09:36:20 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Dec 2004 16:36:20 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: Hi Rocky I don't know, I run Access XP/2002. Your syntax just looked strange to me. /gustav >>> bchacc at san.rr.com 01-12-2004 16:23:27 >>> Gustav: That syntax works in A2K. Do you think it need to be changed for A2K3? Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Wednesday, December 01, 2004 7:04 AM Subject: Re: [AccessD] Form flickers like hell in A2K3 > Hi Rocky > > Shouldn't that be: > > =[SubReportControlName].Report!txttotaldailyrate > > /gustav > > >>>> bchacc at san.rr.com 01-12-2004 15:27:15 >>> > Erwin: > > I had a couple of other problems running an A2K app in A2K3. > > I had the contents of a couple of text boxes on a report quit working. > The > Control Source for one of them is > "=[Report].rptRASubRpt!txttotaldailyrate" > (picks up the value from a sub-report) and it works fine in A2K but > shows up > blank in A2K3. So I moved it to the format event but that's a kludge. > Is > this a known bug? > > I also had a couple of dates (mm/dd/yyyy) get cut off on the right as > if the > display in A2K3 is bigger than A2K. Another A2K3 bug? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 From handyman at actcom.co.il Wed Dec 1 12:43:29 2004 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 01 Dec 2004 20:43:29 +0200 Subject: [AccessD] sending ALT Shift Characters Message-ID: <5.1.0.14.2.20041201203721.02654ad8@pop5.actcom.net.il> Hi All, When I enter data in a certain textbox, I need to do a "Left Alt + Shift" in order to change the language from English to another language. Is there a way I can send this via code when entering the textbox, and then again when exiting the textbox. I would imagine I need to do it in the On Enter event, but how do I send the "Left Alt + Shift"? Thanks Gershon Markowitz mailto:Handyman at actcom.co.il From bchacc at san.rr.com Wed Dec 1 13:50:34 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 1 Dec 2004 11:50:34 -0800 Subject: [AccessD] sending ALT Shift Characters References: <5.1.0.14.2.20041201203721.02654ad8@pop5.actcom.net.il> Message-ID: <02a401c4d7df$05d042b0$6501a8c0@HAL9002> Gershon: Check out SendKeys. You can put it in the got focus and lost focus events of the text box. But SendKeys is not real popular. Can't remember what the problem is with it but the advice on the list has been to avoid it when possible. You'll have to get the ASCII value for "Left Alt + Shift" probably by setting Key Preview to true and displaying the value in the KeyPress or KeyDown event. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: To: Sent: Wednesday, December 01, 2004 10:43 AM Subject: [AccessD] sending ALT Shift Characters > Hi All, > > When I enter data in a certain textbox, I need to do a "Left Alt + Shift" > in order to change the language from English to another language. Is > there a way I can send this via code when entering the textbox, and then > again when exiting the textbox. I would imagine I need to do it in the On > Enter event, but how do I send the "Left Alt + Shift"? > > Thanks > > Gershon Markowitz > mailto:Handyman at actcom.co.il > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Wed Dec 1 14:31:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 1 Dec 2004 12:31:54 -0800 Subject: [AccessD] Scale the arrow on the combo box Message-ID: <002b01c4d7e4$ceb17c30$6501a8c0@delllaptop> Is there a way to scale the down arrow on the combo box to match when increase the font size? JOE HECHT LOS ANGELES CA jmhla at earthlink.net From alan.lawhon at us.army.mil Wed Dec 1 16:42:12 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Wed, 1 Dec 2004 16:42:12 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB013@redstone819.ad.redstone.army.mil> ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon - (Very Green) Web Programmer From jmoss111 at bellsouth.net Wed Dec 1 17:35:32 2004 From: jmoss111 at bellsouth.net (James Moss) Date: Wed, 1 Dec 2004 17:35:32 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NETStandard 2003 ..." Message-ID: <20041201233511.EENX2443.imf18aec.mail.bellsouth.net@jmoss3> Alan, MS was giving away copies of vs.net if you watched a few webcasts. Also, vb.net standard came bundled with my copy of VSOT. You can find some bargains on eBay occasionally like Visual Studio.net Enterprise Architect for < $100. You might want to look at Web Matrix from Microsoft which is free, at www.asp.net . Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 4:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NETStandard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon - (Very Green) Web Programmer -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Wed Dec 1 20:08:21 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 01 Dec 2004 21:08:21 -0500 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB013@redstone819.ad.redstone.army.mil> Message-ID: <41AE32C5.1397.A30F80@localhost> On 1 Dec 2004 at 16:42, Lawhon, Alan C Contractor/Mor wrote: > ... or just try to learn what I can from [VB.Net] books alone? > I would be grateful if some of the folks on this list who have > actually done some web programming (especially with VB.Net) could > offer advice and opinions with respect to the "Microsoft Visual Basic > .NET Standard 2003" [web] development tool. Basically, I'm wondering > if the "Standard" edition has enough capability to serve as a useful > "learning tool" - or is it so "crippled" that I would be better off > simply reading .NET books? If you are just interested in just a learning tool at the moment, let me suggest a .Net IDE that is free, #develop (http://sharpdevelop.net/OpenSource/SD/Default.aspx) #develop (short for SharpDevelop) is a free IDE for C# and VB.NET projects on Microsoft's .NET platform. It is open-source (GPL), and you can download both sourcecode and executables from this site. It is what I am using right now to play with VB.Net in my spare time. I didn't want to drop the $ on VS.NET or even VB.NET if I wasn't sure if I'd do any developing in it or not, so this is a great alternate for me. The only downside is that it can be a bit slow to compile, but that may be because of the laptop I'm using it on (PIII-500 256 MB RAM) Just a thought. -- Bryan Carbonnell - carbonnb at sympatico.ca I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. From jmhla at earthlink.net Wed Dec 1 20:23:12 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 1 Dec 2004 18:23:12 -0800 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." In-Reply-To: <41AE32C5.1397.A30F80@localhost> Message-ID: <000b01c4d815$df4d3b70$6501a8c0@delllaptop> Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, December 01, 2004 6:08 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." On 1 Dec 2004 at 16:42, Lawhon, Alan C Contractor/Mor wrote: > ... or just try to learn what I can from [VB.Net] books alone? > I would be grateful if some of the folks on this list who have > actually done some web programming (especially with VB.Net) could > offer advice and opinions with respect to the "Microsoft Visual Basic > .NET Standard 2003" [web] development tool. Basically, I'm wondering > if the "Standard" edition has enough capability to serve as a useful > "learning tool" - or is it so "crippled" that I would be better off > simply reading .NET books? If you are just interested in just a learning tool at the moment, let me suggest a .Net IDE that is free, #develop (http://sharpdevelop.net/OpenSource/SD/Default.aspx) #develop (short for SharpDevelop) is a free IDE for C# and VB.NET projects on Microsoft's .NET platform. It is open-source (GPL), and you can download both sourcecode and executables from this site. It is what I am using right now to play with VB.Net in my spare time. I didn't want to drop the $ on VS.NET or even VB.NET if I wasn't sure if I'd do any developing in it or not, so this is a great alternate for me. The only downside is that it can be a bit slow to compile, but that may be because of the laptop I'm using it on (PIII-500 256 MB RAM) Just a thought. -- Bryan Carbonnell - carbonnb at sympatico.ca I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Dec 1 20:38:05 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 01 Dec 2004 18:38:05 -0800 Subject: [AccessD] RE: [Accessed] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." In-Reply-To: <000b01c4d815$df4d3b70$6501a8c0@delllaptop> Message-ID: Hi Joe: I think .Net will nicely morph into the VB and Accessed lists. Everything appears to be going that way, application wise. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Wednesday, December 01, 2004 6:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, December 01, 2004 6:08 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." On 1 Dec 2004 at 16:42, Lawhon, Alan C Contractor/Mor wrote: > ... or just try to learn what I can from [VB.Net] books alone? > I would be grateful if some of the folks on this list who have > actually done some web programming (especially with VB.Net) could > offer advice and opinions with respect to the "Microsoft Visual Basic > .NET Standard 2003" [web] development tool. Basically, I'm wondering > if the "Standard" edition has enough capability to serve as a useful > "learning tool" - or is it so "crippled" that I would be better off > simply reading .NET books? If you are just interested in just a learning tool at the moment, let me suggest a .Net IDE that is free, #develop (http://sharpdevelop.net/OpenSource/SD/Default.aspx) #develop (short for SharpDevelop) is a free IDE for C# and VB.NET projects on Microsoft's .NET platform. It is open-source (GPL), and you can download both sourcecode and executables from this site. It is what I am using right now to play with VB.Net in my spare time. I didn't want to drop the $ on VS.NET or even VB.NET if I wasn't sure if I'd do any developing in it or not, so this is a great alternate for me. The only downside is that it can be a bit slow to compile, but that may be because of the laptop I'm using it on (PIII-500 256 MB RAM) Just a thought. -- Bryan Carbonnell - carbonnb at sympatico.ca I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Dec 2 01:00:19 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 01 Dec 2004 23:00:19 -0800 Subject: [AccessD] sending ALT Shift Characters References: <5.1.0.14.2.20041201203721.02654ad8@pop5.actcom.net.il> Message-ID: <41AEBD83.2050002@shaw.ca> Here is some code hooked out of a long program 'See also this article It might be of some use 'Unicode and Keyboards on Windows 'http://www.microsoft.com/globaldev/handson/dev/Unicode-KbdsonWindows.pdf 'http://www.microsoft.com/globaldev/nlsweb/default.asp?submitted=40d 'Part of the file Win32api.txt: ' ' VK_L VK_R - left and right Alt, Ctrl and Shift virtual keys. ' Used only as parameters to GetAsyncKeyState() and GetKeyState(). ' No other API or message will distinguish left and right keys in this 'way. ' / Public Const VK_LSHIFT = &HA0 Public Const VK_RSHIFT = &HA1 Public Const VK_LCONTROL = &HA2 Public Const VK_RCONTROL = &HA3 Public Const VK_LMENU = &HA4 Public Const VK_RMENU = &HA5 'What a weird name for the Alt-key. but it does use the menu Private Const VK_LWIN = &H5B 'Left window button Private Const VK_RETURN = &HD 'ENTER key Private Const VK_SHIFT = &H10 'SHIFT key Private Const VK_CONTROL = &H11 'CTRL key Private Const VK_MENU = &H12 'ALT key Private Const VK_PAUSE = &H13 'PAUSE key Private Const VK_CAPITAL = &H14 'CAPS LOCK key Private Const VK_SNAPSHOT = &H2C 'Print Screen Private Const VK_APPS = &H5D 'Applications key on a Microsoft Natural Keyboard 'from http://support.microsoft.com/view/dev.asp?kb=242971 Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Const KEYEVENTF_KEYUP = &H2 Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As Long) Sub ShiftToLanguage() 'use the following code inside form or focused window or textbox 'to simulate the Alt RightShift = key combination: ' then press and then release the AltRight RightShift key 'order of pressing important keybd_event VK_RSHIFT, 0, 0, 0 keybd_event VK_RMENU, 0, 0, 0 keybd_event VK_RMENU, 0, KEYEVENTF_KEYUP, 0 'weird things happen if you don't up the shiftkey looks like capslock 'has been left on keybd_event VK_RSHIFT, 0, KEYEVENTF_KEYUP, 0 'line below needed for Access97 ' keybd_event VK_RMENU, 0, KEYEVENTF_KEYUP, 0 Debug.Print "Right Shift" DoEvents End Sub Sub ShiftToLanguageBack() 'use the following code inside form or focused window or textbox 'to simulate the Alt RightShift = key combination: ' then press and then release the AltRight RightShift key 'order of pressing important keybd_event VK_LSHIFT, 0, 0, 0 keybd_event VK_LMENU, 0, 0, 0 keybd_event VK_LMENU, 0, KEYEVENTF_KEYUP, 0 'weird things happen if you don't up the shiftkey looks like capslock 'has been left on keybd_event VK_LSHIFT, 0, KEYEVENTF_KEYUP, 0 'line below needed for Access97 ' keybd_event VK_LMENU, 0, KEYEVENTF_KEYUP, 0 Debug.Print "Left Shift" DoEvents End Sub handyman at actcom.co.il wrote: > Hi All, > > When I enter data in a certain textbox, I need to do a "Left Alt + > Shift" in order to change the language from English to another > language. Is there a way I can send this via code when entering the > textbox, and then again when exiting the textbox. I would imagine I > need to do it in the On Enter event, but how do I send the "Left Alt + > Shift"? > > Thanks > > Gershon Markowitz > mailto:Handyman at actcom.co.il > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Dec 2 01:12:10 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 01 Dec 2004 23:12:10 -0800 Subject: [AccessD] sending ALT Shift Characters References: <5.1.0.14.2.20041201203721.02654ad8@pop5.actcom.net.il> Message-ID: <41AEC04A.60706@shaw.ca> Here is another approach, this assumes you are running with a floating multi language keyboard bar set from the control panel This works well if using multiple language keyboards, maynot work well with 97 can't remember. Switch on textbox's On Focus Public Declare Function LoadKeyboardLayout Lib "user32" Alias _ "LoadKeyboardLayoutA" (ByVal pwszKLID As String, ByVal Flags As Long) As Long Private Declare Function ActivateKeyboardLayout Lib "user32" (ByVal HKL As Long, _ ByVal Flags As Long) As Long Private Declare Function GetKeyboardLayoutName Lib "user32" Alias _ "GetKeyboardLayoutNameA" (ByVal pwszKLID As String) As Long Const KL_NAMELENGTH = 9 Sub testarabic() Dim lRet As Long lRet = LoadKeyboardLayout("00000409", 1) ' For English Debug.Print lRet lRet = ActivateKeyboardLayout("00000409", 0) Debug.Print lRet lRet = LoadKeyboardLayout("00000401", 1) ' For Arabic Debug.Print lRet lRet = ActivateKeyboardLayout("00000401", 0) Debug.Print lRet lRet = LoadKeyboardLayout("00011009", 1) ' For FrenchCanadian Debug.Print lRet lRet = ActivateKeyboardLayout("00011009", 0) Debug.Print lRet End Sub Sub resetenglish() Dim lRet As Long lRet = LoadKeyboardLayout("00000409", 1) ' For US English Debug.Print lRet lRet = ActivateKeyboardLayout("00000409", 0) Debug.Print lRet End Sub Sub whatiskeybd() Dim kbname(100) As Byte Dim strkbname As String GetKeyboardLayoutName (kbname) ' //place keyboard layout name in r strkbname = kbname Debug.Print strkbname Dim I As Long For I = 0 To 20 Debug.Print kbname(I) Next I 'Loadkeyboardlayout('00000409', KLF_ACTIVATE);//Activate US keyboard layout '//Do your stuff here 'Loadkeyboardlayout(r, KLF_ACTIVATE);// Dim strName As String 'Create a buffer strName = String(KL_NAMELENGTH, 0) 'Get the keyboard layout name GetKeyboardLayoutName strName Debug.Print "Keyboard layout name: " + strName End Sub handyman at actcom.co.il wrote: > Hi All, > > When I enter data in a certain textbox, I need to do a "Left Alt + > Shift" in order to change the language from English to another > language. Is there a way I can send this via code when entering the > textbox, and then again when exiting the textbox. I would imagine I > need to do it in the On Enter event, but how do I send the "Left Alt + > Shift"? > > Thanks > > Gershon Markowitz > mailto:Handyman at actcom.co.il > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Thu Dec 2 03:07:37 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Dec 2004 10:07:37 +0100 Subject: [AccessD] Powerpoint VBA/add-in/PPS problem Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A8@stekelbes.ithelps.local> I created a powerpoint presentation that gets his information from an Access database. every time a specific slide is shown (every 30 seconds). This serves for a movie theatre to show the actual movies, time and theatre number it will be played in, on large TFT panels that are in the income hall of the movietheatre. I managed to solve the autoexec thing I posted before, but I still have an other issue. This is what I have today. A shortcut on the desktop that runs the presentation. An powerpoint add-in makes sure code is executed that is in the presentation to initialize the database connection and run the presentation (two monitor mode). While the presentations runs I have two icons on my taskbar, one for the show and one for powerpoint. The problem is that the computer needs to be used sometimes during the show, but when the powerpoint gets activate by clicking on the taskbar icon or using ALT+TAB the show freezes. Then you need to maximize powerpoint where a toolbar has apaered with a "Continue presentation" button. I need to click this button to continue. This causes the show to stop and his is not always noticed. So I was looking for some VBA parameter that it would ignore clicks etc but it does not seam to exist... My other option is to save the ppt as a pps, this solves my click problem (and I only have one icon on the taskbar), It can only be stopped by pressing ESC, which is ecellent for me. BUT, I cant use the PPS because my add-in does not get executed and therefor will not run the code inside the add-in nor in the presentation, this is when opening the presentation with the shortcut. If I first open powerpoint and than the pps file, it does get executed. So probably the add-in does not get loaded when using a shortcut. So I'm stuck... Why is this so damme hard in Powerpoint!!! I really want to use powerpoint as the VBA base and not run the powerpoint from within access vba. So, one of the posible solutions would be a way to run the add-in or even a specific macro from the command line shortcut... But I'm open for other suggestions. The VBA documentation in Powerpoint is really lousy also on the MSDN werbsite the help is identical to the help inside Powerpoint... thx Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Erwin.Craps at ithelps.be Thu Dec 2 03:21:04 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Dec 2004 10:21:04 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A9@stekelbes.ithelps.local> The report thing I can't tell, but I believe I had some simular stuff with sub forms. But I rarely use this type of reference, I prefer dooing this from VBA, for better error control. I recall an issue with daughter/parent ID with sub forms/reports. In some access version they changed the way it can be used. In the older days you could use a fieldname that was present in the recordset but not necesarily present as a control on the subform/report. Now it needs to be present as a control on the form and the control needs to have (by preference) the same name as the field. Sometimes when dooing a copy paste the control name is not the same as the fieldname, causing a link problem between forms. For what concerns the layout, this can be due to a classical font problem between computers. If you set a specific font on this control, and you move your app to another computer, which has not the font, your font will be subsituted with another one that can have a different length... This can cause your issue, if you notice this on a different computer. If on same computer, this is probably an Access version thing... Greetz Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, December 01, 2004 3:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form flickers like hell in A2K3 Erwin: I had a couple of other problems running an A2K app in A2K3. I had the contents of a couple of text boxes on a report quit working. The Control Source for one of them is "=[Report].rptRASubRpt!txttotaldailyrate" (picks up the value from a sub-report) and it works fine in A2K but shows up blank in A2K3. So I moved it to the format event but that's a kludge. Is this a known bug? I also had a couple of dates (mm/dd/yyyy) get cut off on the right as if the display in A2K3 is bigger than A2K. Another A2K3 bug? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 01, 2004 12:17 AM Subject: RE: [AccessD] Form flickers like hell in A2K3 >I managed to relate most labels to a textcontrol, but have still two > labels that are not related. > It is already an improvement because the (whole) form only flickers when > moving over these 2 labels... > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Wednesday, December 01, 2004 6:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > Marty: > > Thanks for the heads up on this. Just came across this today at two > customer sites where they put my A2K app on an A2K3 machine and the > flash was really annoying. I tried a couple of things but no soap. > I'll walk them through this tomorrow . > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, November 30, 2004 10:26 AM > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > >> You ain't gonna believe this but if running WinXP change your theme > by >> right-clicking your Windows XP desktop, choosing Properties, and > setting >> the Theme to "Windows Classic". >> If you cannot solve it by deselecting Use Windows Themed Controls on >> Forms under Tools | Options | Forms/Reports in Access 2003 >> The flickering or flutter goes away on my machine using Win XP Theme >> Classic Access 2003 and by deselecting above option >> The flickering is triggered by unattached labels on the page of a tab >> control. The workaround is to convert these labels to text boxes. >> For non english speakers I found this by searching on Screen Flutter >> rather than Flicker. >> >> For full explanation. and code to correct all forms if above tools > option >> method doesn't work >> http://members.iinet.net.au/~allenbrowne/ser-46.html >> >> Erwin Craps - IT Helps wrote: >> >>>Can anyone tell me why the form in this database flickers like hell > when >>>moving over the green zones or labels. >>>This only in A2K3, same database same form, does not flicker in > A2K2.... >>> http://www.ithelps.be/temp/test.mdb >>> greetz >>> >>> >>>Erwin Craps >>> >>>Zaakvoerder >>>www.ithelps.be/jonathan >>> >>> >>>This E-mail is confidential, may be legally privileged, and is for the >>>intended recipient only. Access, disclosure, copying, distribution, or >>>reliance on any of it by anyone else is prohibited and may be a > criminal >>>offence. Please delete if obtained in error and E-mail confirmation to >>>the sender. >>> >>>IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >>> >>>www.ithelps.be * www.boxoffice.be >>> * www.stadleuven.be >>> >>>IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >>> >>>IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >>>Info at ithelps.be >>>Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >>>Staff at boxoffice.be >>> >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 2 03:31:03 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Dec 2004 10:31:03 +0100 Subject: [AccessD] code help please Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55AA@stekelbes.ithelps.local> Yes that was it... I know that was a specific problem, but it is this problem that made me decide to always use the full comparison in a if statement. It was also advice in some access guru books for better readability. I find myself pretty obsessed with writing easy to read and understandable code. My variable name are, for instance, pretty long so it clear for what it stands. It will make my code longer but not slower... Programming with long names does not really slow down develepmont thanks to copy/paste technology, but also a more frequent use of enums, types and classes. I dont know why, but I only (really) discovered the use of classes about a year or two ago and I'm pretty fond on using them. I more work to create them but I find the use afterwards far better and the code is much more structured. But I'm way of topic here... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 01, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Better safe than sorry Erwin, I know, but if you're thinking of the problem of Access not shutting down correctly then according to MS this was a very specific problem: "You have code behind a subform control that references a Boolean control such as a check box on the main form, and are using an If..Then statement to implicitly test for a value of True, as shown in the following example: If Me.Parent![CheckBox] Then" See http://support.microsoft.com/default.aspx?scid=kb;en-us;190074 -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Date: 01/12/04 11:14 > > I would prefer > > if isnull(me.txtPONptes) = true then > > I know there use to be a bug in one of the access versions with this "if > x then" without the "= y" part. > They where wrongly interpreted due to this missing operator. > Some Access books advice to write the full comparison for better > readability and bla bla bla... > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 9:16 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] code help please > > Joe > > if isnull(me.txtPONptes) then > > > IsNull is a function. > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe > Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers > discussion and problem solving'; 'ACCESS-L' > > Subject: [AccessD] code help please > > > It is almost > Midnight here > What is wrong with the following code please? > > > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > Integer) > > if isnull me.txtPONptes then < This is null line is the > > trouble maker > > Me.lblPONotes.Visible = False > > Me.txtPONptes.Visible = False > > End If > > > > End Sub > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Dec 2 03:25:13 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 2 Dec 2004 10:25:13 +0100 Subject: [AccessD] code help please Message-ID: <20041202102511.52E7925F243@smtp.nildram.co.uk> Agree with every word Erwin. I only wish I could curb my tendency to lapse into using a short name when I'm coding something quickly. It's such a temptation. I always mean to do a find and replace once I've finished and change all ocurrences to a longer, more meaningful name, but I often forget. Well, good to get that off my chest. I feel quite shriven. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Date: 02/12/04 09:33 > > Yes that was it... > > I know that was a specific problem, but it is this problem that made me > decide to always use the full comparison in a if statement. It was also > advice in some access guru books for better readability. > I find myself pretty obsessed with writing easy to read and > understandable code. > > My variable name are, for instance, pretty long so it clear for what it > stands. > It will make my code longer but not slower... > Programming with long names does not really slow down develepmont thanks > to copy/paste technology, but also a more frequent use of enums, types > and classes. > > I dont know why, but I only (really) discovered the use of classes about > a year or two ago and I'm pretty fond on using them. I more work to > create them but I find the use afterwards far better and the code is > much more structured. > > But I'm way of topic here... > Erwin > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 1:43 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > Better safe than sorry Erwin, I know, but if you're thinking of the > problem of Access not shutting down correctly then according to MS this > was a very specific problem: > > "You have code behind a subform control that references a Boolean > control such as a check box on the main form, and are using an If..Then > statement to implicitly test for a value of True, as shown in the > following example: > > If Me.Parent![CheckBox] Then" > > See http://support.microsoft.com/default.aspx?scid=kb;en-us;190074 > > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] code help please > Date: 01/12/04 11:14 > > > > > I would prefer > > > > if isnull(me.txtPONptes) = true then > > > > I know there use to be a bug in one of the access versions with this > &quot;if > > x then&quot; without the &quot;= y&quot; part. > > They where wrongly interpreted due to this missing operator. > > Some Access books advice to write the full comparison for better > > readability and bla bla bla... > > > > > > > > > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > > Sent: Wednesday, December 01, 2004 9:16 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] code help please > > > > Joe > > > > if isnull(me.txtPONptes) then > > > > > > IsNull is a function. > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe > > Hecht &gt; Sent: 01 December 2004 07:47 &gt; To: 'Access Developers > > discussion and problem solving'; 'ACCESS-L' > > &gt; Subject: [AccessD] code help please &gt; &gt; &gt; It is almost > > Midnight here &gt; What is wrong with the following code please? > > &gt; > > &gt; Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > > &gt; Integer) > > &gt; if isnull me.txtPONptes then &lt; This is null line is the > > &gt; trouble maker > > &gt; Me.lblPONotes.Visible = False > > &gt; Me.txtPONptes.Visible = False > > &gt; End If > > &gt; > > &gt; End Sub > > &gt; > > &gt; JOE HECHT > > &gt; LOS ANGELES CA > > &gt; jmhla at earthlink.net > > &gt; > > &gt; > > &gt; > > &gt; -- > > &gt; _______________________________________________ > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com &gt; &gt; > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From carbonnb at sympatico.ca Thu Dec 2 04:27:25 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 02 Dec 2004 05:27:25 -0500 Subject: [AccessD] RE: [Accessed] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." In-Reply-To: References: <000b01c4d815$df4d3b70$6501a8c0@delllaptop> Message-ID: <41AEA7BD.24162.179C64@localhost> > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht > Sent: Wednesday, December 01, 2004 6:23 PM To: 'Access Developers > Should we make a vb.net list On 1 Dec 2004 at 18:38, Jim Lawrence (AccessD) wrote: > I think .Net will nicely morph into the VB and Accessed lists. > Everything appears to be going that way, application wise. I concur. -- Bryan Carbonnell - carbonnb at sympatico.ca Every time I close the door on reality it comes in through the windows. From andy at minstersystems.co.uk Thu Dec 2 06:44:15 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 2 Dec 2004 13:44:15 +0100 Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) Message-ID: <20041202134412.2877C253B49@smtp.nildram.co.uk> Posted this question on dba-Tech. If anyone here has any input I'd be grateful, but would be best if you could reply direct to me or to dba-Tech, so as not to annoy other Access-only members. ---------------------------------------- Dear all Your advice is sought. If a customer was thinking of upgrading from NT4 Server would the consensus of opinion be to go to W2003 Server or W2000 Server? I ask because he has a mix of W98 and W2K clients so is familiar with W2K and is therefore drawn to W2K Server (still just about available to buy). But it will no doubt have a shorter life than W2003 Server. So that is one point in W2003 Server's favour, but what are the other pros and cons? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From pedro at plex.nl Thu Dec 2 15:02:23 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 02 Dec 2004 15:02:23 (MET) Subject: [AccessD] several query's in one! Message-ID: <200412021402.iB2E2OPg021517@mailhostC.plex.net> Hello Group, is it possible to make one sql query for the result below. Without using several query's to come to what is need. It would save me a lot of time. i have CoorX CoorY fieldA fieldB fieldC fieldD fieldE 206210 345120 5 1 2 2 206733 345999 4 2 1 3 207999 345170 1 2 1 207452 345734 1 2 2 i need CoorX CoorY total 206500 345500 20 207500 345500 9 Thanks Pedro Janssen From Jim.Hale at FleetPride.com Thu Dec 2 09:41:29 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 2 Dec 2004 09:41:29 -0600 Subject: [AccessD] Lost records Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337276@corp-es01.fleetpride.com> I just confirmed a strange case where Access appears to have dropped records. Accounting created a one table mdb with invoice data to give to the auditors. It was copied onto a cd and given to them. The auditors couldn't tie out the numbers. Using an unmatched query I compared the table on the original with the table on the CD and found 700+ records on the original database that didn't make it to the cd. The original table had no primary key and no indexes as it was a straight port from an AS400 accounting system. I have compacted and repaired to no avail. Normally if a mdb is corrupted when copying you can tell but this copy functions perfectly. Anybody have any idea what happened? Has anyone seen anything similar? We are using Access 2000. Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Jim.Hale at FleetPride.com Thu Dec 2 09:48:57 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 2 Dec 2004 09:48:57 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337277@corp-es01.fleetpride.com> I think it may be a bit early to do that. I (for one) am very interested in Alan's adventures because I suspect many of us will face some variation of this new challenge soon. My 2 cents. Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 01, 2004 8:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From bchacc at san.rr.com Thu Dec 2 09:51:09 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 2 Dec 2004 07:51:09 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: <46B976F2B698FF46A4FE7636509B22DF1B55A9@stekelbes.ithelps.local> Message-ID: <00ac01c4d886$be2d8cd0$6501a8c0@HAL9002> I'll bet that reference thing inthe report is what's going on. So I moved the contents of that unbound control from the Control Source into VBA code behind the Format event. As for the formatting, I'm using Arial which is about as plain vanilla as it gets. But it's Access - so who knows what's going on? I'll have to take a close look next time I'm at this client site. In the meantime, I just widened the two fields that had the problem and let it go at that. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 02, 2004 1:21 AM Subject: RE: [AccessD] Form flickers like hell in A2K3 > The report thing I can't tell, but I believe I had some simular stuff > with sub forms. > But I rarely use this type of reference, I prefer dooing this from VBA, > for better error control. > I recall an issue with daughter/parent ID with sub forms/reports. > In some access version they changed the way it can be used. > > In the older days you could use a fieldname that was present in the > recordset but not necesarily present as a control on the subform/report. > > Now it needs to be present as a control on the form and the control > needs to have (by preference) the same name as the field. > Sometimes when dooing a copy paste the control name is not the same as > the fieldname, causing a link problem between forms. > > For what concerns the layout, this can be due to a classical font > problem between computers. > If you set a specific font on this control, and you move your app to > another computer, which has not the font, your font will be subsituted > with another one that can have a different length... > This can cause your issue, if you notice this on a different computer. > If on same computer, this is probably an Access version thing... > > Greetz > > Erwin > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Wednesday, December 01, 2004 3:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > Erwin: > > I had a couple of other problems running an A2K app in A2K3. > > I had the contents of a couple of text boxes on a report quit working. > The Control Source for one of them is > "=[Report].rptRASubRpt!txttotaldailyrate" > (picks up the value from a sub-report) and it works fine in A2K but > shows up blank in A2K3. So I moved it to the format event but that's a > kludge. Is this a known bug? > > I also had a couple of dates (mm/dd/yyyy) get cut off on the right as if > the display in A2K3 is bigger than A2K. Another A2K3 bug? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, December 01, 2004 12:17 AM > Subject: RE: [AccessD] Form flickers like hell in A2K3 > > >>I managed to relate most labels to a textcontrol, but have still two >> labels that are not related. >> It is already an improvement because the (whole) form only flickers > when >> moving over these 2 labels... >> >> Erwin >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin >> - Beach Access Software >> Sent: Wednesday, December 01, 2004 6:07 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Form flickers like hell in A2K3 >> >> Marty: >> >> Thanks for the heads up on this. Just came across this today at two >> customer sites where they put my A2K app on an A2K3 machine and the >> flash was really annoying. I tried a couple of things but no soap. >> I'll walk them through this tomorrow . >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "MartyConnelly" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, November 30, 2004 10:26 AM >> Subject: Re: [AccessD] Form flickers like hell in A2K3 >> >> >>> You ain't gonna believe this but if running WinXP change your theme >> by >>> right-clicking your Windows XP desktop, choosing Properties, and >> setting >>> the Theme to "Windows Classic". >>> If you cannot solve it by deselecting Use Windows Themed Controls on >>> Forms under Tools | Options | Forms/Reports in Access 2003 >>> The flickering or flutter goes away on my machine using Win XP Theme >>> Classic Access 2003 and by deselecting above option >>> The flickering is triggered by unattached labels on the page of a tab >>> control. The workaround is to convert these labels to text boxes. >>> For non english speakers I found this by searching on Screen Flutter >>> rather than Flicker. >>> >>> For full explanation. and code to correct all forms if above tools >> option >>> method doesn't work >>> http://members.iinet.net.au/~allenbrowne/ser-46.html >>> >>> Erwin Craps - IT Helps wrote: >>> >>>>Can anyone tell me why the form in this database flickers like hell >> when >>>>moving over the green zones or labels. >>>>This only in A2K3, same database same form, does not flicker in >> A2K2.... >>>> http://www.ithelps.be/temp/test.mdb >>>> greetz >>>> >>>> >>>>Erwin Craps >>>> >>>>Zaakvoerder >>>>www.ithelps.be/jonathan >>>> >>>> >>>>This E-mail is confidential, may be legally privileged, and is for > the >>>>intended recipient only. Access, disclosure, copying, distribution, > or >>>>reliance on any of it by anyone else is prohibited and may be a >> criminal >>>>offence. Please delete if obtained in error and E-mail confirmation > to >>>>the sender. >>>> >>>>IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >>>> >>>>www.ithelps.be * www.boxoffice.be >>>> * www.stadleuven.be >>>> >>>>IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >>>> >>>>IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >>>>Info at ithelps.be >>>>Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >>>>Staff at boxoffice.be >>>> >>>> >>> >>> -- >>> Marty Connelly >>> Victoria, B.C. >>> Canada >>> >>> >>> >>> -- >>> _______________________________________________ >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at isharp.co.uk Thu Dec 2 10:08:19 2004 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Thu, 2 Dec 2004 16:08:19 -0000 Subject: [AccessD] Importing Multiple Text Files From Specified Folder Message-ID: <668C5C868606C641857281147C468936552634@primary.orridge.co.uk> To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. From bheid at appdevgrp.com Thu Dec 2 10:14:14 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 2 Dec 2004 11:14:14 -0500 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A3F380@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBABD@ADGSERVER> While the free not-for-resale version of VB 2003 is no longer available: "Due to overwhelming demand, supplies of the complimentary Not For Resale copies of Visual Basic .NET 2003 Standard Edition* are now exhausted. Tens of thousands were claimed by developers. If you wish to explore Visual Basic .NET on a trial basis, visit the Visual Studio .NET 2003 Hosted Experience." You can still watch all of the little movies from here: http://msdn.microsoft.com/vbasic/atthemovies/ You can download all of the movies for offline viewing here: http://msdn.microsoft.com/vbasic/atthemovies/download/ Bobby From accessd at shaw.ca Thu Dec 2 10:13:23 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 02 Dec 2004 08:13:23 -0800 Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) In-Reply-To: <20041202134412.2877C253B49@smtp.nildram.co.uk> Message-ID: Hi Andy: I have installed a XP Development Server version, in my office and found it dead-easy. I would recommend at least one GB of RAM as it is a little hungry and formatting the drive first (No updating). The server hardware on which the OS was installed is an eclectic mix and has had no issues, accepted a strange group of software...from Oracle, SQL 2000, Dreamweaver suite, Adobe suite, VB Studio and MS Office, internally runs a domain, IIS and termserver and still is running without hiccups (very stable). Either OS would be just fine but XP 2003 Server is newer and should theoretically have a longer supported life. My thoughts. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, December 02, 2004 4:44 AM To: Dba Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) Posted this question on dba-Tech. If anyone here has any input I'd be grateful, but would be best if you could reply direct to me or to dba-Tech, so as not to annoy other Access-only members. ---------------------------------------- Dear all Your advice is sought. If a customer was thinking of upgrading from NT4 Server would the consensus of opinion be to go to W2003 Server or W2000 Server? I ask because he has a mix of W98 and W2K clients so is familiar with W2K and is therefore drawn to W2K Server (still just about available to buy). But it will no doubt have a shorter life than W2003 Server. So that is one point in W2003 Server's favour, but what are the other pros and cons? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Dec 2 10:28:20 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 2 Dec 2004 10:28:20 -0600 Subject: [AccessD] Importing Multiple Text Files From Specified Folder Message-ID: <100F91B31300334B89EC531C9DCB08653F6111@tccexch01.tappeconstruction.net> Dim strFile As String strFile = Dir$("c:\mypathname\*.txt") Do until strFile = "" 'File import code goes here, using strFile filename strFile = Dir$ Loop -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland (ISHARP) Sent: Thursday, December 02, 2004 10:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Importing Multiple Text Files From Specified Folder To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From paul.hartland at isharp.co.uk Thu Dec 2 10:41:53 2004 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Thu, 2 Dec 2004 16:41:53 -0000 Subject: [AccessD] Importing Multiple Text Files From Specified Folder In-Reply-To: <668C5C868606C641857281147C46893657BA4E@primary.orridge.co.uk> Message-ID: <668C5C868606C641857281147C468936552638@primary.orridge.co.uk> Thanks, I hit the send button and the obvious answer came to me...Hate it when I do that. Paul -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: 02 December 2004 16:28 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Importing Multiple Text Files From Specified Folder Dim strFile As String strFile = Dir$("c:\mypathname\*.txt") Do until strFile = "" 'File import code goes here, using strFile filename strFile = Dir$ Loop -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland (ISHARP) Sent: Thursday, December 02, 2004 10:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Importing Multiple Text Files From Specified Folder To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at afsweb.com Thu Dec 2 10:40:15 2004 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 2 Dec 2004 08:40:15 -0800 Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) In-Reply-To: <20041202134412.2877C253B49@smtp.nildram.co.uk> Message-ID: Andy, W2003 Server includes IIS6 and the .NET framework as part of the installation. It is also "more paranoid" than any of the previous NT versions. IIS5 which is included in W2K server is more forgiving which might compromise security. W2003 server also has a better implementation of Terminal Server. I use both versions. On my notebook PC which is my main development machine running on an IBM TP 900Mhz with 512Mb RAM I have W2K server. On my home PC which is my "play machine" I am running W2003 server on a P4 2.5Ghz with 512Mb RAM. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, December 02, 2004 4:44 AM To: Dba Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) Posted this question on dba-Tech. If anyone here has any input I'd be grateful, but would be best if you could reply direct to me or to dba-Tech, so as not to annoy other Access-only members. ---------------------------------------- Dear all Your advice is sought. If a customer was thinking of upgrading from NT4 Server would the consensus of opinion be to go to W2003 Server or W2000 Server? I ask because he has a mix of W98 and W2K clients so is familiar with W2K and is therefore drawn to W2K Server (still just about available to buy). But it will no doubt have a shorter life than W2003 Server. So that is one point in W2003 Server's favour, but what are the other pros and cons? -- Andy Lacey http://www.minstersystems.co.uk ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cfoust at infostatsystems.com Thu Dec 2 10:42:54 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 08:42:54 -0800 Subject: [AccessD] RE: [Accessed] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Message-ID: I work in VB.Net. I don't agree that it fits well in either VB or Access lists because it is quite different from either. On the other hand, I doubt that there are enough of us developing professionally in VB.Net right now to supplant either list, so why not just let it find its own place. If enough .Net questions get posted in either list, we'll know where it belongs. One thing to think about, though, is that database development in VB.Net is just as different from non-database application development as it was in VB6. The database questions will probably always belong in a database list. Charlotte Foust -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Thursday, December 02, 2004 2:27 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] RE: [Accessed] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht > Sent: Wednesday, December 01, 2004 6:23 PM To: 'Access Developers > Should we make a vb.net list On 1 Dec 2004 at 18:38, Jim Lawrence (AccessD) wrote: > I think .Net will nicely morph into the VB and Accessed lists. > Everything appears to be going that way, application wise. I concur. -- Bryan Carbonnell - carbonnb at sympatico.ca Every time I close the door on reality it comes in through the windows. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Thu Dec 2 10:46:15 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 2 Dec 2004 11:46:15 -0500 Subject: [AccessD] Importing Multiple Text Files From Specified Folder Message-ID: Paul, Do you have access to the 97 ADH? I believe there were several class modules that could handle your situation. I use: Line class from Chapter 5 Lines class from Chapter 5 TextFile class from Chapter 5 Mark -----Original Message----- From: Paul Hartland (ISHARP) [mailto:paul.hartland at isharp.co.uk] Sent: Thursday, December 02, 2004 11:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Importing Multiple Text Files From Specified Folder To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at afsweb.com Thu Dec 2 10:49:37 2004 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 2 Dec 2004 08:49:37 -0800 Subject: [AccessD] Importing Multiple Text Files From Specified Folder In-Reply-To: <668C5C868606C641857281147C468936552634@primary.orridge.co.uk> Message-ID: Here's sample code from one of my apps... Usage: ImportLogs "DirectoryName" where DirectoryName is any constant that represents the ImportSpec/Folder combination. ImportSpec needs to be defined and build before using. If you don't need to use different import specifications then you can do away with the strDir parameter and Select statement processing. '------------------------------------- Function ImportLogs(strDir As String) as String Dim searchFile As String Dim resultString As String Dim fileCounter As Integer Dim messageString As String Dim strTextFileName As String Dim myFileName As String Dim strTableName As String Dim strLocation As String Dim strImportSpec As String Dim strSearchFileSpec As String strTableName = "PutYourTableNameHere" Select Case strDir Case "DIR1" strLocation = "C:\DATA\FOLDER1\" & strSearchFileSpec strImportSpec = "ImportSpec1" Case "DIR2" strLocation = "C:\DATA\FOLDER2\" & strSearchFileSpec strImportSpec = "ImportSpec2" Case "DIR3" strLocation = "C:\DATA\FOLDER3\" & strSearchFileSpec strImportSpec = "ImportSpec3" End Select fileCounter = 0 searchFile = Dir(strLocation) If searchFile <> "" Then fileCounter = 1 resultString = searchFile & vbCrLf End If Do While searchFile <> "" searchFile = Dir If searchFile <> "" Then fileCounter = fileCounter + 1 resultString = resultString & searchFile & vbCrLf strTextFileName = strLocation & searchFile DoCmd.TransferText acImportDelim, strImportSpec, strTableName, strTextFileName End If Loop If fileCounter = 0 Then messageString = "No files found" Else messageString = "Found " & fileCounter & " file/s named:" _ & vbCrLf & resultString End If ImportLogs = messageString End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Paul Hartland (ISHARP) Sent: Thursday, December 02, 2004 8:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Importing Multiple Text Files From Specified Folder To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cfoust at infostatsystems.com Thu Dec 2 10:53:07 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 08:53:07 -0800 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NETStandard 2003 ..." Message-ID: Buy it. You'll discover that all the training (I used the AppDev CBT training) and books you use are no substitute for getting your hands dirty by trying to build something. One recommendation is that you find books on *database* programming with VB.Net and get very, very comfortable with classes if you aren't already. Plan the project assemblies out ahead of time and build a vertical slice of the application, top to bottom to test out the plan and establish your conventions. That also gives you a chance to test out the third party controls you'll want to use. We're using Infragistics controls and ActiveReports and have been very happy with both. Oh, and turn on Option Strict. That makes it even more challenging to follow the examples in books where it isn't turned on. I learned a lot having to translate the book code to handle Option Strict on. PS/ Get MZ-Tools 4.0, which is an indispensable part of my toolkit in .Net. There's even an enterprise version that allows you to share naming conventions and templates with your team. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Wednesday, December 01, 2004 2:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NETStandard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon - (Very Green) Web Programmer -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 2 11:00:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 09:00:39 -0800 Subject: [AccessD] RecordsAffected Property Message-ID: RecordsAffected is an optional argument of the Execute function. So Cnn.Execute(strSQL,lngRecsAffected) will give you what you want. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, December 01, 2004 6:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] RecordsAffected Property Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 2 11:04:34 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 09:04:34 -0800 Subject: [AccessD] code help please Message-ID: IsNull returns a boolean value, so it isn't necessary to make an explicit comparison to avoid Access hangups. I generally write long code for readability too (in spite of my boss, who complains that I complicate it), but since IsNull seems pretty self-evident to me, I wouldn't bother in this case. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, December 01, 2004 3:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please I would prefer if isnull(me.txtPONptes) = true then I know there use to be a bug in one of the access versions with this "if x then" without the "= y" part. They where wrongly interpreted due to this missing operator. Some Access books advice to write the full comparison for better readability and bla bla bla... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 01, 2004 9:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code help please Joe if isnull(me.txtPONptes) then IsNull is a function. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > Subject: [AccessD] code help please > > > It is almost Midnight here > What is wrong with the following code please? > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > Integer) > if isnull me.txtPONptes then < This is null line is the > trouble maker > Me.lblPONotes.Visible = False > Me.txtPONptes.Visible = False > End If > > End Sub > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 2 11:33:50 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 2 Dec 2004 12:33:50 -0500 Subject: [AccessD] code help please Message-ID: Which still begs the question, if it is null, it will not be visible. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 02, 2004 12:05 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please IsNull returns a boolean value, so it isn't necessary to make an explicit comparison to avoid Access hangups. I generally write long code for readability too (in spite of my boss, who complains that I complicate it), but since IsNull seems pretty self-evident to me, I wouldn't bother in this case. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, December 01, 2004 3:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please I would prefer if isnull(me.txtPONptes) = true then I know there use to be a bug in one of the access versions with this "if x then" without the "= y" part. They where wrongly interpreted due to this missing operator. Some Access books advice to write the full comparison for better readability and bla bla bla... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 01, 2004 9:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code help please Joe if isnull(me.txtPONptes) then IsNull is a function. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > Subject: [AccessD] code help please > > > It is almost Midnight here > What is wrong with the following code please? > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > Integer) > if isnull me.txtPONptes then < This is null line is the > trouble maker > Me.lblPONotes.Visible = False > Me.txtPONptes.Visible = False > End If > > End Sub > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Dec 2 11:55:09 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 2 Dec 2004 17:55:09 -0000 Subject: [AccessD] code help please In-Reply-To: Message-ID: <000001c4d898$10487870$b274d0d5@minster33c3r25> Karen I'm thinking that its label will be though, so while making the text box invisible may be a bit unnecessary the IsNull test itself is still valid. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Nicholson, Karen > Sent: 02 December 2004 17:34 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > Which still begs the question, if it is null, it will not be visible. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Thursday, December 02, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > IsNull returns a boolean value, so it isn't necessary to make > an explicit comparison to avoid Access hangups. I generally > write long code for readability too (in spite of my boss, who > complains that I complicate it), but since IsNull seems > pretty self-evident to me, I wouldn't bother in this case. > > Charlotte Foust > > > -----Original Message----- > From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] > Sent: Wednesday, December 01, 2004 3:12 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > I would prefer > > if isnull(me.txtPONptes) = true then > > I know there use to be a bug in one of the access versions > with this "if x then" without the "= y" part. They where > wrongly interpreted due to this missing operator. Some Access > books advice to write the full comparison for better > readability and bla bla bla... > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 9:16 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] code help please > > Joe > > if isnull(me.txtPONptes) then > > > IsNull is a function. > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > > Sent: 01 December 2004 07:47 > > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > > Subject: [AccessD] code help please > > > > > > It is almost Midnight here > > What is wrong with the following code please? > > > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > Integer) > > if isnull me.txtPONptes then < This is null line is the > > trouble maker > > Me.lblPONotes.Visible = False > > Me.txtPONptes.Visible = False > > End If > > > > End Sub > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Gustav at cactus.dk Thu Dec 2 12:18:44 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Dec 2004 19:18:44 +0100 Subject: [AccessD] several query's in one! Message-ID: Hi Pedro Guess you could do something like this: SELECT (CoorX \ 1000) * 1000 + 500 AS CoorX0, (CoorY \ 1000) * 1000 + 500 AS CoorY0, IIF(FieldA Is Null, 0, FieldA) + ... + IIF(FieldE Is Null, 0, FieldE) AS Total FROM tblCoor GROUP BY (CoorX \ 1000) * 1000 + 500, (CoorY \ 1000) * 1000 + 500; /gustav >>> pedro at plex.nl 02-12-2004 15:02:23 >>> Hello Group, is it possible to make one sql query for the result below. Without using several query's to come to what is need. It would save me a lot of time. i have CoorX CoorY fieldA fieldB fieldC fieldD fieldE 206210 345120 5 1 2 2 206733 345999 4 2 1 3 207999 345170 1 2 1 207452 345734 1 2 2 i need CoorX CoorY total 206500 345500 20 207500 345500 9 From Gustav at cactus.dk Thu Dec 2 12:20:49 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Dec 2004 19:20:49 +0100 Subject: [AccessD] several query's in one! Message-ID: Hi Pedro Guess you could do something like this: SELECT (CoorX \ 1000) * 1000 + 500 AS CoorX0, (CoorY \ 1000) * 1000 + 500 AS CoorY0, SUM(IIF(FieldA Is Null, 0, FieldA) + ... + IIF(FieldE Is Null, 0, FieldE)) AS Total FROM tblCoor GROUP BY (CoorX \ 1000) * 1000 + 500, (CoorY \ 1000) * 1000 + 500; /gustav >>> pedro at plex.nl 02-12-2004 15:02:23 >>> Hello Group, is it possible to make one sql query for the result below. Without using several query's to come to what is need. It would save me a lot of time. i have CoorX CoorY fieldA fieldB fieldC fieldD fieldE 206210 345120 5 1 2 2 206733 345999 4 2 1 3 207999 345170 1 2 1 207452 345734 1 2 2 i need CoorX CoorY total 206500 345500 20 207500 345500 9 From pjewett at bayplace.com Thu Dec 2 12:26:15 2004 From: pjewett at bayplace.com (Phil Jewett) Date: Thu, 2 Dec 2004 10:26:15 -0800 Subject: [AccessD] Monthly Calendar Message-ID: Tis the season for printing family calendars, and here is a little A2K mdb I made that prints monthly calendars with pictures at the top. Just enter your image filenames in the table and run the one report (no fancy controls). http://www.bayplace.com/access/monthlycalendar.zip Phil Jewett Phil Jewett Consulting http://www.bayplace.com/pjcons email: info at bayplace.com (619) 318-4899 From markamatte at hotmail.com Thu Dec 2 12:36:06 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 02 Dec 2004 18:36:06 +0000 Subject: [AccessD] several query's in one! In-Reply-To: <200412021402.iB2E2OPg021517@mailhostC.plex.net> Message-ID: Pedro, This doesn't take into account NULLS and assuming you were just taking the first 3 digits of CoorX and Y...then adding 500 to the end...you could use something like: ********************** SELECT Left([CoorX],3) & "500" AS X, Left([CoorY],3) & "500" AS Y, Sum([fieldA]+[fieldB]+[fieldC]+[fieldD]+[fieldE]) AS Total FROM tblData GROUP BY Left([CoorX],3) & "500", Left([CoorY],3) & "500" WITH OWNERACCESS OPTION; ****************** ...and you output would look like: X Y Total 206500 345500 20 207500 345500 9 Hope this helps... Thanks, Mark A. Matte >From: pedro at plex.nl >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] several query's in one! >Date: Thu, 02 Dec 2004 15:02:23 (MET) > >Hello Group, > >is it possible to make one sql query for the result below. Without using >several query's to come to what is need. It would save me a lot of time. > >i have > >CoorX CoorY fieldA fieldB fieldC fieldD >fieldE >206210 345120 5 1 2 >2 >206733 345999 4 2 1 >3 >207999 345170 1 2 1 >207452 345734 1 2 2 > > > >i need > >CoorX CoorY total >206500 345500 20 >207500 345500 9 > > >Thanks > >Pedro Janssen > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 2 12:37:18 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 2 Dec 2004 13:37:18 -0500 Subject: [AccessD] code help please Message-ID: I think what was happening is that the field is on the report and it is not set to grow and shrink, or the section it is in is not growing or shrinking. Or, I think the question would have been regarding the label control and not the text field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, December 02, 2004 12:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code help please Karen I'm thinking that its label will be though, so while making the text box invisible may be a bit unnecessary the IsNull test itself is still valid. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Nicholson, Karen > Sent: 02 December 2004 17:34 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > Which still begs the question, if it is null, it will not be visible. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Thursday, December 02, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > IsNull returns a boolean value, so it isn't necessary to make > an explicit comparison to avoid Access hangups. I generally > write long code for readability too (in spite of my boss, who > complains that I complicate it), but since IsNull seems > pretty self-evident to me, I wouldn't bother in this case. > > Charlotte Foust > > > -----Original Message----- > From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] > Sent: Wednesday, December 01, 2004 3:12 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > I would prefer > > if isnull(me.txtPONptes) = true then > > I know there use to be a bug in one of the access versions > with this "if x then" without the "= y" part. They where > wrongly interpreted due to this missing operator. Some Access > books advice to write the full comparison for better > readability and bla bla bla... > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 9:16 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] code help please > > Joe > > if isnull(me.txtPONptes) then > > > IsNull is a function. > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > > Sent: 01 December 2004 07:47 > > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > > Subject: [AccessD] code help please > > > > > > It is almost Midnight here > > What is wrong with the following code please? > > > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > Integer) > > if isnull me.txtPONptes then < This is null line is the > > trouble maker > > Me.lblPONotes.Visible = False > > Me.txtPONptes.Visible = False > > End If > > > > End Sub > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Dec 2 13:55:48 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 2 Dec 2004 14:55:48 -0500 Subject: [AccessD] RecordsAffected Property In-Reply-To: Message-ID: <20041202195557.HXYI2382.imf23aec.mail.bellsouth.net@SUSANONE> OK, that worked with the Command object. Thanks Charlotte. Susan H. RecordsAffected is an optional argument of the Execute function. So Cnn.Execute(strSQL,lngRecsAffected) will give you what you want. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, December 01, 2004 6:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] RecordsAffected Property Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Thu Dec 2 13:59:33 2004 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 2 Dec 2004 15:59:33 -0400 Subject: [AccessD] How do I programatically see if a field exists in table. If not add it? In-Reply-To: References: Message-ID: <3bf43ee9041202115974503750@mail.gmail.com> Hi I have a an A97 db and am trying to write some code to check to see if field exists. If it does not I need it added. Right now I am lost. Please help. CODE THUS FAR: If tdfChiz.Fields("dump").Name = "dump" Then AppendDeleteField tdfChiz, "DELETE", "dump" AppendDeleteField tdfChiz, "APPEND", "dump", dbBoolean Else AppendDeleteField tdfChiz, "APPEND", "dump", dbBoolean End If If the field "dump" does not exist right now I get an error telling as such. I don't need an error message I need the field added if it does not exist :) BTW AppendDeleteField is a function I got from the help menu. It works fine in case you are wondering. Thanks BL From boogieloogie at gmail.com Thu Dec 2 14:25:32 2004 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 2 Dec 2004 16:25:32 -0400 Subject: [AccessD] Re: How do I programatically see if a field exists in table. If not add it? In-Reply-To: <3bf43ee9041202115974503750@mail.gmail.com> References: <3bf43ee9041202115974503750@mail.gmail.com> Message-ID: <3bf43ee904120212254a923725@mail.gmail.com> cancel my request. I messed with it and found the problem I had dim fld as Fields when I should have had dim fld as field DOH BL On Thu, 2 Dec 2004 15:59:33 -0400, Boogie Loogie wrote: > Hi > > I have a an A97 db and am trying to write some code to check to see if > field exists. If it does not I need it added. Right now I am lost. > Please help. > > CODE THUS FAR: > > If tdfChiz.Fields("dump").Name = "dump" Then > AppendDeleteField tdfChiz, "DELETE", "dump" > AppendDeleteField tdfChiz, "APPEND", "dump", dbBoolean > Else > AppendDeleteField tdfChiz, "APPEND", "dump", dbBoolean > End If > > If the field "dump" does not exist right now I get an error telling as > such. I don't need an error message I need the field added if it does > not exist :) > > BTW AppendDeleteField is a function I got from the help menu. It works > fine in case you are wondering. > > Thanks > > BL > From jwcolby at colbyconsulting.com Thu Dec 2 14:26:21 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 02 Dec 2004 15:26:21 -0500 Subject: [AccessD] Nice laptop cheap! In-Reply-To: <3bf43ee9041202115974503750@mail.gmail.com> Message-ID: <003801c4d8ad$33187840$e8dafea9@ColbyM6805> Folks, I bought the Emachines (Gateway) m5405 laptop from BestBuy for my wife for Christmas. They have it on sale for $950, plus if purchased before 12/4 there are two mail in rebates for $150 and $50 (200 total rebates) making the machine $750 + tax (on $950). The machine specs: eMachines M5405 Specifications CPU: Mobile AMD SempronT 2800+ Processor Operates at 1.6GHz 256KB L2 Cache Operating System: MicrosoftR WindowsR XP Home Edition 1 Memory: 512 MB DDR (PC 2700) Hard Drive: 60 GB HDD 2 Optical Drives: DVD/CD-RW Combo (CD-read 24x; CD-write 24x; CD-rewrite 24x; DVD-read 8x) Video: SiS M760 Ultra 256 Graphics UMA 64 MB (shared) Video Memory Sound: AC '97 Audio Built-in Stereo Speakers Modem: 56K ITU V.92 Fax/Modem Network: Integrated 802.11g Wireless LAN, 10/100Mbps built-in Ethernet Dimensions: 1.36"h x 14.0"w x 10.0"d Internet: AOL Membership Included (Additional phone charges may apply. Click here for details.) Ports/Other: 3 USB 2.0 ports, 1 IEEE 1394, 1 VGA external connector, Microphone In, Line Out, PCMCIA Slot (Card Bus type I and type II) Pre-Installed Software: MicrosoftR WindowsR XP Home Edition, Microsoft Works 8.0 1, Microsoft Money 2004, Encarta Online, AdobeR AcrobatR ReaderT, Power DVD, Microsoft Media Player, Real Player, Internet Explorer, Norton AntiVirus 2004 (90 day complimentary subscription) This is a NICE machine, not a gaming machine obviously but plenty for the student, wife, or the developer on a budget (me?). It can accept a sodimm in an exposed slot (which already has a 254mb sodimm in it) up to 1 gbyte. If you need a laptop or are looking to buy one for a present for someone, CHECK IT OUT. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From alan.lawhon at us.army.mil Thu Dec 2 14:49:53 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Thu, 2 Dec 2004 14:49:53 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB01C@redstone819.ad.redstone.army.mil> Jim: To say that we're just a bit "nervous" about this upcoming "adventure" is a vast understatement. The senior systems analyst, (who has never wrote a line of "web enabled" code in his life), is in the process of figuring out how to "curb" our customer's expectations - and simultaneously manage our "stress level" - while the senior programmer and I get "up to speed" on HTML, XML, ADO.NET, VB.NET, and whatever else we'll have to learn. (Our Senior Systems Analyst is a firm proponent of the theory that you should "manage your customer" [and your customer's expectations] rather than having your customer manage you ...) If we have to go "full bore" and web enable the entire system, we're looking at a massive conversion project - and we have to keep the live production database going full steam while we're doing this. George thinks he can persuade our customer to go along with "web enabling" a small part of the overall system - the "Approval Module" as kind of a "pilot project" - and then evaluating the feasibility of converting the rest of the system after we have successfully completed the pilot project. He thinks he can get our customer to agree to a 2-3 month development schedule for the pilot project. This means that Roy and I (the Senior Programmer) are going to have to learn a bunch of "web stuff" real quick. (I've already sent off for several VB.NET and ADO.NET books from Amazon.Com.) Charlotte Foust mentioned that she actually has some real experience with VB.NET and web programming. I wonder how long it took her to get "up to speed" (and proficient) with these technologies? I read somewhere about some poor unfortunate programmers who got dragged on a "death march" and had to churn out a lot of code real fast. I don't think it will get that bad here, but I suspect I'm going to be chewing on Roll-Aids in the coming months. Martha, a very sharp lady friend I know, likes to say, "Alan, think of this as an opportunity to excel!" Yea, right. Alan C. Lawhon -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at FleetPride.com] Sent: Thursday, December 02, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." I think it may be a bit early to do that. I (for one) am very interested in Alan's adventures because I suspect many of us will face some variation of this new challenge soon. My 2 cents. Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 01, 2004 8:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net From cfoust at infostatsystems.com Thu Dec 2 15:19:41 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 13:19:41 -0800 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Message-ID: >>Charlotte Foust mentioned that she actually has some real experience with VB.NET and web programming. I wonder how long it took her to get "up to speed" (and proficient) with these technologies? LOL Who says I'm up to speed and proficient? I'm learning every day, but fortunately we hired a guy who is more experienced in dot net, so we're playing leap frog as we go along--earn while you learn time. We have a small web-based app that is a companion product to one of our Access apps and he and I are working on porting the next version of the Access app to VB.Net, with a whole new interface. It helps that I spent a lot of time programming in ADO and using classes before I had to dive into dot net. That gave me a big leg up. I would have hated trying to learn dot net without the prior experience of building and using class objects and working with ADO, the shift in paradigms would have been a killer. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Thursday, December 02, 2004 12:50 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: To say that we're just a bit "nervous" about this upcoming "adventure" is a vast understatement. The senior systems analyst, (who has never wrote a line of "web enabled" code in his life), is in the process of figuring out how to "curb" our customer's expectations - and simultaneously manage our "stress level" - while the senior programmer and I get "up to speed" on HTML, XML, ADO.NET, VB.NET, and whatever else we'll have to learn. (Our Senior Systems Analyst is a firm proponent of the theory that you should "manage your customer" [and your customer's expectations] rather than having your customer manage you ...) From pedro at plex.nl Thu Dec 2 15:27:46 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 2 Dec 2004 22:27:46 +0100 Subject: [AccessD] several query's in one! References: Message-ID: <002801c4d8b6$6d20a540$f6c581d5@pedro> Hello Gustav, Thanks for your help. Everytime when i have a "difficult" query you keep amazing me by having the answer. Compliments, for me you are the real sql guru. Pedro Janssen ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 02, 2004 7:20 PM Subject: Re: [AccessD] several query's in one! > Hi Pedro > > Guess you could do something like this: > > SELECT > (CoorX \ 1000) * 1000 + 500 AS CoorX0, > (CoorY \ 1000) * 1000 + 500 AS CoorY0, > SUM(IIF(FieldA Is Null, 0, FieldA) + ... + IIF(FieldE Is Null, 0, > FieldE)) AS Total > FROM > tblCoor > GROUP BY > (CoorX \ 1000) * 1000 + 500, > (CoorY \ 1000) * 1000 + 500; > > /gustav > > > >>> pedro at plex.nl 02-12-2004 15:02:23 >>> > Hello Group, > > is it possible to make one sql query for the result below. Without > using several query's to come to what is need. It would save me a lot of > time. > > i have > > CoorX CoorY fieldA fieldB fieldC fieldD > fieldE > 206210 345120 5 1 2 > 2 > 206733 345999 4 2 1 > 3 > 207999 345170 1 2 1 > 207452 345734 1 2 2 > > i need > > CoorX CoorY total > 206500 345500 20 > 207500 345500 9 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Jim.Hale at FleetPride.com Thu Dec 2 16:10:49 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 2 Dec 2004 16:10:49 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233727B@corp-es01.fleetpride.com> Didn't Lee tell Picket something similar before his cavalry charge at Gettysburg? :-( I hope you keep us posted as you wrestle with this since I am trying to figure out an appropriate upgrade path for (smaller) apps. Good luck! Jim Hale -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Thursday, December 02, 2004 2:50 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Jim: To say that we're just a bit "nervous" about this upcoming "adventure" is a vast understatement. The senior systems analyst, (who has never wrote a line of "web enabled" code in his life), is in the process of figuring out how to "curb" our customer's expectations - and simultaneously manage our "stress level" - while the senior programmer and I get "up to speed" on HTML, XML, ADO.NET, VB.NET, and whatever else we'll have to learn. (Our Senior Systems Analyst is a firm proponent of the theory that you should "manage your customer" [and your customer's expectations] rather than having your customer manage you ...) If we have to go "full bore" and web enable the entire system, we're looking at a massive conversion project - and we have to keep the live production database going full steam while we're doing this. George thinks he can persuade our customer to go along with "web enabling" a small part of the overall system - the "Approval Module" as kind of a "pilot project" - and then evaluating the feasibility of converting the rest of the system after we have successfully completed the pilot project. He thinks he can get our customer to agree to a 2-3 month development schedule for the pilot project. This means that Roy and I (the Senior Programmer) are going to have to learn a bunch of "web stuff" real quick. (I've already sent off for several VB.NET and ADO.NET books from Amazon.Com.) Charlotte Foust mentioned that she actually has some real experience with VB.NET and web programming. I wonder how long it took her to get "up to speed" (and proficient) with these technologies? I read somewhere about some poor unfortunate programmers who got dragged on a "death march" and had to churn out a lot of code real fast. I don't think it will get that bad here, but I suspect I'm going to be chewing on Roll-Aids in the coming months. Martha, a very sharp lady friend I know, likes to say, "Alan, think of this as an opportunity to excel!" Yea, right. Alan C. Lawhon -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at FleetPride.com] Sent: Thursday, December 02, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." I think it may be a bit early to do that. I (for one) am very interested in Alan's adventures because I suspect many of us will face some variation of this new challenge soon. My 2 cents. Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 01, 2004 8:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From kaupca at chevrontexaco.com Thu Dec 2 16:33:55 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 2 Dec 2004 16:33:55 -0600 Subject: [AccessD] Sum a union query Message-ID: <1375769556091B4DAABC159F944CA1BB07A301@bocnte2k4.hou150.chevrontexaco.net> Can I do this in a union query? Generates error of no aggregate function for ACTVDATE. Select ACTVDATE, Sum(Exp1), Sum(Exp2) From (SELECT ACTVDATE, Sum(VOLUME_SS) as Exp1, Sum([VOLUME_SS])*0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) and ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE ORDER BY ACTVDATE UNION SELECT ACTVDATE, Sum([VOLUME_SS]*-1)as Exp1, Sum([VOLUME_SS])*-0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 and ACTVDATE>=#10/1/2004#) GROUP BY ACTVDATE ORDER BY ACTVDATE; Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From KP at sdsonline.net Thu Dec 2 16:44:35 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 3 Dec 2004 09:44:35 +1100 Subject: [AccessD] Monthly Calendar References: Message-ID: <006d01c4d8c0$801692e0$6401a8c0@user> Nice one Phil - thanks for sharing! Kath ----- Original Message ----- From: Phil Jewett To: accessd at databaseadvisors.com Sent: Friday, December 03, 2004 5:26 AM Subject: [AccessD] Monthly Calendar Tis the season for printing family calendars, and here is a little A2K mdb I made that prints monthly calendars with pictures at the top. Just enter your image filenames in the table and run the one report (no fancy controls). http://www.bayplace.com/access/monthlycalendar.zip Phil Jewett Phil Jewett Consulting http://www.bayplace.com/pjcons email: info at bayplace.com (619) 318-4899 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Thu Dec 2 16:33:07 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 2 Dec 2004 23:33:07 +0100 Subject: [AccessD] several query's in one! References: Message-ID: <00c201c4d8c0$bccba680$f6c581d5@pedro> Hello Mark, thanks for your answer. I already used the sql that Gustav send me, tested it and it worked fine. Nevertheless Thanks Pedro Janssen ----- Original Message ----- From: "Mark A Matte" To: Sent: Thursday, December 02, 2004 7:36 PM Subject: RE: [AccessD] several query's in one! > Pedro, > > This doesn't take into account NULLS and assuming you were just taking the > first 3 digits of CoorX and Y...then adding 500 to the end...you could use > something like: > > ********************** > SELECT Left([CoorX],3) & "500" AS X, Left([CoorY],3) & "500" AS Y, > Sum([fieldA]+[fieldB]+[fieldC]+[fieldD]+[fieldE]) AS Total > FROM tblData > GROUP BY Left([CoorX],3) & "500", Left([CoorY],3) & "500" > WITH OWNERACCESS OPTION; > ****************** > ...and you output would look like: > X Y Total > 206500 345500 20 > 207500 345500 9 > > Hope this helps... > > Thanks, > > Mark A. Matte > > > >From: pedro at plex.nl > >Reply-To: Access Developers discussion and problem > >solving > >To: accessd at databaseadvisors.com > >Subject: [AccessD] several query's in one! > >Date: Thu, 02 Dec 2004 15:02:23 (MET) > > > >Hello Group, > > > >is it possible to make one sql query for the result below. Without using > >several query's to come to what is need. It would save me a lot of time. > > > >i have > > > >CoorX CoorY fieldA fieldB fieldC fieldD > >fieldE > >206210 345120 5 1 2 > >2 > >206733 345999 4 2 1 > >3 > >207999 345170 1 2 1 > >207452 345734 1 2 2 > > > > > > > >i need > > > >CoorX CoorY total > >206500 345500 20 > >207500 345500 9 > > > > > >Thanks > > > >Pedro Janssen > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pcs at azizaz.com Thu Dec 2 20:01:01 2004 From: pcs at azizaz.com (Borge Hansen) Date: Fri, 3 Dec 2004 12:01:01 +1000 Subject: [AccessD] CheckDate? References: <20041103073920.69473.qmail@web61106.mail.yahoo.com> Message-ID: <005f01c4d8db$f116b090$fa10a8c0@Albatross> Hi, amazing how inexhaustible this subject is.... I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid entry etc.... If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 When I test for a valid date in the beforeupdate event using IsDate() it tests on the 4 Dec 1932 value .... What am I doing wrong here? Or rather : how do I catch obvious incorrect entries like 32 Dec 04 using IsDate() before Access let them slip through? Currently I test entry in text control box on the validation rule property: >=#1/01/2001# Hmmmm.... Regards Borge ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 5:39 PM Subject: Re: [AccessD] CheckDate? > Gustav Brock wrote: > Hi Sander > > > However, I added some extra checks to rule out 'impossible dates' > > like 29,30 or 31 februari, 31 november, etc. > > Well, that's the point - IsDate() checks that as well! > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > /gustav --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 From tom.bolton at donnslaw.co.uk Fri Dec 3 03:09:51 2004 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Fri, 3 Dec 2004 09:09:51 -0000 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <61F915314798D311A2F800A0C9C83188064332A3@dibble.observatory.donnslaw.co.uk> ADO and classes are exactly what you need! .NET is 'proper' OO, and it forces you to think that way, so any leg-up you give yourself by trying to write re-usable code in VBA will be a great help. Once you get into .NET, it makes a LOT of sense. Just don't do what I did and try and find 'Recordset' in your ADO.NET manual. ;-) -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 02 December 2004 21:20 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." >>Charlotte Foust mentioned that she actually has some real experience with VB.NET and web programming. I wonder how long it took her to get "up to speed" (and proficient) with these technologies? LOL Who says I'm up to speed and proficient? I'm learning every day, but fortunately we hired a guy who is more experienced in dot net, so we're playing leap frog as we go along--earn while you learn time. We have a small web-based app that is a companion product to one of our Access apps and he and I are working on porting the next version of the Access app to VB.Net, with a whole new interface. It helps that I spent a lot of time programming in ADO and using classes before I had to dive into dot net. That gave me a big leg up. I would have hated trying to learn dot net without the prior experience of building and using class objects and working with ADO, the shift in paradigms would have been a killer. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Thursday, December 02, 2004 12:50 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: To say that we're just a bit "nervous" about this upcoming "adventure" is a vast understatement. The senior systems analyst, (who has never wrote a line of "web enabled" code in his life), is in the process of figuring out how to "curb" our customer's expectations - and simultaneously manage our "stress level" - while the senior programmer and I get "up to speed" on HTML, XML, ADO.NET, VB.NET, and whatever else we'll have to learn. (Our Senior Systems Analyst is a firm proponent of the theory that you should "manage your customer" [and your customer's expectations] rather than having your customer manage you ...) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From Gustav at cactus.dk Fri Dec 3 05:08:14 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 12:08:14 +0100 Subject: [AccessD] several query's in one! Message-ID: Thanks Pedro, only glad to help. Perhaps I should note again - but it cannot be said too often - that this list is my primary learning source. /gustav >>> pedro at plex.nl 02-12-2004 22:27:46 >>> Hello Gustav, Thanks for your help. Everytime when i have a "difficult" query you keep amazing me by having the answer. Compliments, for me you are the real sql guru. Pedro Janssen From Gustav at cactus.dk Fri Dec 3 05:37:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 12:37:50 +0100 Subject: [AccessD] CheckDate? Message-ID: Hi Borge Well, the problem is that IsDate() and CDate() don't care for "likely dates" only possible dates which date strings formatted as yy/mm/dd certainly are. If you need dates within a certain time frame, you'll have to check that on your own as you already have done. You could also, in the BeforeUpdate event, check for Day(strDate) = Val(strDate) or, for our US formatted friends: Month(strDate) = Val(strDate) /gustav >>> pcs at azizaz.com 03-12-2004 03:01:01 >>> Hi, amazing how inexhaustible this subject is.... I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid entry etc.... If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 When I test for a valid date in the beforeupdate event using IsDate() it tests on the 4 Dec 1932 value .... What am I doing wrong here? Or rather : how do I catch obvious incorrect entries like 32 Dec 04 using IsDate() before Access let them slip through? Currently I test entry in text control box on the validation rule property: >=#1/01/2001# Hmmmm.... Regards Borge ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 5:39 PM Subject: Re: [AccessD] CheckDate? > Gustav Brock wrote: > Hi Sander > > > However, I added some extra checks to rule out 'impossible dates' > > like 29,30 or 31 februari, 31 november, etc. > > Well, that's the point - IsDate() checks that as well! > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > /gustav From Gustav at cactus.dk Fri Dec 3 06:02:06 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 13:02:06 +0100 Subject: [AccessD] Sum a union query Message-ID: Hi Chester Seems like a Group By is missing. And sorting isn't needed. Also note UNION ALL. Try this: SELECT ACTVDATE, Sum(Exp1), Sum(Exp2) FROM (SELECT ACTVDATE, Sum(VOLUME_SS) AS Exp1, Sum([VOLUME_SS])*0.335849 AS Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) AND ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE UNION ALL SELECT ACTVDATE, Sum([VOLUME_SS]*-1) AS Exp1, Sum([VOLUME_SS])*-0.335849 AS Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 AND ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE) GROUP BY ACTVDATE ORDER BY ACTVDATE; /gustav >>> kaupca at chevrontexaco.com 02-12-2004 23:33:55 >>> Can I do this in a union query? Generates error of no aggregate function for ACTVDATE. Select ACTVDATE, Sum(Exp1), Sum(Exp2) From (SELECT ACTVDATE, Sum(VOLUME_SS) as Exp1, Sum([VOLUME_SS])*0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) and ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE ORDER BY ACTVDATE UNION SELECT ACTVDATE, Sum([VOLUME_SS]*-1)as Exp1, Sum([VOLUME_SS])*-0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 and ACTVDATE>=#10/1/2004#) GROUP BY ACTVDATE ORDER BY ACTVDATE; Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 From Mark.Mitsules at ngc.com Fri Dec 3 07:39:37 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 3 Dec 2004 08:39:37 -0500 Subject: [AccessD] Migration from XP to 2003 Message-ID: Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark From Gustav at cactus.dk Fri Dec 3 08:33:01 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 15:33:01 +0100 Subject: [AccessD] CheckDate? Message-ID: Here is a more general approach: With Me!txtDate Cancel = Val(.Text) <> Val(Format(.Text, Nz(.Format, "Short Date"))) End With /gustav >>> Gustav at cactus.dk 03-12-2004 12:37:50 >>> Hi Borge Well, the problem is that IsDate() and CDate() don't care for "likely dates" only possible dates which date strings formatted as yy/mm/dd certainly are. If you need dates within a certain time frame, you'll have to check that on your own as you already have done. You could also, in the BeforeUpdate event, check for Day(strDate) = Val(strDate) or, for our US formatted friends: Month(strDate) = Val(strDate) /gustav >>> pcs at azizaz.com 03-12-2004 03:01:01 >>> Hi, amazing how inexhaustible this subject is.... I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid entry etc.... If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 When I test for a valid date in the beforeupdate event using IsDate() it tests on the 4 Dec 1932 value .... What am I doing wrong here? Or rather : how do I catch obvious incorrect entries like 32 Dec 04 using IsDate() before Access let them slip through? Currently I test entry in text control box on the validation rule property: >=#1/01/2001# Hmmmm.... Regards Borge ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 5:39 PM Subject: Re: [AccessD] CheckDate? > Gustav Brock wrote: > Hi Sander > > > However, I added some extra checks to rule out 'impossible dates' > > like 29,30 or 31 februari, 31 november, etc. > > Well, that's the point - IsDate() checks that as well! > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > /gustav From paulb at rtctech.com Fri Dec 3 09:11:02 2004 From: paulb at rtctech.com (Paul Baumann) Date: Fri, 3 Dec 2004 09:11:02 -0600 Subject: [AccessD] How to access the print dialog box? Message-ID: <5068EFF1BA3C1D4485B77CEC1CBBAAD52CFDA3@farley.rtctech.com> Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul From kaupca at chevrontexaco.com Fri Dec 3 09:24:47 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Fri, 3 Dec 2004 09:24:47 -0600 Subject: [AccessD] Sum a union query Message-ID: <1375769556091B4DAABC159F944CA1BB07A307@bocnte2k4.hou150.chevrontexaco.net> Works perfect. Thanks Group. Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 03, 2004 6:02 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Sum a union query Hi Chester Seems like a Group By is missing. And sorting isn't needed. Also note UNION ALL. Try this: SELECT ACTVDATE, Sum(Exp1), Sum(Exp2) FROM (SELECT ACTVDATE, Sum(VOLUME_SS) AS Exp1, Sum([VOLUME_SS])*0.335849 AS Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) AND ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE UNION ALL SELECT ACTVDATE, Sum([VOLUME_SS]*-1) AS Exp1, Sum([VOLUME_SS])*-0.335849 AS Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 AND ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE) GROUP BY ACTVDATE ORDER BY ACTVDATE; /gustav >>> kaupca at chevrontexaco.com 02-12-2004 23:33:55 >>> Can I do this in a union query? Generates error of no aggregate function for ACTVDATE. Select ACTVDATE, Sum(Exp1), Sum(Exp2) From (SELECT ACTVDATE, Sum(VOLUME_SS) as Exp1, Sum([VOLUME_SS])*0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) and ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE ORDER BY ACTVDATE UNION SELECT ACTVDATE, Sum([VOLUME_SS]*-1)as Exp1, Sum([VOLUME_SS])*-0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 and ACTVDATE>=#10/1/2004#) GROUP BY ACTVDATE ORDER BY ACTVDATE; Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Dec 3 09:22:41 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 3 Dec 2004 10:22:41 -0500 Subject: [AccessD] How to access the print dialog box? Message-ID: Right click on the report as you are viewing it? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Baumann Sent: Friday, December 03, 2004 10:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to access the print dialog box? Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paulb at rtctech.com Fri Dec 3 09:50:33 2004 From: paulb at rtctech.com (Paul Baumann) Date: Fri, 3 Dec 2004 09:50:33 -0600 Subject: [AccessD] How to access the print dialog box? Message-ID: <5068EFF1BA3C1D4485B77CEC1CBBAAD52CFDA5@farley.rtctech.com> I am sorry, I should have been more specific...I would like to display the printer dialog when printing a report from code so that the user could then select a printer other than the default printer or perhaps print to a file. Paul -----Original Message----- From: Paul Baumann Sent: Friday, December 03, 2004 9:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to access the print dialog box? Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul From CMackin at quiznos.com Fri Dec 3 09:53:25 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Fri, 3 Dec 2004 08:53:25 -0700 Subject: [AccessD] How to access the print dialog box? Message-ID: Docmd.RunCommand accmdPrint should do it, open the report in Preview mode and then add that as the next line. You can also make a custom toolbar that takes the File->Print button and makes that available. There are a lot of good solutions to this one. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Paul Baumann Sent: Friday, December 03, 2004 8:51 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How to access the print dialog box? I am sorry, I should have been more specific...I would like to display the printer dialog when printing a report from code so that the user could then select a printer other than the default printer or perhaps print to a file. Paul -----Original Message----- From: Paul Baumann Sent: Friday, December 03, 2004 9:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to access the print dialog box? Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Dec 3 10:08:51 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 3 Dec 2004 11:08:51 -0500 Subject: [AccessD] How to access the print dialog box? Message-ID: Here is a public function that I use to call: Public Function PrintOut() ' Use the RunCommand method to display the print dialog box. On Error GoTo ErrorTrap DoCmd.RunCommand acCmdPrint Exit Function ErrorTrap: ' Check whether the RunCommand method was canceled. ' If RunCommand is canceled, it generates a trappable run-time error (2501). If Err.Number = 2501 Then Exit Function Else MsgBox Err.Number & vbCrLf & Err.Description End If End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Baumann Sent: Friday, December 03, 2004 10:51 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How to access the print dialog box? I am sorry, I should have been more specific...I would like to display the printer dialog when printing a report from code so that the user could then select a printer other than the default printer or perhaps print to a file. Paul -----Original Message----- From: Paul Baumann Sent: Friday, December 03, 2004 9:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to access the print dialog box? Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 3 10:28:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 03 Dec 2004 11:28:29 -0500 Subject: [AccessD] Mappoint and Access Message-ID: <006b01c4d955$23851bb0$e8dafea9@ColbyM6805> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From Gustav at cactus.dk Fri Dec 3 10:53:37 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 17:53:37 +0100 Subject: [AccessD] Mappoint and Access Message-ID: Hi John Marty posted this a couple of years ago: How to call MapPoint from Access, Word or Excel http://www.mp2kmag.com/articles.asp?ArticleID=39 Where did MapPoint 2000 Come From? http://www.mp2kmag.com/articles.asp?ArticleID=3 /gustav >>> jwcolby at colbyconsulting.com 03-12-2004 17:28:29 >>> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? From DWUTKA at marlow.com Fri Dec 3 10:53:25 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 3 Dec 2004 10:53:25 -0600 Subject: [AccessD] Mappoint and Access Message-ID: <123701F54509D9119A4F00D0B747349016D0F3@main2.marlow.com> Talk to Mike Mattys. Drew -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, December 03, 2004 10:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Mappoint and Access Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.mattys at adelphia.net Fri Dec 3 11:44:09 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Fri, 3 Dec 2004 12:44:09 -0500 Subject: [AccessD] Mappoint and Access References: <006b01c4d955$23851bb0$e8dafea9@ColbyM6805> Message-ID: <029201c4d95f$b22116d0$6401a8c0@default> John, If you want to try your hand at it, you need to visit Eric Frost's www.mp2kmag.com and read through the articles and forums. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com (Hasn't been updated for 2 yrs, too busy!!!) ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 03, 2004 11:28 AM Subject: [AccessD] Mappoint and Access > Does anyone have any experience automating mappoint using Access. I have a > client that wants to "staff contracts", and in order to do that they want to > visualize distances between the person's home address and the work address. > They also want to do things like ask mappoint to calculate distance / drive > time between a work address and a set of people home addresses, then hand > back to Access the data so that Access can display the data in a report > sorted on drive time / distance. > > Stuff like that. > > Does anyone have code that does this kind of stuff, or know of a web site or > user's group that I could go look at to start boning up on this stuff? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dw-murphy at cox.net Fri Dec 3 11:47:30 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 3 Dec 2004 09:47:30 -0800 Subject: [AccessD] Mappoint and Access In-Reply-To: <006b01c4d955$23851bb0$e8dafea9@ColbyM6805> Message-ID: <000001c4d960$2c224df0$8500a8c0@murphyf3vdfepi> John, Take a look at "Enhancing your application with GIS mapping technology" at http://www.augsd.org/sampleapps/AUGSD_GIS.zip. Mike Dwyer gave this presentation to the Access Users Group of San Diego last June. It may answer some of your questions. The examples Mike gave used Map Point. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, December 03, 2004 8:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Mappoint and Access Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 3 11:53:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 03 Dec 2004 12:53:40 -0500 Subject: [AccessD] Mappoint and Access In-Reply-To: Message-ID: <006f01c4d961$0a551620$e8dafea9@ColbyM6805> Gustav, Thanks, that first link had code (working SIMPLE database) for mapping two points. COOL STUFF! The entire code is a single function of maybe 60 lines. And it WORKS! Well, I will have to poke around and see if I can read the distance calculations directly from an object property. It gives me the typical driving directions though so if worst comes to worst, I can just paste that to get the info I need. You da man! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 03, 2004 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mappoint and Access Hi John Marty posted this a couple of years ago: How to call MapPoint from Access, Word or Excel http://www.mp2kmag.com/articles.asp?ArticleID=39 Where did MapPoint 2000 Come From? http://www.mp2kmag.com/articles.asp?ArticleID=3 /gustav >>> jwcolby at colbyconsulting.com 03-12-2004 17:28:29 >>> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Dec 3 13:01:23 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 03 Dec 2004 11:01:23 -0800 Subject: [AccessD] Mappoint and Access References: <006b01c4d955$23851bb0$e8dafea9@ColbyM6805> Message-ID: <41B0B803.9060508@shaw.ca> You used to be able to screen scrape MapBlast site for this info, but Microsoft bought them up 3 or 4 years ago. You could also use the MS webservice site, so much per 1000 transactions rather than purchasing multiple copies of mappoint. Just don't forget all the oddities that will affect travel time. Here is an extreme one. To drive from Vancouver to Victoria the distance is only 60 miles, the actual driving time is an hour and twenty minutes However the total travel time is well over 3 hours due to the hour and half ferry ride. Then you have to switch your watch back 40 years to island time. MapPoint doesn't take these things into account John W. Colby wrote: >Does anyone have any experience automating mappoint using Access. I have a >client that wants to "staff contracts", and in order to do that they want to >visualize distances between the person's home address and the work address. >They also want to do things like ask mappoint to calculate distance / drive >time between a work address and a set of people home addresses, then hand >back to Access the data so that Access can display the data in a report >sorted on drive time / distance. > >Stuff like that. > >Does anyone have code that does this kind of stuff, or know of a web site or >user's group that I could go look at to start boning up on this stuff? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Marty Connelly Victoria, B.C. Canada From cyx5 at cdc.gov Fri Dec 3 13:02:32 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 3 Dec 2004 14:02:32 -0500 Subject: [AccessD] Writing a Book...Martin Reid and Susan H --- Message-ID: NOT ME!!! My co worker... how did you go about putting together your book deal? (Nice book, by the way). He is a Documentum guru among other things. You can e me offine.. From cfoust at infostatsystems.com Fri Dec 3 13:19:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 3 Dec 2004 11:19:50 -0800 Subject: [AccessD] Mappoint and Access Message-ID: >>However the total travel time is well over 3 hours due to the hour and half ferry ride. Then you have to switch your watch back 40 years to island time. MapPoint doesn't take these things into Account LOL Well, it IS Friday ... Charlotte Foust -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Friday, December 03, 2004 11:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mappoint and Access You used to be able to screen scrape MapBlast site for this info, but Microsoft bought them up 3 or 4 years ago. You could also use the MS webservice site, so much per 1000 transactions rather than purchasing multiple copies of mappoint. Just don't forget all the oddities that will affect travel time. Here is an extreme one. To drive from Vancouver to Victoria the distance is only 60 miles, the actual driving time is an hour and twenty minutes However the total travel time is well over 3 hours due to the hour and half ferry ride. Then you have to switch your watch back 40 years to island time. MapPoint doesn't take these things into account From Subscriptions at servicexp.com Fri Dec 3 16:13:24 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Fri, 3 Dec 2004 17:13:24 -0500 Subject: [AccessD] Mappoint and Access In-Reply-To: <006f01c4d961$0a551620$e8dafea9@ColbyM6805> Message-ID: Sent you a working example to your personal e-mail. Have Fun..... Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, December 03, 2004 12:54 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Mappoint and Access Gustav, Thanks, that first link had code (working SIMPLE database) for mapping two points. COOL STUFF! The entire code is a single function of maybe 60 lines. And it WORKS! Well, I will have to poke around and see if I can read the distance calculations directly from an object property. It gives me the typical driving directions though so if worst comes to worst, I can just paste that to get the info I need. You da man! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 03, 2004 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mappoint and Access Hi John Marty posted this a couple of years ago: How to call MapPoint from Access, Word or Excel http://www.mp2kmag.com/articles.asp?ArticleID=39 Where did MapPoint 2000 Come From? http://www.mp2kmag.com/articles.asp?ArticleID=3 /gustav >>> jwcolby at colbyconsulting.com 03-12-2004 17:28:29 >>> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Fri Dec 3 19:01:03 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 3 Dec 2004 17:01:03 -0800 Subject: [AccessD] Migration from XP to 2003 In-Reply-To: Message-ID: <200412040100.iB410xL05279@databaseadvisors.com> Mark, Can you at least map multiple drives and simulate going across network? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, December 03, 2004 5:40 AM To: [AccessD] Subject: [AccessD] Migration from XP to 2003 Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Helmut.E.Kotsch at t-online.de Fri Dec 3 23:13:50 2004 From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) Date: Sat, 4 Dec 2004 06:13:50 +0100 Subject: AW: [AccessD] Mappoint and Access In-Reply-To: Message-ID: Bob, I would like to also have some Fun.... Could you please send me also a copy of your working example. Thanks in advance. Helmut mailto: Helmut.E.Kotsch at T-Online.de -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Robert Gracie Gesendet: Freitag, 3. Dezember 2004 23:13 An: 'Access Developers discussion and problem solving' Betreff: RE: [AccessD] Mappoint and Access Sent you a working example to your personal e-mail. Have Fun..... Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, December 03, 2004 12:54 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Mappoint and Access Gustav, Thanks, that first link had code (working SIMPLE database) for mapping two points. COOL STUFF! The entire code is a single function of maybe 60 lines. And it WORKS! Well, I will have to poke around and see if I can read the distance calculations directly from an object property. It gives me the typical driving directions though so if worst comes to worst, I can just paste that to get the info I need. You da man! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 03, 2004 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mappoint and Access Hi John Marty posted this a couple of years ago: How to call MapPoint from Access, Word or Excel http://www.mp2kmag.com/articles.asp?ArticleID=39 Where did MapPoint 2000 Come From? http://www.mp2kmag.com/articles.asp?ArticleID=3 /gustav >>> jwcolby at colbyconsulting.com 03-12-2004 17:28:29 >>> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Sat Dec 4 00:13:05 2004 From: pcs at azizaz.com (Borge Hansen) Date: Sat, 4 Dec 2004 16:13:05 +1000 Subject: [AccessD] CheckDate? References: Message-ID: <001501c4d9c8$516f45f0$fa10a8c0@Albatross> Hi Gustav, Thanks man, also for going the extra step and supplying a more general approach. I've been playing around with this and I've got to stop..... I've found - in line with what you said -, that when you are using a two digit year entry, as long as MS Access can interpret this as a possible date it will, and there's no general way to stop it from doing that. At least, I have found no way to catch the following scenario in a general way: Two digit year format entry of the following format : d mmm yy - where you have input like 32 Dec 04 or 35 Dec 04 or other in this context 'mistyped entries' Only by limiting valid date entries like : >=#1/1/1950# for example When User enters an (obvious?) invalid(?) date entry like 32 Dec 04 MA Access appears to be thinking "..Ok, let' see the first part can be neither a date nor a month so .... now lets have a look at the last part of this variant type of thing just to check if the poor bugger has been using the four digit format... oh no! - well, good! we use the first part as year and we'll disregard the fact that also the last part could be interpreted as the year with an consequently incorrect date entry .... we'll just frustrate the fellow and give him 4/12/1932 .... and alright, if he insists on displaying month as ddd, we'll return him with a 4 Dec 1932 .... no problerma..... Let's just hope the poor fellow is going to use this unbound text box as a parameter in a sql string, and we can mess with him a bit further..... wish we could see his face when he discovers that such an sql string - since he obviously is not a "mm dd yy" type of person - will turn into 12 March 1932 .... ha, ha ... that'll teach the hominid a lesson!" So, Gustav I'm back with testing for >=#1/01/2001# Regards Borge PS Hmmm, also come to think of it MS Access interprets 32 Dec 04 as 4/12/1932 (using format, year or cdate function) - why not 4/12/2032 ?? ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 04, 2004 12:33 AM Subject: Re: [AccessD] CheckDate? > Here is a more general approach: > > With Me!txtDate > Cancel = Val(.Text) <> Val(Format(.Text, Nz(.Format, "Short > Date"))) > End With > > /gustav > > >>> Gustav at cactus.dk 03-12-2004 12:37:50 >>> > Hi Borge > > Well, the problem is that IsDate() and CDate() don't care for "likely > dates" only possible dates which date strings formatted as yy/mm/dd > certainly are. > If you need dates within a certain time frame, you'll have to check > that on your own as you already have done. > > You could also, in the BeforeUpdate event, check for > > Day(strDate) = Val(strDate) > > or, for our US formatted friends: > > Month(strDate) = Val(strDate) > > /gustav > > >>> pcs at azizaz.com 03-12-2004 03:01:01 >>> > Hi, amazing how inexhaustible this subject is.... > > I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy > > If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid > entry > etc.... > > If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 > > When I test for a valid date in the beforeupdate event using IsDate() > it > tests on the 4 Dec 1932 value .... > > What am I doing wrong here? > > Or rather : how do I catch obvious incorrect entries like 32 Dec 04 > using > IsDate() before Access let them slip through? > > Currently I test entry in text control box on the validation rule > property: > >=#1/01/2001# > Hmmmm.... > > Regards > Borge > > ----- Original Message ----- > From: "S D" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, November 03, 2004 5:39 PM > Subject: Re: [AccessD] CheckDate? > > > Gustav Brock wrote: > > Hi Sander > > > > > However, I added some extra checks to rule out 'impossible dates' > > > like 29,30 or 31 februari, 31 november, etc. > > > > Well, that's the point - IsDate() checks that as well! > > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > > > /gustav > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From stuart at lexacorp.com.pg Sat Dec 4 00:26:52 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 04 Dec 2004 16:26:52 +1000 Subject: [AccessD] CheckDate? In-Reply-To: <001501c4d9c8$516f45f0$fa10a8c0@Albatross> Message-ID: <41B1E54C.16096.E39C332@lexacorp.com.pg> On 4 Dec 2004 at 16:13, Borge Hansen wrote: > Hmmm, also come to think of it MS Access interprets 32 Dec 04 as 4/12/1932 > (using format, year or cdate function) - why not 4/12/2032 ?? > Because the Windows default century for two digit dates is 1930-2029. You can set it to whatever you like under Control Panel - Regional Options - Date. -- Stuart From Gustav at cactus.dk Sat Dec 4 06:08:20 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 04 Dec 2004 13:08:20 +0100 Subject: [AccessD] CheckDate? Message-ID: Hi Borge First, have in mind that what to one looks like a crazy date may be perfectly valid for others. mm/dd/yyyy is crazy for most people outside the US; yyyy-mm-dd is an ISO standard, is the preferred format in Sweden and (I think) Japan and an accepted format in Denmark, and in Java and SAP DB (Max DB) the preferred date format. Also, it is by no doubt the most logical: yyyymmddhhnnss ... Second, one should apply any validation rule needed or useful as you do. For most accounting systems, for example, you normally are allowed to type in dates within the current fiscal year only except for statistics, of course. Third, my suggestion will only catch those inputs which are in direct contrast with what might be intended. If you format your textbox to "dd mmm yy" it _will_ catch the example you mention, 34 dec 04. Regard it as a "silent inputmask". Finally, one method to get rid of all this completely, is to use three juxtaposed textboxes, one for day, one for month and one for the year. Then you are in complete control. It even adds the possibility to let the user type in the day only using default values for month and year, or type digits only; you can't do that when using one textbox only. Many accounting systems accept the 6-digit compressed date format ddmmyy (and variations hereof) for minimal typing. Unfortunately Access does not. /gustav >>> pcs at azizaz.com 04-12-2004 07:13:05 >>> Hi Gustav, Thanks man, also for going the extra step and supplying a more general approach. I've been playing around with this and I've got to stop..... I've found - in line with what you said -, that when you are using a two digit year entry, as long as MS Access can interpret this as a possible date it will, and there's no general way to stop it from doing that. At least, I have found no way to catch the following scenario in a general way: Two digit year format entry of the following format : d mmm yy - where you have input like 32 Dec 04 or 35 Dec 04 or other in this context 'mistyped entries' Only by limiting valid date entries like : >=#1/1/1950# for example When User enters an (obvious?) invalid(?) date entry like 32 Dec 04 MA Access appears to be thinking "..Ok, let' see the first part can be neither a date nor a month so .... now lets have a look at the last part of this variant type of thing just to check if the poor bugger has been using the four digit format... oh no! - well, good! we use the first part as year and we'll disregard the fact that also the last part could be interpreted as the year with an consequently incorrect date entry .... we'll just frustrate the fellow and give him 4/12/1932 .... and alright, if he insists on displaying month as ddd, we'll return him with a 4 Dec 1932 .... no problerma..... Let's just hope the poor fellow is going to use this unbound text box as a parameter in a sql string, and we can mess with him a bit further..... wish we could see his face when he discovers that such an sql string - since he obviously is not a "mm dd yy" type of person - will turn into 12 March 1932 .... ha, ha ... that'll teach the hominid a lesson!" So, Gustav I'm back with testing for >=#1/01/2001# Regards Borge PS Hmmm, also come to think of it MS Access interprets 32 Dec 04 as 4/12/1932 (using format, year or cdate function) - why not 4/12/2032 ?? ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 04, 2004 12:33 AM Subject: Re: [AccessD] CheckDate? > Here is a more general approach: > > With Me!txtDate > Cancel = Val(.Text) <> Val(Format(.Text, Nz(.Format, "Short > Date"))) > End With > > /gustav > > >>> Gustav at cactus.dk 03-12-2004 12:37:50 >>> > Hi Borge > > Well, the problem is that IsDate() and CDate() don't care for "likely > dates" only possible dates which date strings formatted as yy/mm/dd > certainly are. > If you need dates within a certain time frame, you'll have to check > that on your own as you already have done. > > You could also, in the BeforeUpdate event, check for > > Day(strDate) = Val(strDate) > > or, for our US formatted friends: > > Month(strDate) = Val(strDate) > > /gustav > > >>> pcs at azizaz.com 03-12-2004 03:01:01 >>> > Hi, amazing how inexhaustible this subject is.... > > I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy > > If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid entry > etc.... > > If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 > > When I test for a valid date in the beforeupdate event using IsDate() it > tests on the 4 Dec 1932 value .... > > What am I doing wrong here? > > Or rather : how do I catch obvious incorrect entries like 32 Dec 04 using > IsDate() before Access let them slip through? > > Currently I test entry in text control box on the validation rule > property: > >=#1/01/2001# > Hmmmm.... > > Regards > Borge > > ----- Original Message ----- > From: "S D" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, November 03, 2004 5:39 PM > Subject: Re: [AccessD] CheckDate? > > > Gustav Brock wrote: > > Hi Sander > > > > > However, I added some extra checks to rule out 'impossible dates' > > > like 29,30 or 31 februari, 31 november, etc. > > > > Well, that's the point - IsDate() checks that as well! > > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > > > /gustav From d.dick at uws.edu.au Sun Dec 5 20:38:13 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 6 Dec 2004 13:38:13 +1100 Subject: [AccessD] A2003: Checking for dupe phone numbers Message-ID: <200412060238.iB62cQx6019393@cooper.uws.edu.au> Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren From d.dick at uws.edu.au Sun Dec 5 20:52:55 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 6 Dec 2004 13:52:55 +1100 Subject: [AccessD] FW: A2003: Checking for dupe phone numbers Message-ID: <200412060253.iB62r8x6001258@cooper.uws.edu.au> Never mind - found a function to do it Dunno who wrote (wasn't me:-)) Apologies to whoever did - Can't give 'em credit Function OnlyNumbers(text) As String 'Removes ANYTHING that does not fall into 0-9 Dim s As String, t As String, x As Long If Len(Nz(text, "")) > 0 Then For x = 1 To Len(text) t = Mid(text, x, 1) Select Case t Case 0 To 9 s = s & t End Select Next x End If OnlyNumbers = s 'Msgbox s End Function -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Monday, 6 December 2004 1:38 PM To: AccessD Subject: A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren From vchas at artronix-solutions.com Sun Dec 5 21:00:56 2004 From: vchas at artronix-solutions.com (Vincent Pusateri) Date: Sun, 5 Dec 2004 19:00:56 -0800 Subject: [AccessD] A2003: Checking for dupe phone numbers In-Reply-To: <200412060238.iB62cQx6019393@cooper.uws.edu.au> Message-ID: <6E432F60D2D64B4EA6367EB572C347.MAI@freightware.net> Hi Darren, Here's a function that'll help. Function NumbersOnly(T) 'VChas remove characters/spaces and just give us the numbers Dim K, Result If IsNull(T) Then NumbersOnly = Null Exit Function End If For K = 1 To Len(T) If Asc(Mid(T, K, 1)) >= 48 And Asc(Mid(T, K, 1)) <= 57 Then Result = Result & Mid(T, K, 1) End If Next If Len(Result) = 0 Then NumbersOnly = Null Else NumbersOnly = Result End If End Function Vinnie Chas -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Sunday, December 05, 2004 6:38 PM To: AccessD Subject: [AccessD] A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Dec 5 23:14:52 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 05 Dec 2004 21:14:52 -0800 Subject: [AccessD] FW: A2003: Checking for dupe phone numbers In-Reply-To: <200412060253.iB62r8x6001258@cooper.uws.edu.au> Message-ID: Hi Darren: Or better yet, try the following function. This can be used to remove any character from a string or called from a query. Public Function StripInvalidCharacter(ChkText As String, strInvalidCharacter As String) as String Dim lbPosition As Integer Dim lbLength As Integer lbLength = Len(ChkText) lbPosition = InStr(1, ChkText, strInvalidCharacter) Do While lbPosition > 0 And lbPosition < lbLength ChkText = Left(ChkText, lbPosition - 1) & Mid(ChkText, lbPosition + 1) lbPosition = InStr(lbPosition + 2, ChkText, strInvalidCharacter) Loop StripInvalidCharacter = ChkText End Function HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Sunday, December 05, 2004 6:53 PM To: AccessD Subject: [AccessD] FW: A2003: Checking for dupe phone numbers Never mind - found a function to do it Dunno who wrote (wasn't me:-)) Apologies to whoever did - Can't give 'em credit Function OnlyNumbers(text) As String 'Removes ANYTHING that does not fall into 0-9 Dim s As String, t As String, x As Long If Len(Nz(text, "")) > 0 Then For x = 1 To Len(text) t = Mid(text, x, 1) Select Case t Case 0 To 9 s = s & t End Select Next x End If OnlyNumbers = s 'Msgbox s End Function -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Monday, 6 December 2004 1:38 PM To: AccessD Subject: A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Mon Dec 6 10:14:12 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Mon, 6 Dec 2004 11:14:12 -0500 Subject: [AccessD] Migration from XP to 2003 Message-ID: The answer is yes, but the question is... "is all that necessary"? By that, I mean, I know that the dbs that I have created within the department are very straightforward. Could the differences in Access 2003 affect a standard db that significantly as to require thorough testing? Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Friday, December 03, 2004 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 Mark, Can you at least map multiple drives and simulate going across network? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, December 03, 2004 5:40 AM To: [AccessD] Subject: [AccessD] Migration from XP to 2003 Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 6 10:40:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Dec 2004 08:40:48 -0800 Subject: [AccessD] Migration from XP to 2003 Message-ID: >From XP? No. From 97, definitely. Charlotte Foust -----Original Message----- From: Mitsules, Mark [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 06, 2004 8:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 The answer is yes, but the question is... "is all that necessary"? By that, I mean, I know that the dbs that I have created within the department are very straightforward. Could the differences in Access 2003 affect a standard db that significantly as to require thorough testing? Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Friday, December 03, 2004 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 Mark, Can you at least map multiple drives and simulate going across network? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, December 03, 2004 5:40 AM To: [AccessD] Subject: [AccessD] Migration from XP to 2003 Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Mon Dec 6 12:27:25 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Mon, 6 Dec 2004 13:27:25 -0500 Subject: [AccessD] Migration from XP to 2003 Message-ID: Thank you. That's what I was hoping to hear. I felt this group would give me a more accurate picture than the "doom & gloom posters". Mark -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 06, 2004 11:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Migration from XP to 2003 >From XP? No. From 97, definitely. Charlotte Foust -----Original Message----- From: Mitsules, Mark [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 06, 2004 8:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 The answer is yes, but the question is... "is all that necessary"? By that, I mean, I know that the dbs that I have created within the department are very straightforward. Could the differences in Access 2003 affect a standard db that significantly as to require thorough testing? Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Friday, December 03, 2004 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 Mark, Can you at least map multiple drives and simulate going across network? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, December 03, 2004 5:40 AM To: [AccessD] Subject: [AccessD] Migration from XP to 2003 Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Dec 6 17:36:36 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 10:36:36 +1100 Subject: [AccessD] FW: A2003: Checking for dupe phone numbers In-Reply-To: Message-ID: <200412062336.iB6Naqx6027982@cooper.uws.edu.au> Hi Jim Very nice - I like the flexibility to dictate the string to remove I have filed this one away too :-)))) Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, 6 December 2004 4:15 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2003: Checking for dupe phone numbers Hi Darren: Or better yet, try the following function. This can be used to remove any character from a string or called from a query. Public Function StripInvalidCharacter(ChkText As String, strInvalidCharacter As String) as String Dim lbPosition As Integer Dim lbLength As Integer lbLength = Len(ChkText) lbPosition = InStr(1, ChkText, strInvalidCharacter) Do While lbPosition > 0 And lbPosition < lbLength ChkText = Left(ChkText, lbPosition - 1) & Mid(ChkText, lbPosition + 1) lbPosition = InStr(lbPosition + 2, ChkText, strInvalidCharacter) Loop StripInvalidCharacter = ChkText End Function HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Sunday, December 05, 2004 6:53 PM To: AccessD Subject: [AccessD] FW: A2003: Checking for dupe phone numbers Never mind - found a function to do it Dunno who wrote (wasn't me:-)) Apologies to whoever did - Can't give 'em credit Function OnlyNumbers(text) As String 'Removes ANYTHING that does not fall into 0-9 Dim s As String, t As String, x As Long If Len(Nz(text, "")) > 0 Then For x = 1 To Len(text) t = Mid(text, x, 1) Select Case t Case 0 To 9 s = s & t End Select Next x End If OnlyNumbers = s 'Msgbox s End Function -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Monday, 6 December 2004 1:38 PM To: AccessD Subject: A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Dec 6 17:36:36 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 10:36:36 +1100 Subject: [AccessD] A2003: Checking for dupe phone numbers In-Reply-To: <6E432F60D2D64B4EA6367EB572C347.MAI@freightware.net> Message-ID: <200412062336.iB6Naqx7027982@cooper.uws.edu.au> Thanks Heaps Vinnie I have filed this one away :-)) see ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Vincent Pusateri Sent: Monday, 6 December 2004 2:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Checking for dupe phone numbers Hi Darren, Here's a function that'll help. Function NumbersOnly(T) 'VChas remove characters/spaces and just give us the numbers Dim K, Result If IsNull(T) Then NumbersOnly = Null Exit Function End If For K = 1 To Len(T) If Asc(Mid(T, K, 1)) >= 48 And Asc(Mid(T, K, 1)) <= 57 Then Result = Result & Mid(T, K, 1) End If Next If Len(Result) = 0 Then NumbersOnly = Null Else NumbersOnly = Result End If End Function Vinnie Chas -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Sunday, December 05, 2004 6:38 PM To: AccessD Subject: [AccessD] A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DorisH3 at aol.com Mon Dec 6 18:42:47 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Mon, 6 Dec 2004 19:42:47 EST Subject: [AccessD] Add new data to existing table Message-ID: <42.5de80b6b.2ee65687@aol.com> I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the new Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris From davide at dalyn.co.nz Mon Dec 6 21:17:19 2004 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 07 Dec 2004 16:17:19 +1300 Subject: [AccessD] Bar Code Readers Message-ID: <6.2.0.14.0.20041207160648.03279eb0@mail.dalyn.co.nz> I have a client that wants to have their client numbers printed in bar code format on their client statements so that a bar code reader can be used to scan the bar code and match it with the customer in the database (this is for processing payments). Does anyone have any pointers on what to do? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 From jwcolby at colbyconsulting.com Mon Dec 6 21:28:13 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 06 Dec 2004 22:28:13 -0500 Subject: [AccessD] Access 2003 security warning Message-ID: <005501c4dc0c$ccddc220$e8dafea9@ColbyM6805> How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From d.dick at uws.edu.au Mon Dec 6 22:24:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 15:24:56 +1100 Subject: [AccessD] Access 2003 security warning In-Reply-To: <005501c4dc0c$ccddc220$e8dafea9@ColbyM6805> Message-ID: <200412070425.iB74PBx6020231@cooper.uws.edu.au> Hi John >From any dB window Click on TOOLS|MACRO|Security And choose the bottom option/radio button (LOW) and ignore any messages about killing, raping etc See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 7 December 2004 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2003 security warning How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Dec 6 22:33:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 15:33:42 +1100 Subject: [AccessD] Bar Code Readers In-Reply-To: <6.2.0.14.0.20041207160648.03279eb0@mail.dalyn.co.nz> Message-ID: <200412070433.iB74Xvx6027756@cooper.uws.edu.au> Hi David Barcodes are literally a world within a world There a zillions of different sorts - doing different jobs - designed for different applications I assume you would like the barcode to look and behave similar to the The common ones that we mostly see on ID cards, Library cards, Shampoo bottles and general groceries, yes? One of the most common is a barcode called 3 of 9 (No it's not a star Trek Character) The easiest ones to manage are the ones that are True Type Fonts and can Simply be added to your Font folder and accessed from the Font Combo on most Formatting toolbars Have a look at http://www.barcodingfonts.com/bar39.htm?key=Gcode39 http://www.squaregear.net/fonts/free3of9.shtml The one I use in most places is.... http://ukdownloads.net/featured/idautomation/ I googled up this... http://www.google.com.au/search?hl=en&q=%22Automation%22+%2B+barcode&meta= If you are interested in a (not so quick) explanation go to http://www.spatula.net/proc/barcode/code39.src Hope this helps See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, 7 December 2004 2:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] Bar Code Readers I have a client that wants to have their client numbers printed in bar code format on their client statements so that a bar code reader can be used to scan the bar code and match it with the customer in the database (this is for processing payments). Does anyone have any pointers on what to do? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ldoering at symphonyinfo.com Mon Dec 6 22:49:16 2004 From: ldoering at symphonyinfo.com (Liz Doering) Date: Mon, 6 Dec 2004 22:49:16 -0600 Subject: [AccessD] Add new data to existing table Message-ID: <200412062249.AA1075970170@symphonyinfo.com> Doris, I'm assuming that you have a combo box for your zip codes. If you paste this code into the not in list event of your combo box, you should be pretty close. Of course, I'm guessing on field names and layout of your ZipCode table; you will have to make changes to those, I'm sure. I'm checking mail at 11 p.m. only because of not being in the office tomorrow. But if you have more questions, don't hesitate to ask. Good luck! Liz Private Sub cboZip_NotInList(NewData As String, Response As Integer) On Error GoTo eh Dim rs As Recordset Dim db As Database Dim strState As String Dim strCity As String ' Prompt user to verify they wish to add new value. If MsgBox(NewData & " is not in list. Add it?", vbOKCancel) = vbOK Then ' suppress the error about your item not being in the list Response = acDataErrAdded 'collect the rest of the data you need strState = InputBox("Enter 2-letter State Abbreviation", "State") strCity = InputBox("Enter City Name", "City") 'write it to your table Set db = CurrentDb Set rs = db.OpenRecordset("ZipList") With rs .AddNew !zip = NewData !city = strCity !state = strState .Update End With Else ' If user chooses Cancel, undo changes. Response = acDataErrContinue Me.cboZip.Undo End If ex: Set rs = Nothing 'close recordset and database Set db = Nothing Exit Sub eh: MsgBox Err.Description, , Err.Number Resume ex End Sub ---------- Original Message ---------------------------------- From: DorisH3 at aol.com Reply-To: Access Developers discussion and problem solving Date: Mon, 6 Dec 2004 19:42:47 EST I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the new Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Thanks, Liz Doering Symphony Information Services www.symphonyinfo.com 763.391.7400 -- From d.dick at uws.edu.au Mon Dec 6 22:49:16 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 15:49:16 +1100 Subject: [AccessD] Add new data to existing table In-Reply-To: <42.5de80b6b.2ee65687@aol.com> Message-ID: <200412070449.iB74nVx6012148@cooper.uws.edu.au> Hi Doris There are a few ways The zip code control on your form - is a Text Box or a combo box Anyway the basics of it are...... Test For Existence of zipcode (You are doing that already) If it exists - then Cool carry on as normal If it does not then force the User to enter the Details of the new Zipcode, State and City Have a message box come up and say something like That postcode is not in the list or system or database or whatever Please Add the details for it on the next screen When they click OK - Have a little form 'popup' with it's Modal property set to TRUE Bind this form to the ZipCodes Table and have each of the Text boxes on this 'popup' form, bound to the relevant fields in the Postcodes table. EG ZipCode, State and City Have the popup form go to a brand new fresh blank record when it opens. And then automatically populate this 'new postcode' control in the popup form with the Zipcode that can't be found by having some code like this in the OnLoad Event of the popup form docmd.GoToRecord ,,acNewRec Me.txtPostCode.defaultvalue = Forms!theFormThatCantFindThePostCode!txtWhateverthePostCodeFieldIs (Replace theFormThatCantFindThePostCode with the real name of the Cutomers form that is doing the ZipCode checking) (Replace txtWhateverthePostCodeFieldIs with the real name of the Zip Code control on the form above) Hope this makes sense It's more complex typing it than it is doing it :-))) See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: Tuesday, 7 December 2004 11:43 AM To: accessd at databaseadvisors.com Subject: [AccessD] Add new data to existing table I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the new Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Dec 6 22:49:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 06 Dec 2004 23:49:30 -0500 Subject: [AccessD] Access 2003 security warning In-Reply-To: <200412070425.iB74PBx6020231@cooper.uws.edu.au> Message-ID: <005601c4dc18$23b24cf0$e8dafea9@ColbyM6805> Whew. I was starting to shake in my boots there. It's bad enough that Microsoft would threaten me with murder death kill, but to phrase it such that it was almost impossible to determine how to get around it... Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, December 06, 2004 11:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2003 security warning Hi John >From any dB window Click on TOOLS|MACRO|Security And choose the bottom option/radio button (LOW) and ignore any messages about killing, raping etc See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 7 December 2004 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2003 security warning How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Dec 6 23:01:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 16:01:42 +1100 Subject: [AccessD] Access 2003 security warning In-Reply-To: <005601c4dc18$23b24cf0$e8dafea9@ColbyM6805> Message-ID: <200412070501.iB751vx6024011@cooper.uws.edu.au> It's real PITA Especially for remote sites with, shall we say,....'timid' users :-)) Talking them through anything is problem enough - but when they see those messages With threats of infanticide, sacrificing lambs and oxen, mortgage repossessions etc - it becomes difficult I have heard tell of a code option (Which seems to defeat the purpose of having it there at all) But I will investigate... See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 7 December 2004 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2003 security warning Whew. I was starting to shake in my boots there. It's bad enough that Microsoft would threaten me with murder death kill, but to phrase it such that it was almost impossible to determine how to get around it... Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, December 06, 2004 11:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2003 security warning Hi John >From any dB window Click on TOOLS|MACRO|Security And choose the bottom option/radio button (LOW) and ignore any messages about killing, raping etc See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 7 December 2004 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2003 security warning How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Dec 7 02:02:54 2004 From: john at winhaven.net (John Bartow) Date: Tue, 7 Dec 2004 02:02:54 -0600 Subject: [AccessD] Access 2003 security warning In-Reply-To: <005501c4dc0c$ccddc220$e8dafea9@ColbyM6805> Message-ID: Hi John, I just went through this too, what an annoyance! And do you think I could remember how to do this two days in a row?! Tools, Macro security. Which of course I never think of looking at because I just do don't macros. The other issue I've run into with A2k3 is with graphics on the reports. It would seem that the new and improved graphics tools in O2k3 don't work well with access reports developed in A2k or AXP. Anyone else had any issues? It would appear that if a PC doesn't have MS Photo Editor installed the graphics show the file name instead of the graphic. Annoyances... John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, December 06, 2004 9:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2003 security warning How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Dec 7 02:18:44 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 07 Dec 2004 00:18:44 -0800 Subject: [AccessD] Bar Code Readers References: <6.2.0.14.0.20041207160648.03279eb0@mail.dalyn.co.nz> Message-ID: <41B56764.2080003@shaw.ca> Here is another good site on barcode info http://www.taltech.com Here is one on the "compleat barcode" with a hundreds of links. http://www.adams1.com/ David Emerson wrote: > I have a client that wants to have their client numbers printed in bar > code format on their client statements so that a bar code reader can > be used to scan the bar code and match it with the customer in the > database (this is for processing payments). > > Does anyone have any pointers on what to do? > > Regards > > David Emerson > Dalyn Software Ltd > 25 Cunliffe St, Churton Park > Wellington, New Zealand > Ph/Fax (04) 478-7456 > Mobile 027-280-9348 -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Dec 7 02:27:42 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 07 Dec 2004 00:27:42 -0800 Subject: [AccessD] Access 2003 security warning References: <005501c4dc0c$ccddc220$e8dafea9@ColbyM6805> Message-ID: <41B5697E.1080301@shaw.ca> A couple of other ways around this. You don't want to create a certificate and place in user certificate cache. It is very messy with makecert.exe Get your network guy to change the following registry settings of the following key, should help you change the security level of the macro in Access 2003. He should be able to change this globally across the network for each client PC, there is even a way to do this from Access VBA code using WMI with proper network permissions. HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level If the value is 1, then the macro security of Access 2003 is set to low. If the value is 2, then the macro security of Access 2003 is set to medium. If the value is 3, then the macro security of Access 2003 is set to high. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. Or You could also put this vbs code in a file to execute in a user's shortcut. Just create .vbs file and add to desktop shortcut. You can create a VB script file with this code and start your app using this from a shortcut. (Code is from an MS MSDN article) http://support.microsoft.com/?kbid=235422 This will have problems if vbscript disabled or you are using mdw security add to file MyMDB.vbs Const cDatabaseToOpen = "C:\.mdb" On Error Resume Next Dim AcApp Set AcApp = CreateObject("Access.Application.11") If AcApp.Version >= 11 Then AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow End If AcApp.Visible = True AcApp.OpenCurrentDatabase cDatabaseToOpen If AcApp.CurrentProject.FullName <> "" Then AcApp.UserControl = True Else AcApp.Quit MsgBox "Failed to open '" & cDatabaseToOpen & "'." End If John W. Colby wrote: >How do I turn off Access silly security warning ("you are about to open a >file that can eat your mother, rape your women and kill your children, are >you SURE you don't want to download..." > >Why do we have to go through this stuff? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Tue Dec 7 04:59:03 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 7 Dec 2004 11:59:03 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041207115901.2D8EF260BFD@smtp.nildram.co.uk> Ok, here's the thing. I want to make a few forms lightweight which currently have just a line or two in modules. A few have nothing more than a line which dynamically sets the form's caption. So I wrote a little function like this: Function SetCaption(frm As Form, strCaption As String) frm.Caption = strCaption End Function and then changed my form's OnOpen from being an Event Procedure to : =SetCaption([Screen].[ActiveForm],"x") (The "x" is just for testing. The real call would have something a bit more dynamic, like the result of a function call.) The thing is that it errors because it can't resolve [Screen].[ActiveForm] at that point. Ok, methinks, I'll move the call. But I can't find where to put it. All of the following fail: On Load On GotFocus of the first control On Current The only success I've had is putting a timer interval of 5 and putting the call in OnTimer, but I don't like that much as you can imagine. If I force a call to it once the form's up then there's no problem (eg a command button), but that's not a lot of use to me either. So I know the function is fine, but has anyone got an answer as to where I might get this to run from? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From pedro at plex.nl Tue Dec 7 15:08:38 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 07 Dec 2004 15:08:38 (MET) Subject: [AccessD] import tekst wizard A2003 Message-ID: <200412071408.iB7E8cCW009905@mailhostC.plex.net> Hello Group, in the hospital were i am working we changed from A2k to A2003. The import tekst wizard doesn't work properly. When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. Is this a general problem and is there a solution. Pedro Janssen From DorisH3 at aol.com Tue Dec 7 08:15:44 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Tue, 7 Dec 2004 09:15:44 EST Subject: [AccessD] Help! Message-ID: <97.541a8faa.2ee71510@aol.com> I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When I am entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris From mikedorism at adelphia.net Tue Dec 7 08:20:19 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 7 Dec 2004 09:20:19 -0500 Subject: [AccessD] Set form's Caption without code In-Reply-To: <20041207115901.2D8EF260BFD@smtp.nildram.co.uk> Message-ID: <000201c4dc67$e36b9fc0$0b08a845@hargrove.internal> Okay... This exercise seems a little silly to me because it doesn't seem to make sense to create three lines of code somewhere else to do something that only takes one line. Particularly when you have to pass in the caption you want as part of the process. If you insist on doing this, try just passing Me (the form object) and the caption. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, December 07, 2004 5:59 AM To: Dba Subject: [AccessD] Set form's Caption without code Ok, here's the thing. I want to make a few forms lightweight which currently have just a line or two in modules. A few have nothing more than a line which dynamically sets the form's caption. So I wrote a little function like this: Function SetCaption(frm As Form, strCaption As String) frm.Caption = strCaption End Function and then changed my form's OnOpen from being an Event Procedure to : =SetCaption([Screen].[ActiveForm],"x") (The "x" is just for testing. The real call would have something a bit more dynamic, like the result of a function call.) The thing is that it errors because it can't resolve [Screen].[ActiveForm] at that point. Ok, methinks, I'll move the call. But I can't find where to put it. All of the following fail: On Load On GotFocus of the first control On Current The only success I've had is putting a timer interval of 5 and putting the call in OnTimer, but I don't like that much as you can imagine. If I force a call to it once the form's up then there's no problem (eg a command button), but that's not a lot of use to me either. So I know the function is fine, but has anyone got an answer as to where I might get this to run from? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue Dec 7 08:35:55 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 7 Dec 2004 09:35:55 -0500 Subject: [AccessD] Help! In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A54A19@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBB0B@ADGSERVER> I would probably tell the user in a message box that the zip code is not in the database and ask if they would like to add it. If so, open a new form that allows the user to add a city and state for the zip code entered. Then after saving the new data, set the fields on the original form to the values entered for that zip code. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: Tuesday, December 07, 2004 9:16 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help! I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When I am entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Dec 7 07:35:47 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 7 Dec 2004 14:35:47 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041207143545.0B05825DCDF@smtp.nildram.co.uk> Sorry Doris, but it's not silly. This is why: 1.If you have, say, 20 forms which all set the caption dynamically and have no other code then you can lose 20 modules (CBF modules that is) out of your MDB and have 20 lightweight forms that previously weren't. The function they all call can be in a module with other code so it doesn't even cost a module there. 2.As I tried to explain in my original post the real-life usage would not be to pass the caption as text (that WOULD be silly) but to pass the result of a function call, in order to set the form's caption to, say, a customer name or something similar. So a real application of this might be: =SetCaption([Screen].[ActiveForm], fnProduct()) 3.You can't pass Me as a reference to the current form when you're using a function call rather than an Event Procedure. I stress again that I'm trying to lose code, so all that's in the Event is: =SetCaption([Screen].[ActiveForm],"x") What is decidedly not there is [Event Procedure] leading to code. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Set form's Caption without code Date: 07/12/04 14:19 > > Okay... This exercise seems a little silly to me because it doesn't seem to > make sense to create three lines of code somewhere else to do something that > only takes one line. Particularly when you have to pass in the caption you > want as part of the process. > > If you insist on doing this, try just passing Me (the form object) and the > caption. > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 5:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > > Ok, here's the thing. I want to make a few forms lightweight which currently > have just a line or two in modules. A few have nothing more than a line > which dynamically sets the form's caption. So I wrote a little function like > this: > > Function SetCaption(frm As Form, strCaption As String) frm.Caption = > strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have something a bit more > dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve [Screen].[ActiveForm] > at that point. Ok, methinks, I'll move the call. But I can't find where to > put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 and putting the > call in OnTimer, but I don't like that much as you can imagine. If I force a > call to it once the form's up then there's no problem (eg a command button), > but that's not a lot of use to me either. So I know the function is fine, > but has anyone got an answer as to where I might get this to run from? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Tue Dec 7 08:57:41 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Dec 2004 15:57:41 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: Hi Andy At the OnOpen event, you could try this: =SetCaption(Forms([Forms].[Count]-1);"SomeCaption") /gustav From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, December 07, 2004 5:59 AM To: Dba Subject: [AccessD] Set form's Caption without code Ok, here's the thing. I want to make a few forms lightweight which currently have just a line or two in modules. A few have nothing more than a line which dynamically sets the form's caption. So I wrote a little function like this: Function SetCaption(frm As Form, strCaption As String) frm.Caption = strCaption End Function and then changed my form's OnOpen from being an Event Procedure to : =SetCaption([Screen].[ActiveForm],"x") (The "x" is just for testing. The real call would have something a bit more dynamic, like the result of a function call.) The thing is that it errors because it can't resolve [Screen].[ActiveForm] at that point. Ok, methinks, I'll move the call. But I can't find where to put it. All of the following fail: On Load On GotFocus of the first control On Current The only success I've had is putting a timer interval of 5 and putting the call in OnTimer, but I don't like that much as you can imagine. If I force a call to it once the form's up then there's no problem (eg a command button), but that's not a lot of use to me either. So I know the function is fine, but has anyone got an answer as to where I might get this to run from? -- Andy Lacey http://www.minstersystems.co.uk From andy at minstersystems.co.uk Tue Dec 7 08:21:48 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 7 Dec 2004 15:21:48 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041207152146.479A2256AC5@smtp.nildram.co.uk> Genius. Sheer genius. Works like a dream. Thanks Gustav. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Set form's Caption without code Date: 07/12/04 15:00 > > Hi Andy > > At the OnOpen event, you could try this: > > =SetCaption(Forms([Forms].[Count]-1);"SomeCaption") > > /gustav > > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 5:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > > Ok, here's the thing. I want to make a few forms lightweight which > currently > have just a line or two in modules. A few have nothing more than a > line > which dynamically sets the form's caption. So I wrote a little function > like > this: > > Function SetCaption(frm As Form, strCaption As String) frm.Caption = > strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have something a bit > more > dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve > [Screen].[ActiveForm] > at that point. Ok, methinks, I'll move the call. But I can't find where > to > put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 and putting > the > call in OnTimer, but I don't like that much as you can imagine. If I > force a > call to it once the form's up then there's no problem (eg a command > button), > but that's not a lot of use to me either. So I know the function is > fine, > but has anyone got an answer as to where I might get this to run from? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From markamatte at hotmail.com Tue Dec 7 09:26:28 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 07 Dec 2004 15:26:28 +0000 Subject: [AccessD] Set form's Caption without code In-Reply-To: Message-ID: Not sure if its the same...or if your against code all together...but I used this to change the AppTitle.. Private Sub Form_Activate() Dim intX As Integer intX = AddAppProperty("AppTitle", dbText, Me.Caption) RefreshTitleBar End Sub Hope it helps... Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: RE: [AccessD] Set form's Caption without code >Date: Tue, 07 Dec 2004 15:57:41 +0100 > >Hi Andy > >At the OnOpen event, you could try this: > >=SetCaption(Forms([Forms].[Count]-1);"SomeCaption") > >/gustav > >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey >Sent: Tuesday, December 07, 2004 5:59 AM >To: Dba >Subject: [AccessD] Set form's Caption without code > > >Ok, here's the thing. I want to make a few forms lightweight which >currently >have just a line or two in modules. A few have nothing more than a >line >which dynamically sets the form's caption. So I wrote a little function >like >this: > >Function SetCaption(frm As Form, strCaption As String) frm.Caption = >strCaption End Function > >and then changed my form's OnOpen from being an Event Procedure to : > >=SetCaption([Screen].[ActiveForm],"x") > >(The "x" is just for testing. The real call would have something a bit >more >dynamic, like the result of a function call.) > >The thing is that it errors because it can't resolve >[Screen].[ActiveForm] >at that point. Ok, methinks, I'll move the call. But I can't find where >to >put it. All of the following fail: > >On Load >On GotFocus of the first control >On Current > >The only success I've had is putting a timer interval of 5 and putting >the >call in OnTimer, but I don't like that much as you can imagine. If I >force a >call to it once the form's up then there's no problem (eg a command >button), >but that's not a lot of use to me either. So I know the function is >fine, >but has anyone got an answer as to where I might get this to run from? > >-- >Andy Lacey >http://www.minstersystems.co.uk > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Dec 7 11:05:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 07 Dec 2004 09:05:57 -0800 Subject: [AccessD] import tekst wizard A2003 References: <200412071408.iB7E8cCW009905@mailhostC.plex.net> Message-ID: <41B5E2F5.604@shaw.ca> You need the Office 2003 SP1 or the March 2004 Access 2003 hotfix I think they rolled the hotfixes into the SP1 Description of the Access 2003 hotfix package: March 17, 2004 http://support.microsoft.com/kb/837003 Issues that are fixed in Access 2003 by Office 2003 Service Pack 1 http://support.microsoft.com/default.aspx?kbid=872834 " When you use the Import Spreadsheet Wizard in Microsoft Access or the Import Text Wizard in Microsoft Access to import a Microsoft Excel file or a text file, you can modify the field information for only the first field that is on the fourth page of the Import Spreadsheet Wizard or the Import Text Wizard.ReasonThe problem is related to both the Import Spreadsheet Wizard and the Import Text Wizard. pedro at plex.nl wrote: >Hello Group, > >in the hospital were i am working we changed from A2k to A2003. >The import tekst wizard doesn't work properly. >When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. > >Is this a general problem and is there a solution. > >Pedro Janssen > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue Dec 7 11:37:33 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Dec 2004 18:37:33 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: Thanks Andy! By second thought, this might be what you had in mind. It seems to work as well: =SetCaption(Forms([Form].[Name]);"See me run!") /gustav >>> andy at minstersystems.co.uk 07-12-2004 15:21:48 >>> Genius. Sheer genius. Works like a dream. Thanks Gustav. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Set form's Caption without code Date: 07/12/04 15:00 > Hi Andy > > At the OnOpen event, you could try this: > > =SetCaption(Forms([Forms].[Count]-1);"SomeCaption") > > /gustav > > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 5:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > > Ok, here's the thing. I want to make a few forms lightweight which > currently > have just a line or two in modules. A few have nothing more than a > line > which dynamically sets the form's caption. So I wrote a little function > like this: > > Function SetCaption(frm As Form, strCaption As String) frm.Caption = > strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have something a bit > more dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve > [Screen].[ActiveForm] > at that point. Ok, methinks, I'll move the call. But I can't find where > to put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 and putting > the > call in OnTimer, but I don't like that much as you can imagine. If I > force a > call to it once the form's up then there's no problem (eg a command > button), > but that's not a lot of use to me either. So I know the function is > fine, > but has anyone got an answer as to where I might get this to run from? From andy at minstersystems.co.uk Tue Dec 7 12:25:13 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 7 Dec 2004 18:25:13 -0000 Subject: [AccessD] Help! In-Reply-To: <97.541a8faa.2ee71510@aol.com> Message-ID: <000101c4dc8a$1814f240$b274d0d5@minster33c3r25> Hi Doris, First, welcome to the list. Do you realise you posted the same question twice with different subjects? The one under "Add new data to existing table" had replies earlier today. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > DorisH3 at aol.com > Sent: 07 December 2004 14:16 > To: accessd at databaseadvisors.com > Subject: [AccessD] Help! > > > I want to apologize ahead of time for my ignorance of Access > but I am new to > this and would appreciate any help that would come my way. > > I have a Customer entry form whereby I am entering customer > first name, > customer last name, address, zip code, City, State and > remarks. I also have a > ZipCode table where I have Zip Code, City, State fields. > When I am entering data > into the Customer Entry Form the Zip Code field goes out and > looks up the City > and State and returns the value from the table on exit from > the Zip Code > field. My question is this: when a value is not found in > the Zip code table that > matches the entered zip code, how do I from the Customer > entry form add the > Zip code, City and State to the Zip Code table? > > Again, I appreciate any help you can extend me. > > Doris > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From dmcafee at pacbell.net Tue Dec 7 13:13:34 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 7 Dec 2004 11:13:34 -0800 Subject: [AccessD] Help! In-Reply-To: <000101c4dc8a$1814f240$b274d0d5@minster33c3r25> Message-ID: I have a older sample that does this. I'll send it to you off the list. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Tuesday, December 07, 2004 10:25 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help! Hi Doris, First, welcome to the list. Do you realise you posted the same question twice with different subjects? The one under "Add new data to existing table" had replies earlier today. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > DorisH3 at aol.com > Sent: 07 December 2004 14:16 > To: accessd at databaseadvisors.com > Subject: [AccessD] Help! > > > I want to apologize ahead of time for my ignorance of Access > but I am new to > this and would appreciate any help that would come my way. > > I have a Customer entry form whereby I am entering customer > first name, > customer last name, address, zip code, City, State and > remarks. I also have a > ZipCode table where I have Zip Code, City, State fields. > When I am entering data > into the Customer Entry Form the Zip Code field goes out and > looks up the City > and State and returns the value from the table on exit from > the Zip Code > field. My question is this: when a value is not found in > the Zip code table that > matches the entered zip code, how do I from the Customer > entry form add the > Zip code, City and State to the Zip Code table? > > Again, I appreciate any help you can extend me. > > Doris > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Tue Dec 7 14:54:46 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Tue, 7 Dec 2004 14:54:46 -0600 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB048@redstone819.ad.redstone.army.mil> Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The Microsoft? .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 7 15:23:59 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 7 Dec 2004 13:23:59 -0800 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Message-ID: As far as I know the .Net framework SDK is for creating framework apps, not VS.Net apps. In other words, it's for customizing the framework. You still need at least VSTO or VB.Net Standard (which comes with VSTO) for the rest. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The Microsoft(r) .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Dec 7 15:36:27 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 7 Dec 2004 16:36:27 -0500 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A28DA@xlivmbx21.aig.com> The SDK download is indeed a complete package with which you can develop .NET applications, but though you get comprehensive documentation, there is no IDE. You will be using the command line compiler for C# and you will have to provide your own editor. Not too big a burden considering there are at least three free IDE's out there: Sharp Develop. http://www.icsharpcode.net/OpenSource/SD/ Mono. http://www.mono-project.com/about/index.html and Borland C# Builder (free for personal use). http://www.borland.com/products/downloads/download_cbuilder.html Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Tuesday, December 07, 2004 3:55 PM > To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com > Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy > "Microsoft Visual Basic.NET Standard 2003 ..." > > Richard: > > I do not mean to question what you're telling me, but I want to make > absolutely sure that we're both on the same wavelength. I understand > that the .NET "Framework" simply provides the .NET runtime environment, > (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, > and VB.NET - among others). > > What I am specifically asking about is the information at this: > > http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 > 070-9f41-a333c6b9181d&displaylang=en > > Microsoft download site, where the following descriptive text appears > verbatim: > > Quote: > > .NET Framework SDK Version 1.1 > > The Microsoft? .NET Framework Software Development Kit (SDK) version 1.1 > includes everything developers need to write, build, test, and deploy .NET > Framework applications - documentation, samples, and command-line tools > and compilers. > > End Quote: > > Of course, trying to decipher Microsoft marketing hyperbole can be > something of an exercise in futility, but when you read this statement > word-for-word, they do use the words "... everything developers need ..." > (among others) and they ARE describing a "Software Developer Kit" (SDK) > product. Also, the SDK download is approximately 106 Megabytes - which is > quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by > itself) is just a tad over 20 Megabytes. (I know this for a fact because > the .NET Framework [download] appears as an "optional download" when I run > Windows Update on my home computer. > > My question boils down to this: Are you SURE (really sure) that the > "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" > [download] is merely the .NET runtime environment? (If that is all it is, > what is the extra 86 Megabytes and why is Microsoft using terms like > "command-line tools and compilers" as well as "write, build, test, and > deploy .NET Framework applications ..." in their description of the > product? > > If this SDK can be used as a relatively inexpensive (or free) "learning > tool" to help me learn (and write) VB.NET code, then I think it would be > well worth the bother of downloading to my home computer - even on a slow > dial-up connection! > > I'm going to cross post this to the AccessD List in the hopes that > Charlotte Foust and John Colby will see it. > > Alan C. Lawhon > > > -----Original Message----- > From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] > Sent: Tuesday, December 07, 2004 11:32 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic.NET Standard 2003 ..." > > > Hi > The framework simply provides the dotnet runtime environment. To > develop you need Visual Studio .NET 2003 "Professional" Edition. I've > seen recently for about $700 and this includes windows 2003 and sql 2000 > (developer/test editions) - not bad really > Richard > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: 07 December 2004 17:07 > To: dba-vb at databaseadvisors.com; accessd at shaw.ca > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic.NET Standard 2003 ..." > > Jim: > > Thanks for the .NET links & info - which I am now diligently research- > ing. I need a bit of clarification concerning one of the links you > provided. First, some background ... > > We are in the process of coming up with a recommendation for our > customer > concerning what software (and development tools) should be purchased in > order to facilitate conversion of our environmental database application > to a "web enabled" environmental database application. I also have a > secondary goal of obtaining an "affordable" .NET integrated development > environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, > (and whatever-else .NET is required), on my home computer. (I have a > feeling I can learn more at home versus all the constant "distractions" > and interruptions here at work ...) > > I have visited the link you provided to Microsoft's download site for > the (free?) ".NET Framework SDK Version 1.1" IDE. According to info > at this MS site, the 106 MB download contains "everything developers > need to write, build, test, and deploy .NET Framework applications - > documentation, samples, and command-line tools and compilers." I > presume this means that this download includes the VB.NET compiler, > ADO.NET, ASP.NET and other .NET development tools - in other words > just about everything that is bundled with Microsoft's full-up version > of Visual Studio .NET? > > What has me scratching my head is this: I went to Microsoft's "Product > Information" page for Visual Studio .NET 2003 "Professional" Edition. > > URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= > 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr > > and the "full up" (not upgrade) version of Visual Studio .NET lists for > $1,079.00 direct purchase from Microsoft. > > So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, > (Version 1.1) "free" at one of their download sites while charging > $1,079.00 for [virtually] the same product at another Microsoft site? > Either I'm missing something here, or I'm totally confused, or > something. > > There has to be a "catch" here, because Microsoft doesn't "give away" > anything for free - or anything that is not "crippled" (or a woefully > lacking subset) of the full product. > > Have you actually downloaded (and used) the ".NET Framework SDK, > Version 1.1" product? (We are leaning toward recommending that our > customer buy a copy of the full up version of "Visual Studio .NET 2003 > Professional" edition.) > > Alan C. Lawhon > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, December 01, 2004 5:18 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic .NET Standard 2003 ..." > > > Hi Alan: > > I am currently following the same route, a little further ahead but if > you > look sharp I can be seen just up the trail a bit. Following are a few of > the > options out there. The actual portion of the .Net application suite that > generates the web code is ASP.Net but the full .Net studio has ASP.Net > incorporated: > > Here is the pointer to the Asp.Net webmatrix editor and appropriate > tutorials...and it is free. > http://www.asp.net/webmatrix/tour/section2/newconn.aspx > > Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and > it > is free. http://www.icsharpcode.net/OpenSource/SD/ > > The SDK can be downloaded from M$...and it is free. > http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 > 070- > 9f41-a333c6b9181d&displaylang=en > > Nothing like fair pricing and a good place to start. The best OS > platform to > develop the coding and testing is on an XP or 2000 server as they have > IIS > built in and applications can test immediately. > > Good luck and have fun. > > HTH > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Wednesday, December 01, 2004 2:15 PM > To: dba-VB at databaseadvisors.com > Cc: dba-AccessD at databaseadvisors.com > Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic > .NET Standard 2003 ..." > > > ... or just try to learn what I can from [VB.Net] books alone? > > Well, the "future" has finally arrived ... Here at work we have a > fairly > significant environmental database application that we have been using > (and > "tweaking") for the past five years. The application, called "EDS" - > which > stands for "Environmental Document System" - started off as a very > simple > Access 97 application. Over time, as the capabilities of the system > grew > and the need to provide client/server access was realized, the front end > migrated to Access 2000 and the back end [eventually] migrated to SQL > Server > 2000 - which is where we are now. > > Well, you know how customers are ... they are always wanting changes (or > "something new") and that is the case with our customer. EDS is > becoming > increasingly popular with users outside our immediate organization. So > popular, in fact, that our Government manager has requested that we "web > enable" EDS and make EDS accessible from a web browser - such as > Internet > Explorer. Gulp !! It didn't take too much web surfing (and research) > to > realize that "web enabling" EDS is going to be thirsty work ... > > The EDS database consists of multiple form and report objects with lots > of > event driven Visual Basic code. Most of the VBA code is attached to > command > buttons as Click_Event() procedures. (There's a lot of logic testing > and > conditional execution for business rule implementation within the VBA > code.) > > The research I have done (so far) indicates that I face a steep learning > curve when it comes to web programming. I'm already looking at "HTML & > XML > for Beginners" (book) by Michael Morrison and I have just ordered a > couple > of books on databases and VB.Net programming. (I have ordered > "Beginning > VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual > Basic > .NET for Microsoft Access Databases" by Rick Dobson.) I figure these > two > books will give me plenty to chew on - at least initially. > > The senior programmer and I have been looking on the internet for the > proper > .NET development tool. Right now it looks like we will be asking our > customer to pay for a full-up version of Visual Studio 2003 - or > whatever > contains the full "Professional" version of MS Visual Basic .NET. While > researching the various developer tool alternatives for VB.NET > programming, > I came across this page at Amazon.com's web site: > > http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 > > The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two > reasons: It's (relatively) affordable - less than a hundred dollars - > and > the "Standard" edition might be a good "learning tool" for playing > around > with VB.Net on my home computer. However, the "Standard" edition > appears to > have a number of ... uhm ... limitations. (Look at Frank Spillman's > "Roadblocks, Roadblocks" reader review in the above link.) > > I would be grateful if some of the folks on this list who have actually > done > some web programming (especially with VB.Net) could offer advice and > opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" > [web] development tool. Basically, I'm wondering if the "Standard" > edition > has enough capability to serve as a useful "learning tool" - or is it so > "crippled" that I would be better off simply reading .NET books? > > Thanks in advance ... > > Alan C. Lawhon > > > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Dec 7 15:37:39 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 7 Dec 2004 16:37:39 -0500 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A28DB@xlivmbx21.aig.com> Oops (pun intended) The Borland link should have been http://www.borland.com/products/downloads/download_csharpbuilder.html Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Tuesday, December 07, 2004 3:55 PM > To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com > Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy > "Microsoft Visual Basic.NET Standard 2003 ..." > > Richard: > > I do not mean to question what you're telling me, but I want to make > absolutely sure that we're both on the same wavelength. I understand > that the .NET "Framework" simply provides the .NET runtime environment, > (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, > and VB.NET - among others). > > What I am specifically asking about is the information at this: > > http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 > 070-9f41-a333c6b9181d&displaylang=en > > Microsoft download site, where the following descriptive text appears > verbatim: > > Quote: > > .NET Framework SDK Version 1.1 > > The Microsoft? .NET Framework Software Development Kit (SDK) version 1.1 > includes everything developers need to write, build, test, and deploy .NET > Framework applications - documentation, samples, and command-line tools > and compilers. > > End Quote: > > Of course, trying to decipher Microsoft marketing hyperbole can be > something of an exercise in futility, but when you read this statement > word-for-word, they do use the words "... everything developers need ..." > (among others) and they ARE describing a "Software Developer Kit" (SDK) > product. Also, the SDK download is approximately 106 Megabytes - which is > quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by > itself) is just a tad over 20 Megabytes. (I know this for a fact because > the .NET Framework [download] appears as an "optional download" when I run > Windows Update on my home computer. > > My question boils down to this: Are you SURE (really sure) that the > "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" > [download] is merely the .NET runtime environment? (If that is all it is, > what is the extra 86 Megabytes and why is Microsoft using terms like > "command-line tools and compilers" as well as "write, build, test, and > deploy .NET Framework applications ..." in their description of the > product? > > If this SDK can be used as a relatively inexpensive (or free) "learning > tool" to help me learn (and write) VB.NET code, then I think it would be > well worth the bother of downloading to my home computer - even on a slow > dial-up connection! > > I'm going to cross post this to the AccessD List in the hopes that > Charlotte Foust and John Colby will see it. > > Alan C. Lawhon > > > -----Original Message----- > From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] > Sent: Tuesday, December 07, 2004 11:32 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic.NET Standard 2003 ..." > > > Hi > The framework simply provides the dotnet runtime environment. To > develop you need Visual Studio .NET 2003 "Professional" Edition. I've > seen recently for about $700 and this includes windows 2003 and sql 2000 > (developer/test editions) - not bad really > Richard > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: 07 December 2004 17:07 > To: dba-vb at databaseadvisors.com; accessd at shaw.ca > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic.NET Standard 2003 ..." > > Jim: > > Thanks for the .NET links & info - which I am now diligently research- > ing. I need a bit of clarification concerning one of the links you > provided. First, some background ... > > We are in the process of coming up with a recommendation for our > customer > concerning what software (and development tools) should be purchased in > order to facilitate conversion of our environmental database application > to a "web enabled" environmental database application. I also have a > secondary goal of obtaining an "affordable" .NET integrated development > environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, > (and whatever-else .NET is required), on my home computer. (I have a > feeling I can learn more at home versus all the constant "distractions" > and interruptions here at work ...) > > I have visited the link you provided to Microsoft's download site for > the (free?) ".NET Framework SDK Version 1.1" IDE. According to info > at this MS site, the 106 MB download contains "everything developers > need to write, build, test, and deploy .NET Framework applications - > documentation, samples, and command-line tools and compilers." I > presume this means that this download includes the VB.NET compiler, > ADO.NET, ASP.NET and other .NET development tools - in other words > just about everything that is bundled with Microsoft's full-up version > of Visual Studio .NET? > > What has me scratching my head is this: I went to Microsoft's "Product > Information" page for Visual Studio .NET 2003 "Professional" Edition. > > URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= > 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr > > and the "full up" (not upgrade) version of Visual Studio .NET lists for > $1,079.00 direct purchase from Microsoft. > > So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, > (Version 1.1) "free" at one of their download sites while charging > $1,079.00 for [virtually] the same product at another Microsoft site? > Either I'm missing something here, or I'm totally confused, or > something. > > There has to be a "catch" here, because Microsoft doesn't "give away" > anything for free - or anything that is not "crippled" (or a woefully > lacking subset) of the full product. > > Have you actually downloaded (and used) the ".NET Framework SDK, > Version 1.1" product? (We are leaning toward recommending that our > customer buy a copy of the full up version of "Visual Studio .NET 2003 > Professional" edition.) > > Alan C. Lawhon > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, December 01, 2004 5:18 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic .NET Standard 2003 ..." > > > Hi Alan: > > I am currently following the same route, a little further ahead but if > you > look sharp I can be seen just up the trail a bit. Following are a few of > the > options out there. The actual portion of the .Net application suite that > generates the web code is ASP.Net but the full .Net studio has ASP.Net > incorporated: > > Here is the pointer to the Asp.Net webmatrix editor and appropriate > tutorials...and it is free. > http://www.asp.net/webmatrix/tour/section2/newconn.aspx > > Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and > it > is free. http://www.icsharpcode.net/OpenSource/SD/ > > The SDK can be downloaded from M$...and it is free. > http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 > 070- > 9f41-a333c6b9181d&displaylang=en > > Nothing like fair pricing and a good place to start. The best OS > platform to > develop the coding and testing is on an XP or 2000 server as they have > IIS > built in and applications can test immediately. > > Good luck and have fun. > > HTH > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Wednesday, December 01, 2004 2:15 PM > To: dba-VB at databaseadvisors.com > Cc: dba-AccessD at databaseadvisors.com > Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic > .NET Standard 2003 ..." > > > ... or just try to learn what I can from [VB.Net] books alone? > > Well, the "future" has finally arrived ... Here at work we have a > fairly > significant environmental database application that we have been using > (and > "tweaking") for the past five years. The application, called "EDS" - > which > stands for "Environmental Document System" - started off as a very > simple > Access 97 application. Over time, as the capabilities of the system > grew > and the need to provide client/server access was realized, the front end > migrated to Access 2000 and the back end [eventually] migrated to SQL > Server > 2000 - which is where we are now. > > Well, you know how customers are ... they are always wanting changes (or > "something new") and that is the case with our customer. EDS is > becoming > increasingly popular with users outside our immediate organization. So > popular, in fact, that our Government manager has requested that we "web > enable" EDS and make EDS accessible from a web browser - such as > Internet > Explorer. Gulp !! It didn't take too much web surfing (and research) > to > realize that "web enabling" EDS is going to be thirsty work ... > > The EDS database consists of multiple form and report objects with lots > of > event driven Visual Basic code. Most of the VBA code is attached to > command > buttons as Click_Event() procedures. (There's a lot of logic testing > and > conditional execution for business rule implementation within the VBA > code.) > > The research I have done (so far) indicates that I face a steep learning > curve when it comes to web programming. I'm already looking at "HTML & > XML > for Beginners" (book) by Michael Morrison and I have just ordered a > couple > of books on databases and VB.Net programming. (I have ordered > "Beginning > VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual > Basic > .NET for Microsoft Access Databases" by Rick Dobson.) I figure these > two > books will give me plenty to chew on - at least initially. > > The senior programmer and I have been looking on the internet for the > proper > .NET development tool. Right now it looks like we will be asking our > customer to pay for a full-up version of Visual Studio 2003 - or > whatever > contains the full "Professional" version of MS Visual Basic .NET. While > researching the various developer tool alternatives for VB.NET > programming, > I came across this page at Amazon.com's web site: > > http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 > > The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two > reasons: It's (relatively) affordable - less than a hundred dollars - > and > the "Standard" edition might be a good "learning tool" for playing > around > with VB.Net on my home computer. However, the "Standard" edition > appears to > have a number of ... uhm ... limitations. (Look at Frank Spillman's > "Roadblocks, Roadblocks" reader review in the above link.) > > I would be grateful if some of the folks on this list who have actually > done > some web programming (especially with VB.Net) could offer advice and > opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" > [web] development tool. Basically, I'm wondering if the "Standard" > edition > has enough capability to serve as a useful "learning tool" - or is it so > "crippled" that I would be better off simply reading .NET books? > > Thanks in advance ... > > Alan C. Lawhon > > > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Dec 7 15:52:25 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 7 Dec 2004 13:52:25 -0800 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB048@redstone819.ad.redstone.army.mil> Message-ID: <000501c4dca7$09d91f90$8500a8c0@murphyf3vdfepi> Alan, The frame work includes the runtime environment plus all the command line utilities for compiling and packaging .net applications. I belive there is .NET documentation in the SDK also. You can do your developmet in a text editor. One book that uses this approach is "Build your own ASP.NET web site using C# and VB.NET" by Zak Ruvalcaba. The book is published by Sitepoint, ISBN 0-9579218-6-1. Zak covers downloading and installing the SDK and then setting up your database of choice, MSDE, SQL or Access to use with your ASP.NET site. The thing the SDK does not have is the nice development environment that Visual Studio.NET has plus all the wizards, builders, etc. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The MicrosoftR .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Tue Dec 7 16:06:39 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Tue, 7 Dec 2004 16:06:39 -0600 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB04D@redstone819.ad.redstone.army.mil> Doug: Thanks! (This is very helpful info ...) Alan -----Original Message----- From: Doug Murphy [mailto:dw-murphy at cox.net] Sent: Tuesday, December 07, 2004 3:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Alan, The frame work includes the runtime environment plus all the command line utilities for compiling and packaging .net applications. I belive there is .NET documentation in the SDK also. You can do your developmet in a text editor. One book that uses this approach is "Build your own ASP.NET web site using C# and VB.NET" by Zak Ruvalcaba. The book is published by Sitepoint, ISBN 0-9579218-6-1. Zak covers downloading and installing the SDK and then setting up your database of choice, MSDE, SQL or Access to use with your ASP.NET site. The thing the SDK does not have is the nice development environment that Visual Studio.NET has plus all the wizards, builders, etc. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The MicrosoftR .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 7 16:38:59 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 07 Dec 2004 17:38:59 -0500 Subject: [AccessD] Good laptop cheap Message-ID: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> For all those who were not able to take advantage of the Emachines laptop (or didn't trust the brand) http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= 6851267&tab=6 A nice Toshiba for $650 after rebates. Not as much machine as the Emachines but still a good deal. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From alan.lawhon at us.army.mil Tue Dec 7 16:40:00 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Tue, 7 Dec 2004 16:40:00 -0600 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB050@redstone819.ad.redstone.army.mil> Doug: I just ordered Zak's book from Amazon.Com. Rather than shelling out hundreds of dollars for a "Professional" copy of Visual Studio .NET, I am going to immerse myself in Zak's book and see how it goes. Thanks for the tip! (I think this is just what I was looking for.) Alan C. Lawhon -----Original Message----- From: Doug Murphy [mailto:dw-murphy at cox.net] Sent: Tuesday, December 07, 2004 3:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Alan, The frame work includes the runtime environment plus all the command line utilities for compiling and packaging .net applications. I belive there is .NET documentation in the SDK also. You can do your developmet in a text editor. One book that uses this approach is "Build your own ASP.NET web site using C# and VB.NET" by Zak Ruvalcaba. The book is published by Sitepoint, ISBN 0-9579218-6-1. Zak covers downloading and installing the SDK and then setting up your database of choice, MSDE, SQL or Access to use with your ASP.NET site. The thing the SDK does not have is the nice development environment that Visual Studio.NET has plus all the wizards, builders, etc. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The MicrosoftR .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DorisH3 at aol.com Tue Dec 7 16:39:47 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Tue, 7 Dec 2004 17:39:47 EST Subject: [AccessD] Help! Message-ID: <1f2.3150f55.2ee78b33@aol.com> That would be great...my email address is dorish3 at aol.com. Thanks I appreciate all the help I can get. Doris From DorisH3 at aol.com Tue Dec 7 16:44:36 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Tue, 7 Dec 2004 17:44:36 EST Subject: [AccessD] Help! Message-ID: <19b.2caa00f1.2ee78c54@aol.com> Hi Andy, I just realized that I had 2 postings for the same question...thought the first one didn't go thru to the board and reposted. Sorry about that. I did not see any replies for the first posting "Add new data to existing table"...I did get a reply on the "Help" posting. Doris From dw-murphy at cox.net Tue Dec 7 17:08:54 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 7 Dec 2004 15:08:54 -0800 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy"MicrosoftVisual Basic.NET Standard 2003 ..." In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB050@redstone819.ad.redstone.army.mil> Message-ID: <000801c4dcb1$bbed4df0$8500a8c0@murphyf3vdfepi> Alan, Zak's book is good to learn what is going on with the ASP pages without getting lost in the IDE. If you go this route you will need a good HTML book and/or another web page development tool to help construct the actual pages. Once you build the HTML page the book will show you how to go in and modify the tags to use the .Net web controls. If your time is worth anything you will want to get one of the DOT.NET development environments. Auto complete and help are great when writing code, especially when the syntax isn't familiar. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 2:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: [dba-VB] Please Advise: Should I Buy"MicrosoftVisual Basic.NET Standard 2003 ..." Doug: I just ordered Zak's book from Amazon.Com. Rather than shelling out hundreds of dollars for a "Professional" copy of Visual Studio .NET, I am going to immerse myself in Zak's book and see how it goes. Thanks for the tip! (I think this is just what I was looking for.) Alan C. Lawhon -----Original Message----- From: Doug Murphy [mailto:dw-murphy at cox.net] Sent: Tuesday, December 07, 2004 3:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Alan, The frame work includes the runtime environment plus all the command line utilities for compiling and packaging .net applications. I belive there is .NET documentation in the SDK also. You can do your developmet in a text editor. One book that uses this approach is "Build your own ASP.NET web site using C# and VB.NET" by Zak Ruvalcaba. The book is published by Sitepoint, ISBN 0-9579218-6-1. Zak covers downloading and installing the SDK and then setting up your database of choice, MSDE, SQL or Access to use with your ASP.NET site. The thing the SDK does not have is the nice development environment that Visual Studio.NET has plus all the wizards, builders, etc. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The MicrosoftR .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 8 00:46:41 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 7 Dec 2004 22:46:41 -0800 Subject: [AccessD] Report Cancel Issue Message-ID: <000401c4dcf1$af9fefe0$6501a8c0@delllaptop> The message box is OK. I am trying to kill the " The ReportOpen action was canceled box" is unwelcome. How can I make it go away. Private Sub Report_NoData(Cancel As Integer) Dim lngRetval As Long DoCmd.SetWarnings False lngRetval = MsgBox( _ "There are no products requiring a QAIP Form in for this Purcase Order.", _ vbOKOnly + vbInformation + vbSystemModal + vbDefaultButton1, _ "No QAIP for this PO") Select Case lngRetval Case vbOK Cancel = True End Select DoCmd.SetWarnings True Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net From viner at EUnet.yu Wed Dec 8 00:15:22 2004 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 8 Dec 2004 07:15:22 +0100 Subject: [AccessD] No, itt a cim is : Good laptop cheap References: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> Message-ID: <008301c4dcf2$17c50240$0100a8c0@razvoj> Akarlak rabeszelni hogy vegyel laptopot :))) E. > For all those who were not able to take advantage of the Emachines laptop > (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > From pedro at plex.nl Wed Dec 8 08:27:19 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 08 Dec 2004 08:27:19 (MET) Subject: [AccessD] import tekst wizard A2003 Message-ID: <200412080727.iB87RJVD016085@mailhostC.plex.net> Hello Marty, thanks for the help. When i searched the knowledge base i couldn't find an answer to the problem. Pedro Janssen In antwoord op: > From: MartyConnelly > To: Access Developers discussion and problem solving > Date: Tue, 07 Dec 2004 09:05:57 -0800 > Subject: Re: [AccessD] import tekst wizard A2003 > > > You need the Office 2003 SP1 or the March 2004 Access 2003 hotfix > I think they rolled the hotfixes into the SP1 > > Description of the Access 2003 hotfix package: March 17, 2004 > http://support.microsoft.com/kb/837003 > > Issues that are fixed in Access 2003 by Office 2003 Service Pack 1 > http://support.microsoft.com/default.aspx?kbid=872834 > > " When you use the Import Spreadsheet Wizard in Microsoft Access or the > Import Text Wizard in Microsoft Access to import a Microsoft Excel file > or a text file, you can modify the field information for only the first > field that is on the fourth page of the Import Spreadsheet Wizard or the > Import Text Wizard.ReasonThe problem is related to both the Import > Spreadsheet Wizard and the Import Text Wizard. > > > pedro at plex.nl wrote: > > >Hello Group, > > > >in the hospital were i am working we changed from A2k to A2003. > >The import tekst wizard doesn't work properly. > >When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. > > > >Is this a general problem and is there a solution. > > > >Pedro Janssen > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Wed Dec 8 08:26:40 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 08 Dec 2004 08:26:40 (MET) Subject: [AccessD] import tekst wizard A2003 Message-ID: <200412080726.iB87Qeiv016065@mailhostC.plex.net> Hello Marty, thanks for the help. When i searched the knowledge base i couldn't find an answer to the problem. Pedro Janssen In antwoord op: > From: MartyConnelly > To: Access Developers discussion and problem solving > Date: Tue, 07 Dec 2004 09:05:57 -0800 > Subject: Re: [AccessD] import tekst wizard A2003 > > > You need the Office 2003 SP1 or the March 2004 Access 2003 hotfix > I think they rolled the hotfixes into the SP1 > > Description of the Access 2003 hotfix package: March 17, 2004 > http://support.microsoft.com/kb/837003 > > Issues that are fixed in Access 2003 by Office 2003 Service Pack 1 > http://support.microsoft.com/default.aspx?kbid=872834 > > " When you use the Import Spreadsheet Wizard in Microsoft Access or the > Import Text Wizard in Microsoft Access to import a Microsoft Excel file > or a text file, you can modify the field information for only the first > field that is on the fourth page of the Import Spreadsheet Wizard or the > Import Text Wizard.ReasonThe problem is related to both the Import > Spreadsheet Wizard and the Import Text Wizard. > > > pedro at plex.nl wrote: > > >Hello Group, > > > >in the hospital were i am working we changed from A2k to A2003. > >The import tekst wizard doesn't work properly. > >When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. > > > >Is this a general problem and is there a solution. > > > >Pedro Janssen > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Wed Dec 8 08:26:59 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 08 Dec 2004 08:26:59 (MET) Subject: [AccessD] import tekst wizard A2003 Message-ID: <200412080726.iB87Qxjc016073@mailhostC.plex.net> Hello Marty, thanks for the help. When i searched the knowledge base i couldn't find an answer to the problem. Pedro Janssen In antwoord op: > From: MartyConnelly > To: Access Developers discussion and problem solving > Date: Tue, 07 Dec 2004 09:05:57 -0800 > Subject: Re: [AccessD] import tekst wizard A2003 > > > You need the Office 2003 SP1 or the March 2004 Access 2003 hotfix > I think they rolled the hotfixes into the SP1 > > Description of the Access 2003 hotfix package: March 17, 2004 > http://support.microsoft.com/kb/837003 > > Issues that are fixed in Access 2003 by Office 2003 Service Pack 1 > http://support.microsoft.com/default.aspx?kbid=872834 > > " When you use the Import Spreadsheet Wizard in Microsoft Access or the > Import Text Wizard in Microsoft Access to import a Microsoft Excel file > or a text file, you can modify the field information for only the first > field that is on the fourth page of the Import Spreadsheet Wizard or the > Import Text Wizard.ReasonThe problem is related to both the Import > Spreadsheet Wizard and the Import Text Wizard. > > > pedro at plex.nl wrote: > > >Hello Group, > > > >in the hospital were i am working we changed from A2k to A2003. > >The import tekst wizard doesn't work properly. > >When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. > > > >Is this a general problem and is there a solution. > > > >Pedro Janssen > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Wed Dec 8 01:52:34 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 8 Dec 2004 07:52:34 -0000 Subject: [AccessD] Help! In-Reply-To: <19b.2caa00f1.2ee78c54@aol.com> Message-ID: <002201c4dcfa$e0f93660$b274d0d5@minster33c3r25> No problem. Odd that you haven't had the first two replies. They're from Liz Doering and Darren Dick if you want to double check. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > DorisH3 at aol.com > Sent: 07 December 2004 22:45 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Help! > > > Hi Andy, > > I just realized that I had 2 postings for the same > question...thought the > first one didn't go thru to the board and reposted. Sorry > about that. I did not > see any replies for the first posting "Add new data to > existing table"...I > did get a reply on the "Help" posting. > > Doris > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From cyx5 at cdc.gov Wed Dec 8 05:38:04 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 8 Dec 2004 06:38:04 -0500 Subject: [AccessD] Report Cancel Issue Message-ID: Private Sub Report_NoData(Cancel As Integer) MsgBox "There is no data to print", vbInformation + vbOKOnly, "NoData Cancellation" Cancel = True End Sub If you're opening the report from code behind a form, you need to handle the error that's generated as a result. Private Sub TestNoData_Click() On Error Resume Next DoCmd.OpenReport "SomeReport", acViewPreview If Err = 2501 Then Err.Clear End Sub Or, check the FMS detailed pitfalls documentation at: http://www.fmsinc.com/tpapers/genaccess/reporttips.html -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 08, 2004 1:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Cancel Issue The message box is OK. I am trying to kill the " The ReportOpen action was canceled box" is unwelcome. How can I make it go away. Private Sub Report_NoData(Cancel As Integer) Dim lngRetval As Long DoCmd.SetWarnings False lngRetval = MsgBox( _ "There are no products requiring a QAIP Form in for this Purcase Order.", _ vbOKOnly + vbInformation + vbSystemModal + vbDefaultButton1, _ "No QAIP for this PO") Select Case lngRetval Case vbOK Cancel = True End Select DoCmd.SetWarnings True Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DorisH3 at aol.com Wed Dec 8 06:47:40 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Wed, 8 Dec 2004 07:47:40 EST Subject: [AccessD] Help! Message-ID: Hi Andy Never got them....I wonder how I can get them to resend their posting? Thanks I appreciate all the help you have extended me....Doris From carbonnb at gmail.com Wed Dec 8 07:12:50 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 8 Dec 2004 08:12:50 -0500 Subject: [AccessD] Help! In-Reply-To: References: Message-ID: On Wed, 8 Dec 2004 07:47:40 EST, DorisH3 at aol.com wrote: > Hi Andy > > Never got them....I wonder how I can get them to resend their posting? > Thanks I appreciate all the help you have extended me....Doris You can always look in the archives: http://databaseadvisors.com/pipermail/accessd/ for the main archive page or http://databaseadvisors.com/pipermail/accessd/2004-December/029800.html and http://databaseadvisors.com/pipermail/accessd/2004-December/029801.html for the specific messages. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From DorisH3 at aol.com Wed Dec 8 07:26:50 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Wed, 8 Dec 2004 08:26:50 EST Subject: [AccessD] Thanks Liz Message-ID: <141.3aaa867f.2ee85b1a@aol.com> Just want to thank you for your good advice and code....it is greatly appreciated. Have a great holiday. Doris From ldoering at symphonyinfo.com Wed Dec 8 09:47:11 2004 From: ldoering at symphonyinfo.com (Liz Doering) Date: Wed, 8 Dec 2004 09:47:11 -0600 Subject: [AccessD] Thanks Liz Message-ID: <200412080947.AA1320878382@symphonyinfo.com> I'm glad to be able to help someone else for a change--this list has been a great help to me! Liz ---------- Original Message ---------------------------------- From: DorisH3 at aol.com Reply-To: Access Developers discussion and problem solving Date: Wed, 8 Dec 2004 08:26:50 EST Just want to thank you for your good advice and code....it is greatly appreciated. Have a great holiday. Doris -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwhittinghill at symphonyinfo.com Wed Dec 8 10:06:51 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Wed, 8 Dec 2004 10:06:51 -0600 Subject: [AccessD] VSS and getting an older Version of VB6 project Message-ID: <023701c4dd3f$ef3e6b60$2601a8c0@Symphony.local> Hi all, I have a VB6 project that I have source safed. I create labels at various points in development. I would like to rebuild my source code from a previous version, but I don't want to rollback from the most recent. Can anyone tell me how to do this? Thanks, Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com From mark.breen at gmail.com Wed Dec 8 12:38:13 2004 From: mark.breen at gmail.com (Mark Breen) Date: Wed, 8 Dec 2004 18:38:13 +0000 Subject: [AccessD] Good laptop cheap In-Reply-To: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> References: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> Message-ID: <26a96cce041208103814b7341f@mail.gmail.com> Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines laptop > (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Mark.Mitsules at ngc.com Wed Dec 8 13:55:22 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Wed, 8 Dec 2004 14:55:22 -0500 Subject: [AccessD] FW: [dba-Tech] Google Alerts Message-ID: X-posted. -----Original Message----- From: Mitsules, Mark Sent: Wednesday, December 08, 2004 11:38 AM To: dba-tech at databaseadvisors.com Subject: [dba-Tech] Google Alerts Group, Wasn't quite sure where to post this, so here goes. I am the webmaster for my departmental website. I made it clear from the onset when I took the job that I would NOT be responsible for creating the ongoing content, merely its presentation. Sad to say, but it appears that the content providers aren't responsible either;) In an attempt to provide ongoing unique content, I have looked into Google alerts. I'm setting up one now for industry related news. My question is this: I will be receiving these alerts through Outlook with the goal of posting them to our website in a timely manner using an automatic or semi-automatic process. Any great ideas on how to proceed? Mark _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Wed Dec 8 14:02:49 2004 From: bheygood at abestsystems.com (Bob Heygood) Date: Wed, 8 Dec 2004 12:02:49 -0800 Subject: [AccessD] Good laptop cheap In-Reply-To: <26a96cce041208103814b7341f@mail.gmail.com> Message-ID: curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines laptop > (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Wed Dec 8 14:45:11 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Wed, 8 Dec 2004 14:45:11 -0600 Subject: [AccessD] Good laptop cheap Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB062@redstone819.ad.redstone.army.mil> Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines laptop > (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Dec 8 16:10:12 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 8 Dec 2004 16:10:12 -0600 Subject: [AccessD] Set form's Caption without code Message-ID: <100F91B31300334B89EC531C9DCB08653F61C8@tccexch01.tappeconstruction.net> Andy, Screen.ActiveForm can be really picky, and I try to avoid using it if possible. Can you call it instead using the following syntax: =SetCaption([Form],"x") I would try placing this in the On Load event. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, December 07, 2004 4:59 AM To: Dba Subject: [AccessD] Set form's Caption without code Ok, here's the thing. I want to make a few forms lightweight which currently have just a line or two in modules. A few have nothing more than a line which dynamically sets the form's caption. So I wrote a little function like this: Function SetCaption(frm As Form, strCaption As String) frm.Caption = strCaption End Function and then changed my form's OnOpen from being an Event Procedure to : =SetCaption([Screen].[ActiveForm],"x") (The "x" is just for testing. The real call would have something a bit more dynamic, like the result of a function call.) The thing is that it errors because it can't resolve [Screen].[ActiveForm] at that point. Ok, methinks, I'll move the call. But I can't find where to put it. All of the following fail: On Load On GotFocus of the first control On Current The only success I've had is putting a timer interval of 5 and putting the call in OnTimer, but I don't like that much as you can imagine. If I force a call to it once the form's up then there's no problem (eg a command button), but that's not a lot of use to me either. So I know the function is fine, but has anyone got an answer as to where I might get this to run from? -- Andy Lacey http://www.minstersystems.co.uk -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From d.dick at uws.edu.au Wed Dec 8 16:14:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 9 Dec 2004 09:14:45 +1100 Subject: [AccessD] A2003: FTP and Network Connection Gurus Message-ID: <200412082214.iB8MEox6014414@cooper.uws.edu.au> Hi All I need to add an FTP upload screen to one of my APPS Firstly - lemme say I know nothing about such things The client's Network dude gave me... A Server Name A UserName And a Password So...I opened up an FTP client and successfully transferred the back end of the app (About 4meg) to the FTP location he supplied with the credentials he supplied - Phew so far so good :-)) Anyone got any code or forms or URL's they'd like to share so I can incorporate something like an FTP scheduler in my app, to run nightly? Secondly how do I then link a front end to this FTP'd backend? I know the IPADRRESS of the FTP destination, but don't know the share or what the 'true' location of the FTP'd file is I have relinking code that can link to all the tables in say.... \\123.123.456.789\SomeShare\SomedB.mdb But how to I work out a path like that from the FTP info I have so far?? Many thanks in advance Darren From BBarabash at TappeConstruction.com Wed Dec 8 16:14:54 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 8 Dec 2004 16:14:54 -0600 Subject: [AccessD] VSS and getting an older Version of VB6 project Message-ID: <100F91B31300334B89EC531C9DCB08653F61C9@tccexch01.tappeconstruction.net> Mark, In VSS Explorer, right click on the project file and select Show History... Press OK to the dialog it displays and it will show you a revision history. Click on the version you would like to revert to and press the Get button. Select a file path to save the file to (preferably one that won't overwrite your current project). Repeat as necessary for all other forms, modules, classes, etc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Whittinghill Sent: Wednesday, December 08, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: [AccessD] VSS and getting an older Version of VB6 project Hi all, I have a VB6 project that I have source safed. I create labels at various points in development. I would like to rebuild my source code from a previous version, but I don't want to rollback from the most recent. Can anyone tell me how to do this? Thanks, Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From artful at rogers.com Wed Dec 8 16:15:38 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 08 Dec 2004 17:15:38 -0500 Subject: [AccessD] ODBC etc. link to Btrieve db? In-Reply-To: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> References: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> Message-ID: <41B77D0A.4040002@rogers.com> Is there such a thing? Does it cost money? A client has an ancient (DOS!) Btrieve app which can export text files but I'd like to eliminate this step if possible. Any way to hook Access to the Btrieve db automatically? TIA, Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 From mastercafe at ctv.es Wed Dec 8 17:25:09 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Thu, 9 Dec 2004 00:25:09 +0100 Subject: [AccessD] In-Reply-To: Message-ID: <000c01c4dd7d$296630b0$0500a8c0@masterserv> Hi group, this week we are looking for DATE problems and solutions over this bug from Access. We use normally dd/mm/yyyy to capture de date information, and configure the windows DATE/TIME to this format, when yo try to input some date you can see this diferences: Input Format Format dd/mmm/yy 01/02/2001 - 01 Feb 01 03/02/2001 - 02 Mar 01 13/02/2001 - 13 Feb 01 03/04/2001 - 03 Apr 01 Its totally stupid the translation, we saw that use the main format as they want. If you put a day over >12 then the format it's OK dd/mm/yyyy, but if you put a day under 13 depend of the month.. If the month if higher then the format that the use is mm/dd/yyyy but not always, only for months lower than 6. At this moment we only found a solution for this, convert all date to string 8 positions (yyyymmdd) and then use this ISO format to make any SQL, but the speed are not good on a large ammount of registry. Any ideas to control de DATE correctly?? We problem we saw in Access 2 and always use String format, but actually we hope that with Access XP and WinXP could be solved. Thanks. Juan Menendez From jwcolby at colbyconsulting.com Wed Dec 8 18:13:36 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 08 Dec 2004 19:13:36 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: Message-ID: <001901c4dd83$f17caab0$e8dafea9@ColbyM6805> Yes, they come with a restore disk with windows on it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Wednesday, December 08, 2004 3:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Dec 8 18:17:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 08 Dec 2004 19:17:32 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: <26a96cce041208103814b7341f@mail.gmail.com> Message-ID: <001a01c4dd84$7df55c30$e8dafea9@ColbyM6805> Naw, I LOVE my emachines m6805 Laptop. Athlon64 with 1.25g ram, 60g 7200 rpm hard disk, Cd/DVD player (no writer) ATI 9600 graphics. It's a "desktop replacement" and it is just an awesome machine. I paid $1250 for it after rebate. The m5405 I got for my Wife is not as powerful as mine (though pretty close) but a much better deal than mine was. For her use it is way more than she needs and I paid just $650 after rebates. The one I just published was so good a deal it immediately sold out. ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 1:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& > skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 8 19:55:31 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 8 Dec 2004 17:55:31 -0800 Subject: [AccessD] Good laptop cheap Message-ID: I, on the other hand, buy no name laptops from a distributor and purchase a new copy of windows pro. Since I buy a new laptop when I "outgrow" the prior one, I just move my programs to that machine, so I don't want a new version. Besides, I have yet to find a machine that comes with the developer editions on it. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Wednesday, December 08, 2004 12:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&sk uId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Dec 8 20:25:12 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Dec 2004 12:25:12 +1000 Subject: [AccessD] A2003: FTP and Network Connection Gurus In-Reply-To: <200412082214.iB8MEox6014414@cooper.uws.edu.au> Message-ID: <41B84428.16247.A76C13B@lexacorp.com.pg> On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things > The client's Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the > back end of the app (About 4meg) to the FTP location he supplied > with the credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript > Secondly how do I then link a front end to this FTP'd backend? > I know the IPADRRESS of the FTP destination, but don't know the > share or what the 'true' location of the FTP'd file is > > I have relinking code that can link to all the tables in say.... > \\123.123.456.789\SomeShare\SomedB.mdb > But how to I work out a path like that from the FTP info I have so far?? > You can't. His FTP structure does not necessarily bear any resemblance to the path which Access will use. You will have to ask the recipient what UNC path the FE will access the BE through. -- Stuart From pcs at azizaz.com Wed Dec 8 20:39:35 2004 From: pcs at azizaz.com (Borge Hansen) Date: Thu, 9 Dec 2004 12:39:35 +1000 Subject: [AccessD] References: <000c01c4dd7d$296630b0$0500a8c0@masterserv> Message-ID: <01e601c4dd98$52ae5220$fa10a8c0@Albatross> Try and customize the settings of languages, numbers, times and dates. You probably have your machine set to a US English format.... On WinXP go Control Panel => Regional and Language Options. This should clear up the problem you are describing. Always use US date format when you are using a Date as a selection criterium, etc. in SQL action queries. Hope this helps Borge ----- Original Message ----- From: "MastercafeCTV" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:25 AM Subject: [AccessD] > > Hi group, this week we are looking for DATE problems and solutions over this > bug from Access. > > We use normally dd/mm/yyyy to capture de date information, and configure the > windows DATE/TIME to this format, when yo try to input some date you can see > this diferences: > > Input Format Format dd/mmm/yy > 01/02/2001 - 01 Feb 01 > 03/02/2001 - 02 Mar 01 > 13/02/2001 - 13 Feb 01 > 03/04/2001 - 03 Apr 01 > > Its totally stupid the translation, we saw that use the main format as they > want. If you put a day over >12 then the format it's OK dd/mm/yyyy, but if > you put a day under 13 depend of the month.. If the month if higher then the > format that the use is mm/dd/yyyy but not always, only for months lower than > 6. > > At this moment we only found a solution for this, convert all date to string > 8 positions (yyyymmdd) and then use this ISO format to make any SQL, but the > speed are not good on a large ammount of registry. > > Any ideas to control de DATE correctly?? We problem we saw in Access 2 and > always use String format, but actually we hope that with Access XP and WinXP > could be solved. > > Thanks. > > > Juan Menendez > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 From mastercafe at ctv.es Wed Dec 8 21:02:35 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Thu, 9 Dec 2004 04:02:35 +0100 Subject: [AccessD] Date Problem In-Reply-To: <01e601c4dd98$52ae5220$fa10a8c0@Albatross> Message-ID: <002201c4dd9b$94e56ef0$0500a8c0@masterserv> We check this many time and this is not the problem. Actually we use Spanish format to introduce all date dd/mm/yyyy and when we need a SQL filter try to put Format(field;'yyyymmdd') to void the problem. Look this: Field 1 Field 2 Field 3 Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: jueves, 09 de diciembre de 2004 03:40 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Try and customize the settings of languages, numbers, times and dates. You probably have your machine set to a US English format.... On WinXP go Control Panel => Regional and Language Options. This should clear up the problem you are describing. Always use US date format when you are using a Date as a selection criterium, etc. in SQL action queries. Hope this helps Borge ----- Original Message ----- From: "MastercafeCTV" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:25 AM Subject: [AccessD] > > Hi group, this week we are looking for DATE problems and solutions > over this > bug from Access. > > We use normally dd/mm/yyyy to capture de date information, and > configure the > windows DATE/TIME to this format, when yo try to input some date you > can see > this diferences: > > Input Format Format dd/mmm/yy > 01/02/2001 - 01 Feb 01 > 03/02/2001 - 02 Mar 01 > 13/02/2001 - 13 Feb 01 > 03/04/2001 - 03 Apr 01 > > Its totally stupid the translation, we saw that use the main format as they > want. If you put a day over >12 then the format it's OK dd/mm/yyyy, > but if you put a day under 13 depend of the month.. If the month if > higher then the > format that the use is mm/dd/yyyy but not always, only for months > lower than > 6. > > At this moment we only found a solution for this, convert all date to string > 8 positions (yyyymmdd) and then use this ISO format to make any SQL, > but the > speed are not good on a large ammount of registry. > > Any ideas to control de DATE correctly?? We problem we saw in Access 2 > and always use String format, but actually we hope that with Access XP > and WinXP > could be solved. > > Thanks. > > > Juan Menendez > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Wed Dec 8 21:09:01 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Thu, 9 Dec 2004 04:09:01 +0100 Subject: [AccessD] Date Problem In-Reply-To: <01e601c4dd98$52ae5220$fa10a8c0@Albatross> Message-ID: <002301c4dd9c$79d0cbe0$0500a8c0@masterserv> We check this many time and this is not the problem. Actually we use Spanish format to introduce all date dd/mm/yyyy and when we need a SQL filter try to put Format(field;'yyyymmdd') to void the problem. Look this: Field 1 Field 2 Field 3 Cname1 01/03/2001 Some data Cname2 01/04/2001 Some data Cname3 01/05/2001 Some data Cname4 01/06/2001 Some data Cname5 01/07/2001 Some data Cname6 01/08/2001 Some data Cname7 01/09/2001 Some data Cname8 01/10/2001 Some data Cname9 01/11/2001 Some data If we try to Select * from DDBB where field2>=#01/06/2001# Normally you must be obtain Cname4 to 9, but we obtain all (01 is month) If we try to Select * from DDBB where field2>=#13/06/2001# Normally you must be obtain Cname5 to 9 in this case run perfect (13 is day) Then we change our SQl to Select * from DDBB where format(field2,'yyyymmdd')>='20010601' you must be obtain Cname4 to 9 and in this case run perfect again. Why sometimes change Day with Month?.. Not in Control Panel, not in Access Options... Where?? And why? A feel stupid with this yet. Thanks Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: jueves, 09 de diciembre de 2004 03:40 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Try and customize the settings of languages, numbers, times and dates. You probably have your machine set to a US English format.... On WinXP go Control Panel => Regional and Language Options. This should clear up the problem you are describing. Always use US date format when you are using a Date as a selection criterium, etc. in SQL action queries. Hope this helps Borge ----- Original Message ----- From: "MastercafeCTV" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:25 AM Subject: [AccessD] > > Hi group, this week we are looking for DATE problems and solutions > over this > bug from Access. > > We use normally dd/mm/yyyy to capture de date information, and > configure the > windows DATE/TIME to this format, when yo try to input some date you > can see > this diferences: > > Input Format Format dd/mmm/yy > 01/02/2001 - 01 Feb 01 > 03/02/2001 - 02 Mar 01 > 13/02/2001 - 13 Feb 01 > 03/04/2001 - 03 Apr 01 > > Its totally stupid the translation, we saw that use the main format as they > want. If you put a day over >12 then the format it's OK dd/mm/yyyy, > but if you put a day under 13 depend of the month.. If the month if > higher then the > format that the use is mm/dd/yyyy but not always, only for months > lower than > 6. > > At this moment we only found a solution for this, convert all date to string > 8 positions (yyyymmdd) and then use this ISO format to make any SQL, > but the > speed are not good on a large ammount of registry. > > Any ideas to control de DATE correctly?? We problem we saw in Access 2 > and always use String format, but actually we hope that with Access XP > and WinXP > could be solved. > > Thanks. > > > Juan Menendez > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 8 21:34:43 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 8 Dec 2004 19:34:43 -0800 Subject: [AccessD] Event only if sending report to the printer Message-ID: <000801c4dda0$095e5720$6501a8c0@delllaptop> I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From stuart at lexacorp.com.pg Wed Dec 8 21:50:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Dec 2004 13:50:45 +1000 Subject: [AccessD] Date Problem In-Reply-To: <002301c4dd9c$79d0cbe0$0500a8c0@masterserv> References: <01e601c4dd98$52ae5220$fa10a8c0@Albatross> Message-ID: <41B85835.9842.AC502AD@lexacorp.com.pg> On 9 Dec 2004 at 4:09, MastercafeCTV wrote: > We check this many time and this is not the problem. > > Actually we use Spanish format to introduce all date dd/mm/yyyy and when we > need a SQL filter try to put Format(field;'yyyymmdd') to void the problem. > > Look this: > Field 1 Field 2 Field 3 > Cname1 01/03/2001 Some data > Cname2 01/04/2001 Some data > Cname3 01/05/2001 Some data > Cname4 01/06/2001 Some data > Cname5 01/07/2001 Some data > Cname6 01/08/2001 Some data > Cname7 01/09/2001 Some data > Cname8 01/10/2001 Some data > Cname9 01/11/2001 Some data > OK - the above are displayed in your short date format of dd/mm/yy > If we try to Select * from DDBB where field2>=#01/06/2001# Normally you must > be obtain Cname4 to 9, but we obtain all (01 is month) SQL "Select ...... #...#" assumes a US date format mm/dd/yyyy if valid so it selects everything greater than 6 Jan 2001. > If we try to Select * from DDBB where field2>=#13/06/2001# Normally you must > be obtain Cname5 to 9 in this case run perfect (13 is day) SInce 13 is not a valid month, the SQL falls back to the second *possible* (see below re 2 digit years) interpretation and uses 13 Jun 2001 instead. > Then we change our SQl to Select * from DDBB where > format(field2,'yyyymmdd')>='20010601' you must be obtain Cname4 to 9 and in > this case run perfect again. That's logical. > Why sometimes change Day with Month?.. Not in Control Panel, not in Access > Options... Where?? And why? A feel stupid with this yet. > It only changes from the standard US mm/dd/yyyy (or mm/dd/yy) where that interpretation does not return a valid date. Note that if you use a two digit year, it tries yy/mm/dd as the second interpretation before getting round to trying dd/mm/yy so 13/06/01 is likely to end up interpreted 1 Jun 2013 :-( One solution is to use an unambigous format for comparison such as Select * from DDBB where field2 > "1 Jun 2001" If pulling the comparison from a text box etc, I always use: Select * from DDBB where field2 > Datevalue('" & txtTextBox & "'") That way, it doesn't matter how the the text box and regional settings are configured, it always does the comparison using the underlying value of the control/field. -- Stuart From andy at minstersystems.co.uk Thu Dec 9 01:43:17 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 9 Dec 2004 07:43:17 -0000 Subject: [AccessD] Set form's Caption without code In-Reply-To: <100F91B31300334B89EC531C9DCB08653F61C8@tccexch01.tappeconstruction.net> Message-ID: <001c01c4ddc2$c1475d10$b274d0d5@minster33c3r25> Thanks for the reply Brett. Yes, I found that Screen.ActiveForm won't work at opening time. It doesn't come right until the form's "settled down". Gustav gave me the solution in an earler post, by either using Forms("myform") or Form(Forms.Count-1). -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Brett Barabash > Sent: 08 December 2004 22:10 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Set form's Caption without code > > > Andy, > Screen.ActiveForm can be really picky, and I try to avoid > using it if possible. Can you call it instead using the > following syntax: > =SetCaption([Form],"x") > > I would try placing this in the On Load event. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 4:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > Ok, here's the thing. I want to make a few forms lightweight > which currently have just a line or two in modules. A few > have nothing more than a line which dynamically sets the > form's caption. So I wrote a little function like > this: > > Function SetCaption(frm As Form, strCaption As String) > frm.Caption = strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have > something a bit more dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve > [Screen].[ActiveForm] at that point. Ok, methinks, I'll move > the call. But I can't find where to put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 > and putting the call in OnTimer, but I don't like that much > as you can imagine. If I force a call to it once the form's > up then there's no problem (eg a command button), but that's > not a lot of use to me either. So I know the function is > fine, but has anyone got an answer as to where I might get > this to run from? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > -------------------------------------------------------------- > ------------------------------------------------------ > The information in this email may contain confidential > information that > is legally privileged. The information is only for the use of > the intended > recipient(s) named above. If you are not the intended > recipient(s), you > are hereby notified that any disclosure, copying, > distribution, or the taking > of any action in regard to the content of this email is > strictly prohibited. If > transmission is incorrect, unclear, or incomplete, please > notify the sender > immediately. The authorized recipient(s) of this information > is/are prohibited > from disclosing this information to any other party and > is/are required to > destroy the information after its stated need has been fulfilled. > > Any views expressed in this message are those of the > individual sender, except where the sender specifies and with > authority, states them to be the views of Tappe Construction Co. > > This footer also confirms that this email message has been > scanned for the presence of computer viruses.Scanning of this > message and addition of this footer is performed by > SurfControl E-mail Filter software in conjunction with virus > detection software. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Gustav at cactus.dk Thu Dec 9 02:56:09 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Dec 2004 09:56:09 +0100 Subject: OT: [AccessD] Good laptop cheap Message-ID: Hi laptoppers Couldn't we move this discussion to the OT list or at least dba-tech? /gustav PS: And why not pick the real thing: an IBM ThinkPad. From Gustav at cactus.dk Thu Dec 9 03:13:57 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Dec 2004 10:13:57 +0100 Subject: [AccessD] A2003: FTP and Network Connection Gurus Message-ID: Hi Darren If you prefer a little more than a DOS box for the user to view, go and pick Windows Command Line FTP and the Access module to drive it: http://www.pacific.net/~ken/software/ /gustav >>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things > The client's Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the > back end of the app (About 4meg) to the FTP location he supplied > with the credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript From Gustav at cactus.dk Thu Dec 9 03:27:07 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Dec 2004 10:27:07 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: Hi Brett and Andy Well, I would say Brett's solution is the answer. It looks like [Form] perfectly well can be used on its own. It works here anyway. /gustav >>> andy at minstersystems.co.uk 09-12-2004 08:43:17 >>> Thanks for the reply Brett. Yes, I found that Screen.ActiveForm won't work at opening time. It doesn't come right until the form's "settled down". Gustav gave me the solution in an earler post, by either using Forms("myform") or Form(Forms.Count-1). -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Brett Barabash > Sent: 08 December 2004 22:10 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Set form's Caption without code > > > Andy, > Screen.ActiveForm can be really picky, and I try to avoid > using it if possible. Can you call it instead using the > following syntax: > =SetCaption([Form],"x") > > I would try placing this in the On Load event. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 4:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > Ok, here's the thing. I want to make a few forms lightweight > which currently have just a line or two in modules. A few > have nothing more than a line which dynamically sets the > form's caption. So I wrote a little function like > this: > > Function SetCaption(frm As Form, strCaption As String) > frm.Caption = strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have > something a bit more dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve > [Screen].[ActiveForm] at that point. Ok, methinks, I'll move > the call. But I can't find where to put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 > and putting the call in OnTimer, but I don't like that much > as you can imagine. If I force a call to it once the form's > up then there's no problem (eg a command button), but that's > not a lot of use to me either. So I know the function is > fine, but has anyone got an answer as to where I might get > this to run from? > > -- > Andy Lacey > http://www.minstersystems.co.uk From andy at minstersystems.co.uk Thu Dec 9 03:10:47 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 9 Dec 2004 10:10:47 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041209101045.6E60224EAFC@smtp.nildram.co.uk> You're absolutely right. Hats off to Brett. It works a treat. But where does that syntax come from? I've never seen [Form] used to refer to the current form before, and Help doesn't have it. How'd you find that one Brett? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Set form's Caption without code Date: 09/12/04 09:28 > > Hi Brett and Andy > > Well, I would say Brett's solution is the answer. > It looks like [Form] perfectly well can be used on its own. It works > here anyway. > > /gustav > > >>> andy at minstersystems.co.uk 09-12-2004 08:43:17 >>> > Thanks for the reply Brett. Yes, I found that Screen.ActiveForm won't > work > at opening time. It doesn't come right until the form's "settled > down". > Gustav gave me the solution in an earler post, by either using > Forms("myform") or Form(Forms.Count-1). > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Brett Barabash > > Sent: 08 December 2004 22:10 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Set form's Caption without code > > > > > > Andy, > > Screen.ActiveForm can be really picky, and I try to avoid > > using it if possible. Can you call it instead using the > > following syntax: > > =SetCaption([Form],"x") > > > > I would try placing this in the On Load event. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy > Lacey > > Sent: Tuesday, December 07, 2004 4:59 AM > > To: Dba > > Subject: [AccessD] Set form's Caption without code > > > > Ok, here's the thing. I want to make a few forms lightweight > > which currently have just a line or two in modules. A few > > have nothing more than a line which dynamically sets the > > form's caption. So I wrote a little function like > > this: > > > > Function SetCaption(frm As Form, strCaption As String) > > frm.Caption = strCaption End Function > > > > and then changed my form's OnOpen from being an Event Procedure to : > > > > =SetCaption([Screen].[ActiveForm],"x") > > > > (The "x" is just for testing. The real call would have > > something a bit more dynamic, like the result of a function call.) > > > > The thing is that it errors because it can't resolve > > [Screen].[ActiveForm] at that point. Ok, methinks, I'll move > > the call. But I can't find where to put it. All of the following > fail: > > > > On Load > > On GotFocus of the first control > > On Current > > > > The only success I've had is putting a timer interval of 5 > > and putting the call in OnTimer, but I don't like that much > > as you can imagine. If I force a call to it once the form's > > up then there's no problem (eg a command button), but that's > > not a lot of use to me either. So I know the function is > > fine, but has anyone got an answer as to where I might get > > this to run from? > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Thu Dec 9 04:51:52 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Dec 2004 11:51:52 +0100 Subject: [AccessD] ODBC etc. link to Btrieve db? Message-ID: Hi Arthur 1. Fall back to Access 2.0. It came with a native Btrieve ODBC driver. 2. Try this commercial option: http://www.merant.com/datadirect/products/odbc/Connect/techdocs/matrix.asp 3. Maybe these will work for you: http://www.goldstarsoftware.com/down615.asp This page may as well be interesting to you: http://www.goldstarsoftware.com/products.asp /gustav >>> artful at rogers.com 08-12-2004 23:15:38 >>> Is there such a thing? Does it cost money? A client has an ancient (DOS!) Btrieve app which can export text files but I'd like to eliminate this step if possible. Any way to hook Access to the Btrieve db automatically? TIA, Arthur From pedro at plex.nl Thu Dec 9 12:08:16 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 09 Dec 2004 12:08:16 (MET) Subject: [AccessD] missing reference, converting to A2003 Message-ID: <200412091108.iB9B8Gec017757@mailhostC.plex.net> Hello Group, when converting a A2k database to A2003 i get an missing reference error. Missing is the effect library (MMEFXE.OCX). I searched the system for this reference, but i can't find it. Also in the knowledge base i can't find any info. Has anybody encountered this problem. Pedro Janssen From bheid at appdevgrp.com Thu Dec 9 07:33:17 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 9 Dec 2004 08:33:17 -0500 Subject: [AccessD] Error message when opening database from shortcut. Message-ID: <916187228923D311A6FE00A0CC3FAA305BBB40@ADGSERVER> Hi all, I'm getting the following error message when trying to open up my app. Cannot find the file 'D:\Wrap\XP\Wrap 6.02\WrapXP.mdb' (or one of its components). Make sure the path and filename are correct and that all required libraries are available. After I click OK, it opens fine. Any ideas what is going on here? Thanks, Bobby From jwcolby at colbyconsulting.com Thu Dec 9 08:14:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 09:14:43 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB062@redstone819.ad.redstone.army.mil> Message-ID: <003101c4ddf9$6ddc3600$e8dafea9@ColbyM6805> Alan, You are definitely too demanding. Look at the prices for notebooks. Sure you can get a DELL, you can get it with Office installed. But you pay a LOT for the privilege. I already own office, I purchased it separately. I own it and I can move it from system to system as I please. If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine. That's just plain silly. Buy a good laptop, get the best price possible. Buy Office, get the best price possible. Because you refused to buy a laptop without Office installed you missed out on the best price for a laptop of that value I have EVER seen. So go ahead, drop an extra 350 dollars and get less of a laptop with Office on it from Dell. Not me! In fact I became a Microsoft "partner" and bought the action pack for $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of other stuff. Why in the world would I pay for a laptop with that stuff installed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 08, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Dec 9 08:41:25 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 9 Dec 2004 08:41:25 -0600 Subject: [AccessD] Set form's Caption without code Message-ID: <100F91B31300334B89EC531C9DCB08653F61D2@tccexch01.tappeconstruction.net> Andy, Form is the default property of the form object. If you call a procedure with Me or Forms!MyForm as the argument, you are actually saying Me.Form or Forms!MyForm.Form. I learned this one back in my Access 2 days (actually not too long ago) when I was writing a set of framework procedures, similar to what you are doing. Glad to help! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, December 09, 2004 3:11 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Set form's Caption without code You're absolutely right. Hats off to Brett. It works a treat. But where does that syntax come from? I've never seen [Form] used to refer to the current form before, and Help doesn't have it. How'd you find that one Brett? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Set form's Caption without code Date: 09/12/04 09:28 > > Hi Brett and Andy > > Well, I would say Brett's solution is the answer. > It looks like [Form] perfectly well can be used on its own. It works > here anyway. > > /gustav > > >>> andy at minstersystems.co.uk 09-12-2004 08:43:17 > >>> Thanks for the reply Brett. Yes, I found that > Screen.ActiveForm won't work at opening time. It doesn't come right > until the form's "settled down". > Gustav gave me the solution in an earler post, by either using > Forms("myform") or Form(Forms.Count-1). > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Brett Barabash > Sent: 08 December 2004 22:10 > To: Access > Developers discussion and problem solving > Subject: RE: [AccessD] > Set form's Caption without code > > > Andy, > > Screen.ActiveForm can be really picky, and I try to avoid > using > it if possible. Can you call it instead using the > following > syntax: > > =SetCaption([Form],"x") > > I would try placing > this in the On Load event. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy > Lacey > Sent: Tuesday, December 07, 2004 4:59 AM > To: Dba > > Subject: [AccessD] Set form's Caption without code > > Ok, > here's the thing. I want to make a few forms lightweight > which > currently have just a line or two in modules. A few > have nothing > more than a line which dynamically sets the > form's caption. So I > wrote a little function like > this: > > > > Function SetCaption(frm As Form, strCaption As String) > > frm.Caption = strCaption End Function > > and then changed my > form's OnOpen from being an Event Procedure to : > > > > =SetCaption([Screen].[ActiveForm],"x") > > > > (The "x" is just for testing. The real call would have > > something a bit more dynamic, like the result of a function > call.) > > The thing is that it errors because it can't resolve > > [Screen].[ActiveForm] at that point. Ok, methinks, I'll move > > the call. But I can't find where to put it. All of the following > fail: > > > > On Load > > On GotFocus of the first control > > On Current > > > > The only success I've had is putting a timer interval of 5 > > and putting the call in OnTimer, but I don't like that much > as > you can imagine. If I force a call to it once the form's > up then > there's no problem (eg a command button), but that's > not a lot of > use to me either. So I know the function is > fine, but has anyone > got an answer as to where I might get > this to run from? > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From Lambert.Heenan at AIG.com Thu Dec 9 08:42:40 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 9 Dec 2004 09:42:40 -0500 Subject: [AccessD] Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A28F3@xlivmbx21.aig.com> This is not and never was a bug in Access, or Excel or any other program that works with dates. It's is simply because the world has not settled on a single date format, and computers cannot read minds. So Access etc. has to make a best guess when someone manually enters a date like "01//02/2001". Is it January or February???? The solution? Don't let users type dates. Use a calendar, either the active-X one provided by MS, or a VBA only one that is implemented as an Access form. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV > Sent: Wednesday, December 08, 2004 6:25 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] > > > Hi group, this week we are looking for DATE problems and solutions over > this > bug from Access. > > We use normally dd/mm/yyyy to capture de date information, and configure > the > windows DATE/TIME to this format, when yo try to input some date you can > see > this diferences: > > Input Format Format dd/mmm/yy > 01/02/2001 - 01 Feb 01 > 03/02/2001 - 02 Mar 01 > 13/02/2001 - 13 Feb 01 > 03/04/2001 - 03 Apr 01 > > Its totally stupid the translation, we saw that use the main format as > they > want. If you put a day over >12 then the format it's OK dd/mm/yyyy, but if > you put a day under 13 depend of the month.. If the month if higher then > the > format that the use is mm/dd/yyyy but not always, only for months lower > than > 6. > > At this moment we only found a solution for this, convert all date to > string > 8 positions (yyyymmdd) and then use this ISO format to make any SQL, but > the > speed are not good on a large ammount of registry. > > Any ideas to control de DATE correctly?? We problem we saw in Access 2 and > always use String format, but actually we hope that with Access XP and > WinXP > could be solved. > > Thanks. > > > Juan Menendez > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Thu Dec 9 09:17:46 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Thu, 9 Dec 2004 09:17:46 -0600 Subject: [AccessD] Good laptop cheap Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> John: Excuse me for asking this silly question, but doesn't the EULA license agreement for Windows and Office state explicitly that you are licensed ONLY to use your copy of Windows (and Office) on a SINGLE COMPUTER and you may NOT install - or transfer - your copy of Windows (and Office) to another computer? Of course, I know that [probably] 99.9 percent of Windows and Office users do this when they buy a new box, but strictly speaking you are in violation of a legal agreement when you reinstall your software on a new computer. Is this correct, or I am just confused? I purposely wait at least 2-3 years between major hardware/system upgrades because by the time two or three years have passed, CPU speeds have [at least] doubled (if not tripled) and major new versions of Windows and Office have been released - which are usually preinstalled with the new box. In effect, I auto-upgrade my software whenever I buy new hardware - and I always stay totally legal - although it does seem like I spend an awful lot on things like anti-virus software, firewall software, "Anonymizer" software - not to mention all the database and developer tool software ... Now I realize why I always have a high credit card balance! Alan C. Lawhon -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, December 09, 2004 8:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Good laptop cheap Alan, You are definitely too demanding. Look at the prices for notebooks. Sure you can get a DELL, you can get it with Office installed. But you pay a LOT for the privilege. I already own office, I purchased it separately. I own it and I can move it from system to system as I please. If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine. That's just plain silly. Buy a good laptop, get the best price possible. Buy Office, get the best price possible. Because you refused to buy a laptop without Office installed you missed out on the best price for a laptop of that value I have EVER seen. So go ahead, drop an extra 350 dollars and get less of a laptop with Office on it from Dell. Not me! In fact I became a Microsoft "partner" and bought the action pack for $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of other stuff. Why in the world would I pay for a laptop with that stuff installed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 08, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Dec 9 08:20:53 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 9 Dec 2004 15:20:53 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041209152050.0E4EE25F8E8@smtp.nildram.co.uk> Brett I get that. When we reference a control on a subform it's standard to say: Me!subFormControl.Form!control But I've never seen just plain [Form] used in isolation before to return the current form object. That was a new one on me. But then it's a poor day when you don't learn something - unless of course you're doing something more fun than learning ;-) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Set form's Caption without code Date: 09/12/04 14:46 > > Andy, > > Form is the default property of the form object. If you call a > procedure with Me or Forms!MyForm as the argument, you are actually > saying Me.Form or Forms!MyForm.Form. > > I learned this one back in my Access 2 days (actually not too long ago) > when I was writing a set of framework procedures, similar to what you > are doing. > > Glad to help! > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, December 09, 2004 3:11 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Set form's Caption without code > > You're absolutely right. Hats off to Brett. It works a treat. But where > does that syntax come from? I've never seen [Form] used to refer to the > current form before, and Help doesn't have it. How'd you find that one > Brett? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: accessd at databaseadvisors.com <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Set form's Caption without code > Date: 09/12/04 09:28 > > > > > Hi Brett and Andy > > > > Well, I would say Brett's solution is the answer. > > It looks like [Form] perfectly well can be used on its own. It works > > here anyway. > > > > /gustav > > > > &gt;&gt;&gt; andy at minstersystems.co.uk 09-12-2004 08:43:17 > > &gt;&gt;&gt; Thanks for the reply Brett. Yes, I found that > > Screen.ActiveForm won't work at opening time. It doesn't come right > > until the form's &quot;settled down&quot;. > > Gustav gave me the solution in an earler post, by either using > > Forms(&quot;myform&quot;) or Form(Forms.Count-1). > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of &gt; > > Brett Barabash &gt; Sent: 08 December 2004 22:10 &gt; To: Access > > Developers discussion and problem solving &gt; Subject: RE: [AccessD] > > Set form's Caption without code &gt; &gt; &gt; Andy, &gt; > > Screen.ActiveForm can be really picky, and I try to avoid &gt; using > > it if possible. Can you call it instead using the &gt; following > > syntax: > > &gt; =SetCaption([Form],&quot;x&quot;) &gt; &gt; I would try placing > > this in the On Load event. > > &gt; > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy > > Lacey &gt; Sent: Tuesday, December 07, 2004 4:59 AM &gt; To: Dba &gt; > > Subject: [AccessD] Set form's Caption without code &gt; &gt; Ok, > > here's the thing. I want to make a few forms lightweight &gt; which > > currently have just a line or two in modules. A few &gt; have nothing > > more than a line which dynamically sets the &gt; form's caption. So I > > wrote a little function like &gt; this: > > &gt; > > &gt; Function SetCaption(frm As Form, strCaption As String) &gt; > > frm.Caption = strCaption End Function &gt; &gt; and then changed my > > form's OnOpen from being an Event Procedure to : > > &gt; > > &gt; =SetCaption([Screen].[ActiveForm],&quot;x&quot;) > > &gt; > > &gt; (The &quot;x&quot; is just for testing. The real call would have > > &gt; something a bit more dynamic, like the result of a function > > call.) &gt; &gt; The thing is that it errors because it can't resolve > > &gt; [Screen].[ActiveForm] at that point. Ok, methinks, I'll move &gt; > > > the call. But I can't find where to put it. All of the following > > fail: > > &gt; > > &gt; On Load > > &gt; On GotFocus of the first control > > &gt; On Current > > &gt; > > &gt; The only success I've had is putting a timer interval of 5 &gt; > > and putting the call in OnTimer, but I don't like that much &gt; as > > you can imagine. If I force a call to it once the form's &gt; up then > > there's no problem (eg a command button), but that's &gt; not a lot of > > > use to me either. So I know the function is &gt; fine, but has anyone > > got an answer as to where I might get &gt; this to run from? > > &gt; > > &gt; -- > > &gt; Andy Lacey > > &gt; http://www.minstersystems.co.uk > > -------------------------------------------------------------------------------------------------------------------- > The information in this email may contain confidential information that > is legally privileged. The information is only for the use of the intended > recipient(s) named above. If you are not the intended recipient(s), you > are hereby notified that any disclosure, copying, distribution, or the taking > of any action in regard to the content of this email is strictly prohibited. If > transmission is incorrect, unclear, or incomplete, please notify the sender > immediately. The authorized recipient(s) of this information is/are prohibited > from disclosing this information to any other party and is/are required to > destroy the information after its stated need has been fulfilled. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > This footer also confirms that this email message has been scanned > for the presence of computer viruses.Scanning of this message and > addition of this footer is performed by SurfControl E-mail Filter software > in conjunction with virus detection software. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Thu Dec 9 09:47:10 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 10:47:10 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> Message-ID: <003401c4de06$581556a0$e8dafea9@ColbyM6805> Yes, it does say that (kind of), however: A) MS specifically ALLOWS you to use a single copy on a desktop and a laptop. I have had to call them to get an activation because I installed it on my desktop and then tried to put it on my laptop. They told me that it was OK to do that and gave me an activation code. B) You ARE allowed to move the license from computer to computer. In order to be in compliance you must uninstall it from the previous machine. So the TRANSFER is legal IF you uninstall on the previous system. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Thursday, December 09, 2004 10:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap John: Excuse me for asking this silly question, but doesn't the EULA license agreement for Windows and Office state explicitly that you are licensed ONLY to use your copy of Windows (and Office) on a SINGLE COMPUTER and you may NOT install - or transfer - your copy of Windows (and Office) to another computer? Of course, I know that [probably] 99.9 percent of Windows and Office users do this when they buy a new box, but strictly speaking you are in violation of a legal agreement when you reinstall your software on a new computer. Is this correct, or I am just confused? I purposely wait at least 2-3 years between major hardware/system upgrades because by the time two or three years have passed, CPU speeds have [at least] doubled (if not tripled) and major new versions of Windows and Office have been released - which are usually preinstalled with the new box. In effect, I auto-upgrade my software whenever I buy new hardware - and I always stay totally legal - although it does seem like I spend an awful lot on things like anti-virus software, firewall software, "Anonymizer" software - not to mention all the database and developer tool software ... Now I realize why I always have a high credit card balance! Alan C. Lawhon -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, December 09, 2004 8:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Good laptop cheap Alan, You are definitely too demanding. Look at the prices for notebooks. Sure you can get a DELL, you can get it with Office installed. But you pay a LOT for the privilege. I already own office, I purchased it separately. I own it and I can move it from system to system as I please. If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine. That's just plain silly. Buy a good laptop, get the best price possible. Buy Office, get the best price possible. Because you refused to buy a laptop without Office installed you missed out on the best price for a laptop of that value I have EVER seen. So go ahead, drop an extra 350 dollars and get less of a laptop with Office on it from Dell. Not me! In fact I became a Microsoft "partner" and bought the action pack for $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of other stuff. Why in the world would I pay for a laptop with that stuff installed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 08, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Dec 9 10:03:37 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 09 Dec 2004 08:03:37 -0800 Subject: [AccessD] Good laptop cheap In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> Message-ID: Hi Alan: The new MS software has to be activated, across the internet, before it will remain operational. Even changing hardware components on the computer in question can force the software to re-prompt for activation. I understand that a software package can be activated from a couple of computers without issue but any more... This is sufficient for someone who works at both a standard and home office. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Thursday, December 09, 2004 7:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap John: Excuse me for asking this silly question, but doesn't the EULA license agreement for Windows and Office state explicitly that you are licensed ONLY to use your copy of Windows (and Office) on a SINGLE COMPUTER and you may NOT install - or transfer - your copy of Windows (and Office) to another computer? Of course, I know that [probably] 99.9 percent of Windows and Office users do this when they buy a new box, but strictly speaking you are in violation of a legal agreement when you reinstall your software on a new computer. Is this correct, or I am just confused? I purposely wait at least 2-3 years between major hardware/system upgrades because by the time two or three years have passed, CPU speeds have [at least] doubled (if not tripled) and major new versions of Windows and Office have been released - which are usually preinstalled with the new box. In effect, I auto-upgrade my software whenever I buy new hardware - and I always stay totally legal - although it does seem like I spend an awful lot on things like anti-virus software, firewall software, "Anonymizer" software - not to mention all the database and developer tool software ... Now I realize why I always have a high credit card balance! Alan C. Lawhon -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, December 09, 2004 8:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Good laptop cheap Alan, You are definitely too demanding. Look at the prices for notebooks. Sure you can get a DELL, you can get it with Office installed. But you pay a LOT for the privilege. I already own office, I purchased it separately. I own it and I can move it from system to system as I please. If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine. That's just plain silly. Buy a good laptop, get the best price possible. Buy Office, get the best price possible. Because you refused to buy a laptop without Office installed you missed out on the best price for a laptop of that value I have EVER seen. So go ahead, drop an extra 350 dollars and get less of a laptop with Office on it from Dell. Not me! In fact I became a Microsoft "partner" and bought the action pack for $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of other stuff. Why in the world would I pay for a laptop with that stuff installed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 08, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Dec 9 10:09:07 2004 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 9 Dec 2004 10:09:07 -0600 Subject: [AccessD] Good laptop cheap In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> References: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> Message-ID: It may be different for the versions supplied with a system, but for the retail purchased versions you certainly can transfer to another system as long as you remove from the original system. You are also allowed to install on both a desktop and a portable system as long as it is the same person using the software on both systems. See http://download.microsoft.com/download/1/2/5/12538ba0-3d24-4f00-aab1-dd9ff4aacfc9/en_client_eula.pdf On Thu, 9 Dec 2004 09:17:46 -0600, Lawhon, Alan C Contractor/Morgan Research wrote: > John: > > Excuse me for asking this silly question, but doesn't the EULA license > agreement for Windows and Office state explicitly that you are licensed > ONLY to use your copy of Windows (and Office) on a SINGLE COMPUTER and > you may NOT install - or transfer - your copy of Windows (and Office) to > another computer? Of course, I know that [probably] 99.9 percent of > Windows and Office users do this when they buy a new box, but strictly > speaking you are in violation of a legal agreement when you reinstall > your software on a new computer. > > Is this correct, or I am just confused? > > I purposely wait at least 2-3 years between major hardware/system > upgrades because by the time two or three years have passed, CPU speeds > have [at least] doubled (if not tripled) and major new versions of > Windows and Office have been released - which are usually preinstalled > with the new box. In effect, I auto-upgrade my software whenever I buy > new hardware - and I always stay totally legal - although it does seem > like I spend an awful lot on things like anti-virus software, firewall > software, "Anonymizer" software - not to mention all the database and > developer tool software ... Now I realize why I always have a high > credit card balance! > > > > Alan C. Lawhon > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Thursday, December 09, 2004 8:15 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Good laptop cheap > > Alan, > > You are definitely too demanding. Look at the prices for notebooks. Sure > you can get a DELL, you can get it with Office installed. But you pay a LOT > for the privilege. I already own office, I purchased it separately. I own > it and I can move it from system to system as I please. If you get a > version installed on a laptop, it comes in that laptop's install / restore > disk which won't install on any other machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the best > price possible. > > Because you refused to buy a laptop without Office installed you missed out > on the best price for a laptop of that value I have EVER seen. So go ahead, > drop an extra 350 dollars and get less of a laptop with Office on it from > Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for $300. > I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of > other stuff. Why in the world would I pay for a laptop with that stuff > installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, but, at a > minimum, I expect a computer to come with the current version of Windows - > and a decent version of Microsoft Office - irrespective of "how good" the > price may be. (I read an article several months ago on /. to the effect > that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay > Microsoft something like $49.00 for each copy of Windows; so the software IS > NOT a major component of system cost.) I figure that bundled "home > editions" of Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had tipped > us about. Once I discovered that the M5405 DID NOT have Microsoft Office > installed, (it had some puny collection of utilities that it called > "Microsoft Works"), I said "Sayonara" on that deal and left the store. > > Alan C. Lawhon > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > curious, did either of these come with actual disks for windows and such. > seems there is a trend towards not including such... > > sorry if too OT, > > bob heygood > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no matter > what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: > > For all those who were not able to take advantage of the Emachines > > laptop (or didn't trust the brand) > > > > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > > 6851267&tab=6 > > > > A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines > > but still a good deal. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Thu Dec 9 10:41:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 11:41:24 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: Message-ID: <003901c4de0d$ebbfc050$e8dafea9@ColbyM6805> I have read that the OEM versions are ONLY for use on the system that the install disk is for. It is not legal to, and the manufacturers put a check in to prevent, using the install disk with any other hardware. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, December 09, 2004 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap It may be different for the versions supplied with a system, but for the retail purchased versions you certainly can transfer to another system as long as you remove from the original system. You are also allowed to install on both a desktop and a portable system as long as it is the same person using the software on both systems. See http://download.microsoft.com/download/1/2/5/12538ba0-3d24-4f00-aab1-dd9ff4a acfc9/en_client_eula.pdf On Thu, 9 Dec 2004 09:17:46 -0600, Lawhon, Alan C Contractor/Morgan Research wrote: > John: > > Excuse me for asking this silly question, but doesn't the EULA license > agreement for Windows and Office state explicitly that you are > licensed ONLY to use your copy of Windows (and Office) on a SINGLE > COMPUTER and you may NOT install - or transfer - your copy of Windows > (and Office) to another computer? Of course, I know that [probably] > 99.9 percent of Windows and Office users do this when they buy a new > box, but strictly speaking you are in violation of a legal agreement > when you reinstall your software on a new computer. > > Is this correct, or I am just confused? > > I purposely wait at least 2-3 years between major hardware/system > upgrades because by the time two or three years have passed, CPU > speeds have [at least] doubled (if not tripled) and major new versions > of Windows and Office have been released - which are usually > preinstalled with the new box. In effect, I auto-upgrade my software > whenever I buy new hardware - and I always stay totally legal - > although it does seem like I spend an awful lot on things like > anti-virus software, firewall software, "Anonymizer" software - not to > mention all the database and developer tool software ... Now I > realize why I always have a high credit card balance! > > > > Alan C. Lawhon > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Thursday, December 09, 2004 8:15 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Good laptop cheap > > Alan, > > You are definitely too demanding. Look at the prices for notebooks. > Sure you can get a DELL, you can get it with Office installed. But > you pay a LOT for the privilege. I already own office, I purchased it > separately. I own it and I can move it from system to system as I > please. If you get a version installed on a laptop, it comes in that > laptop's install / restore disk which won't install on any other > machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the > best price possible. > > Because you refused to buy a laptop without Office installed you > missed out on the best price for a laptop of that value I have EVER > seen. So go ahead, drop an extra 350 dollars and get less of a laptop > with Office on it from Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for > $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a > TON of other stuff. Why in the world would I pay for a laptop with > that stuff installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, > Alan C Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, > but, at a minimum, I expect a computer to come with the current > version of Windows - and a decent version of Microsoft Office - > irrespective of "how good" the price may be. (I read an article > several months ago on /. to the effect that mass market PC sellers > like Dell, Gateway, Toshiba and eMachines pay Microsoft something like > $49.00 for each copy of Windows; so the software IS NOT a major > component of system cost.) I figure that bundled "home editions" of > Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had > tipped us about. Once I discovered that the M5405 DID NOT have > Microsoft Office installed, (it had some puny collection of utilities > that it called "Microsoft Works"), I said "Sayonara" on that deal and > left the store. > > Alan C. Lawhon > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > curious, did either of these come with actual disks for windows and > such. seems there is a trend towards not including such... > > sorry if too OT, > > bob heygood > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no > matter what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: > > For all those who were not able to take advantage of the Emachines > > laptop (or didn't trust the brand) > > > > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& > skuId= > > 6851267&tab=6 > > > > A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines > > but still a good deal. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwhittinghill at symphonyinfo.com Thu Dec 9 10:46:56 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 9 Dec 2004 10:46:56 -0600 Subject: [AccessD] VSS and getting an older Version of VB6 project References: <100F91B31300334B89EC531C9DCB08653F61C9@tccexch01.tappeconstruction.net> Message-ID: <000c01c4de0e$b28add50$2601a8c0@Symphony.local> Thanks, Brett. I was paranoid about accidentally rolling back. If I highlight the labelled version and choose Recursive and Make Writable, I can reproduce the whole project in one shot. Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com ----- Original Message ----- From: "Brett Barabash" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 08, 2004 4:14 PM Subject: RE: [AccessD] VSS and getting an older Version of VB6 project > Mark, > In VSS Explorer, right click on the project file and select Show > History... > Press OK to the dialog it displays and it will show you a revision > history. > Click on the version you would like to revert to and press the Get > button. > Select a file path to save the file to (preferably one that won't > overwrite your current project). > Repeat as necessary for all other forms, modules, classes, etc. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark > Whittinghill > Sent: Wednesday, December 08, 2004 10:07 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] VSS and getting an older Version of VB6 project > > > Hi all, > > I have a VB6 project that I have source safed. I create labels at > various points in development. I would like to rebuild my source code > from a previous version, but I don't want to rollback from the most > recent. Can anyone tell me how to do this? Thanks, > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -------------------------------------------------------------------------- ------------------------------------------ > The information in this email may contain confidential information that > is legally privileged. The information is only for the use of the intended > recipient(s) named above. If you are not the intended recipient(s), you > are hereby notified that any disclosure, copying, distribution, or the taking > of any action in regard to the content of this email is strictly prohibited. If > transmission is incorrect, unclear, or incomplete, please notify the sender > immediately. The authorized recipient(s) of this information is/are prohibited > from disclosing this information to any other party and is/are required to > destroy the information after its stated need has been fulfilled. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > This footer also confirms that this email message has been scanned > for the presence of computer viruses.Scanning of this message and > addition of this footer is performed by SurfControl E-mail Filter software > in conjunction with virus detection software. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Dec 9 10:59:08 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 08:59:08 -0800 Subject: [AccessD] missing reference, converting to A2003 Message-ID: If you uncheck the reference, does the code compile? Since the reference is to an ocx file, you should only need it if you're using the activex control in the application, in which case, it would have to be installed on your system. Charlotte Foust -----Original Message----- From: pedro at plex.nl [mailto:pedro at plex.nl] Sent: Thursday, December 09, 2004 4:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] missing reference, converting to A2003 Hello Group, when converting a A2k database to A2003 i get an missing reference error. Missing is the effect library (MMEFXE.OCX). I searched the system for this reference, but i can't find it. Also in the knowledge base i can't find any info. Has anybody encountered this problem. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Susan.Klos at fldoe.org Thu Dec 9 11:05:42 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Thu, 9 Dec 2004 12:05:42 -0500 Subject: [AccessD] Populate a list box using the same criteria which opens the form Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE7399B@doesefpeml02.eus.fldoe.int> I have one form which is opened in several different ways by clicking buttons on the menu form. On the form is a list box that shows project names. Whenever the form is opened the list box shows only the user's projects, which is just what I want most of the time. However, one of the buttons on the menu allows the user to open the form and just see the user's open projects. The code below is in the onmouseup event of the button on the menu: Private Sub FindOpenProjectsOpen_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim stDocName As String Dim stLinkCriteria1 As String Dim stLinkCriteria2 As String Dim stLinkCriteria As String Dim StCriteria As String Me.FindOpenProjectsOpen.Visible = True Me.FindOpenProjectsClick.Visible = False stDocName = "frmProjects" stLinkCriteria = "[UserID]=" & "'" & Me![UsersName] & "'" StCriteria = IsNull(DLookup("[ProjectID]", "tblProject", "Complete")) stLinkCriteria2 = "[Complete]=" & StCriteria stLinkCriteria1 = stLinkCriteria & " and " & stLinkCriteria2 If IsNull(DLookup("[ProjectID]", "tblProject", stLinkCriteria)) Then MsgBox "You have not recorded any projects yet." Else DoCmd.Close DoCmd.OpenForm stDocName, , , stLinkCriteria1 End If End Sub The query which populates the list box is: SELECT tblProject.ProjectID, tblProject.ProjectName, tblProject.Complete FROM tblProject WHERE (((tblProject.UserID)=Environ("username"))) ORDER BY tblProject.ProjectName; Right now the list box always opens showing all of the user's projects complete or open. I want to send a parameter to the query that tells it to populate the listbox with open user projects (isnull[complete] ) whenever the form opens showing only open user projects. Otherwise it needs to show all user projects. Any help would be greatly appreciated. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From cfoust at infostatsystems.com Thu Dec 9 11:01:38 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 09:01:38 -0800 Subject: [AccessD] Good laptop cheap Message-ID: You're correct, John. OEM versions are normally tweaked for the particular vendor's system. They might work on another system, but the EULA specifically prohibits that, since OEM versions are only licensed for sale with a new computer. Interestingly enough, I have an OEM version of Office 2000 that came from Microsoft as a replacement for a bad retail set. I've never quite figured that one out. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, December 09, 2004 8:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Good laptop cheap I have read that the OEM versions are ONLY for use on the system that the install disk is for. It is not legal to, and the manufacturers put a check in to prevent, using the install disk with any other hardware. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, December 09, 2004 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap It may be different for the versions supplied with a system, but for the retail purchased versions you certainly can transfer to another system as long as you remove from the original system. You are also allowed to install on both a desktop and a portable system as long as it is the same person using the software on both systems. See http://download.microsoft.com/download/1/2/5/12538ba0-3d24-4f00-aab1-dd9 ff4a acfc9/en_client_eula.pdf On Thu, 9 Dec 2004 09:17:46 -0600, Lawhon, Alan C Contractor/Morgan Research wrote: > John: > > Excuse me for asking this silly question, but doesn't the EULA license > agreement for Windows and Office state explicitly that you are > licensed ONLY to use your copy of Windows (and Office) on a SINGLE > COMPUTER and you may NOT install - or transfer - your copy of Windows > (and Office) to another computer? Of course, I know that [probably] > 99.9 percent of Windows and Office users do this when they buy a new > box, but strictly speaking you are in violation of a legal agreement > when you reinstall your software on a new computer. > > Is this correct, or I am just confused? > > I purposely wait at least 2-3 years between major hardware/system > upgrades because by the time two or three years have passed, CPU > speeds have [at least] doubled (if not tripled) and major new versions > of Windows and Office have been released - which are usually > preinstalled with the new box. In effect, I auto-upgrade my software > whenever I buy new hardware - and I always stay totally legal - > although it does seem like I spend an awful lot on things like > anti-virus software, firewall software, "Anonymizer" software - not to > mention all the database and developer tool software ... Now I > realize why I always have a high credit card balance! > > > > Alan C. Lawhon > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Thursday, December 09, 2004 8:15 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Good laptop cheap > > Alan, > > You are definitely too demanding. Look at the prices for notebooks. > Sure you can get a DELL, you can get it with Office installed. But > you pay a LOT for the privilege. I already own office, I purchased it > separately. I own it and I can move it from system to system as I > please. If you get a version installed on a laptop, it comes in that > laptop's install / restore disk which won't install on any other > machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the > best price possible. > > Because you refused to buy a laptop without Office installed you > missed out on the best price for a laptop of that value I have EVER > seen. So go ahead, drop an extra 350 dollars and get less of a laptop > with Office on it from Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for > $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a > TON of other stuff. Why in the world would I pay for a laptop with > that stuff installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, > Alan C Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, > but, at a minimum, I expect a computer to come with the current > version of Windows - and a decent version of Microsoft Office - > irrespective of "how good" the price may be. (I read an article > several months ago on /. to the effect that mass market PC sellers > like Dell, Gateway, Toshiba and eMachines pay Microsoft something like > $49.00 for each copy of Windows; so the software IS NOT a major > component of system cost.) I figure that bundled "home editions" of > Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had > tipped us about. Once I discovered that the M5405 DID NOT have > Microsoft Office installed, (it had some puny collection of utilities > that it called "Microsoft Works"), I said "Sayonara" on that deal and > left the store. > > Alan C. Lawhon > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > curious, did either of these come with actual disks for windows and > such. seems there is a trend towards not including such... > > sorry if too OT, > > bob heygood > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no > matter what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: > > For all those who were not able to take advantage of the Emachines > > laptop (or didn't trust the brand) > > > > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& > skuId= > > 6851267&tab=6 > > > > A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines > > but still a good deal. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 9 11:05:17 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 09:05:17 -0800 Subject: [AccessD] Event only if sending report to the printer Message-ID: You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Dec 9 11:17:23 2004 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 9 Dec 2004 11:17:23 -0600 Subject: [AccessD] Good laptop cheap In-Reply-To: <003901c4de0d$ebbfc050$e8dafea9@ColbyM6805> References: <003901c4de0d$ebbfc050$e8dafea9@ColbyM6805> Message-ID: That's part of the reason they are offered at a lower price I suppose eh? I'm an Action Pack partner too now, so no more buying OEM copies for me.. On Thu, 09 Dec 2004 11:41:24 -0500, John W. Colby wrote: > I have read that the OEM versions are ONLY for use on the system that the > install disk is for. It is not legal to, and the manufacturers put a check > in to prevent, using the install disk with any other hardware. > > > > John W. Colby -- Gary Kjos garykjos at gmail.com From jmhla at earthlink.net Thu Dec 9 11:45:09 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 9 Dec 2004 09:45:09 -0800 Subject: [AccessD] Event only if sending report to the printer In-Reply-To: Message-ID: <002e01c4de16$d7176d20$110110ac@delllaptop> Charlotte, How do I get to the printer object of the report? User normally has 3 hole paper in printer and needs to change to Print ( as opposed to preview) the report Currently this code lives in the report header print event: Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer) Dim lngRetval As Long lngRetval = MsgBox( _ "Please make sure the correct paper is the printer for printing Purchase Orders." & vbCrLf & "" & vbCrLf & "Click OK when ready.", _ vbOKOnly + vbExclamation + vbSystemModal + vbDefaultButton1, _ "Check Paper in Printer") Select Case lngRetval Case vbOK End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net Subject: RE: [AccessD] Event only if sending repo-----Original Message-----rt to the printer You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JohnSkolits at corproatedatadesign.com Thu Dec 9 14:18:23 2004 From: JohnSkolits at corproatedatadesign.com (Spam) Date: Thu, 9 Dec 2004 15:18:23 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Message-ID: <006101c4de2c$3bf75a10$6901a8c0@OFFICEXP1> Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John From ssharkins at bellsouth.net Thu Dec 9 14:44:09 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 9 Dec 2004 15:44:09 -0500 Subject: [AccessD] callback functions Message-ID: <20041209204431.ZDGT2421.imf24aec.mail.bellsouth.net@SUSANONE> Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. From jwcolby at colbyconsulting.com Thu Dec 9 15:03:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 16:03:45 -0500 Subject: [AccessD] callback functions In-Reply-To: <20041209204431.ZDGT2421.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <004201c4de32$96320c90$e8dafea9@ColbyM6805> Nope. What else are they used for? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 3:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Thu Dec 9 15:11:03 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 9 Dec 2004 16:11:03 -0500 Subject: [AccessD] callback functions In-Reply-To: <20041209204431.ZDGT2421.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <002701c4de33$996380f0$0b08a845@hargrove.internal> Yup. What do you need to know? Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 3:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Dec 9 15:21:48 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 9 Dec 2004 13:21:48 -0800 Subject: [AccessD] callback functions In-Reply-To: <20041209204431.ZDGT2421.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: Yes, I used it to aggravate myself into oblivion trying to figure it out :) D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 12:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Dec 9 15:12:21 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 9 Dec 2004 15:12:21 -0600 Subject: [AccessD] callback functions Message-ID: <123701F54509D9119A4F00D0B747349016D10F@main2.marlow.com> Yes, but it's only good in Access97, when you had to use a 'hacked' AddressOf function. Once AddressOf was available in A2k and up, Callback functions became a little unstable. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, December 09, 2004 2:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JohnSkolits at corporatedatadesign.com Thu Dec 9 15:15:14 2004 From: JohnSkolits at corporatedatadesign.com (Spam) Date: Thu, 9 Dec 2004 16:15:14 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine In-Reply-To: <004201c4de32$96320c90$e8dafea9@ColbyM6805> Message-ID: <006f01c4de34$2d446820$6901a8c0@OFFICEXP1> Sorry if this was posted twice. Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John From cfoust at infostatsystems.com Thu Dec 9 15:43:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 13:43:27 -0800 Subject: [AccessD] Event only if sending report to the printer Message-ID: Are you using AXP? If you aren't, you're out of luck. If you are, the Printer property of the report will return a pointer to the Printer object. But it sounds like you just want to tell them to change the paper, so I don't see a reason to use the Printer object. You can't print from Preview without taking some action, so I would trap that action and insert the message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, December 09, 2004 9:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Event only if sending report to the printer Charlotte, How do I get to the printer object of the report? User normally has 3 hole paper in printer and needs to change to Print ( as opposed to preview) the report Currently this code lives in the report header print event: Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer) Dim lngRetval As Long lngRetval = MsgBox( _ "Please make sure the correct paper is the printer for printing Purchase Orders." & vbCrLf & "" & vbCrLf & "Click OK when ready.", _ vbOKOnly + vbExclamation + vbSystemModal + vbDefaultButton1, _ "Check Paper in Printer") Select Case lngRetval Case vbOK End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net Subject: RE: [AccessD] Event only if sending repo-----Original Message-----rt to the printer You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 9 15:48:24 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 13:48:24 -0800 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Message-ID: Our clients run like this all the time. We assume that our users are NOT the OS administrators. Are you using Access security? In order to delete records, they have to be able to log in and create the LDB file if it doesn't already exist. If they have no permissions to create/write/delete that file, they won't be able to delete any records. Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 1:15 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Sorry if this was posted twice. Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 9 15:49:36 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 13:49:36 -0800 Subject: [AccessD] callback functions Message-ID: Not recently. What are you trying to do? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, December 09, 2004 12:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JohnSkolits at corporatedatadesign.com Thu Dec 9 16:40:31 2004 From: JohnSkolits at corporatedatadesign.com (Spam) Date: Thu, 9 Dec 2004 17:40:31 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine In-Reply-To: Message-ID: <008301c4de40$173a33a0$6901a8c0@OFFICEXP1> There is no access security and the ldb file will be created in the same folder as the app. And they should have all rights to that folder. So I'm not sure who or what is preventing the ability to add or delete data. Note that even "super user" doesn't work. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 09, 2004 4:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine Our clients run like this all the time. We assume that our users are NOT the OS administrators. Are you using Access security? In order to delete records, they have to be able to log in and create the LDB file if it doesn't already exist. If they have no permissions to create/write/delete that file, they won't be able to delete any records. Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 1:15 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Sorry if this was posted twice. Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Dec 9 16:41:53 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 9 Dec 2004 17:41:53 -0500 Subject: [AccessD] callback functions In-Reply-To: <002701c4de33$996380f0$0b08a845@hargrove.internal> Message-ID: <20041209224154.LXOK2443.imf18aec.mail.bellsouth.net@SUSANONE> I'm not trying to do anything specific myself -- I'm just looking for ways that YOU guys use them in Access. ;) I've only used them to populate list controls. Susan H. Yup. What do you need to know? From cfoust at infostatsystems.com Thu Dec 9 18:22:53 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 16:22:53 -0800 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Message-ID: If there is no Access security, then it has to be a Windows permissions issue, which is outside the scope of Access. You have checked to be sure the mdb file isn't read only, right? Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 2:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine There is no access security and the ldb file will be created in the same folder as the app. And they should have all rights to that folder. So I'm not sure who or what is preventing the ability to add or delete data. Note that even "super user" doesn't work. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 09, 2004 4:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine Our clients run like this all the time. We assume that our users are NOT the OS administrators. Are you using Access security? In order to delete records, they have to be able to log in and create the LDB file if it doesn't already exist. If they have no permissions to create/write/delete that file, they won't be able to delete any records. Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 1:15 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Sorry if this was posted twice. Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 9 18:23:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 16:23:50 -0800 Subject: [AccessD] callback functions Message-ID: There was a section in the ADH that dealt with them, if I remember correctly. Or maybe it was a Ken Getz article somewhere... Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, December 09, 2004 2:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] callback functions I'm not trying to do anything specific myself -- I'm just looking for ways that YOU guys use them in Access. ;) I've only used them to populate list controls. Susan H. Yup. What do you need to know? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 9 19:18:46 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 9 Dec 2004 20:18:46 -0500 Subject: [AccessD] Good laptop cheap References: <003101c4ddf9$6ddc3600$e8dafea9@ColbyM6805> Message-ID: "If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine." JC ..while I agree with most of your post JC, that part simply isn't so, at least for Dells ...both the OS and the Office suite will install on any system capable of running them ...done it way too many times ...what you have to watch for with Dell and Office is that they offer an MS Office "Basic" version preinstalled which looks like a good deal until you see its missing key pieces. William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:14 AM Subject: RE: [AccessD] Good laptop cheap > Alan, > > You are definitely too demanding. Look at the prices for notebooks. Sure > you can get a DELL, you can get it with Office installed. But you pay a > LOT > for the privilege. I already own office, I purchased it separately. I > own > it and I can move it from system to system as I please. If you get a > version installed on a laptop, it comes in that laptop's install / restore > disk which won't install on any other machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the best > price possible. > > Because you refused to buy a laptop without Office installed you missed > out > on the best price for a laptop of that value I have EVER seen. So go > ahead, > drop an extra 350 dollars and get less of a laptop with Office on it from > Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for > $300. > I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of > other stuff. Why in the world would I pay for a laptop with that stuff > installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, but, at > a > minimum, I expect a computer to come with the current version of Windows - > and a decent version of Microsoft Office - irrespective of "how good" the > price may be. (I read an article several months ago on /. to the effect > that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay > Microsoft something like $49.00 for each copy of Windows; so the software > IS > NOT a major component of system cost.) I figure that bundled "home > editions" of Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had > tipped > us about. Once I discovered that the M5405 DID NOT have Microsoft Office > installed, (it had some puny collection of utilities that it called > "Microsoft Works"), I said "Sayonara" on that deal and left the store. > > Alan C. Lawhon > > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > > curious, did either of these come with actual disks for windows and such. > seems there is a trend towards not including such... > > sorry if too OT, > > > bob heygood > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no matter > what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > > > > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: >> For all those who were not able to take advantage of the Emachines >> laptop (or didn't trust the brand) >> >> > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= >> 6851267&tab=6 >> >> A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines >> but still a good deal. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Dec 9 19:42:47 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 20:42:47 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: Message-ID: <000601c4de59$90626680$e8dafea9@ColbyM6805> OMG, back from the dead. Where the HELL have you been? I am sure various manufacturers have various deals with Microsoft. What I do know is that I have run into cases where I tried to install a "restore" disk on a computer other than the intended target and the software refused to install. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 09, 2004 8:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap "If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine." JC ..while I agree with most of your post JC, that part simply isn't so, at least for Dells ...both the OS and the Office suite will install on any system capable of running them ...done it way too many times ...what you have to watch for with Dell and Office is that they offer an MS Office "Basic" version preinstalled which looks like a good deal until you see its missing key pieces. William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:14 AM Subject: RE: [AccessD] Good laptop cheap > Alan, > > You are definitely too demanding. Look at the prices for notebooks. > Sure you can get a DELL, you can get it with Office installed. But > you pay a LOT for the privilege. I already own office, I purchased it > separately. I own > it and I can move it from system to system as I please. If you get a > version installed on a laptop, it comes in that laptop's install / restore > disk which won't install on any other machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the > best price possible. > > Because you refused to buy a laptop without Office installed you > missed > out > on the best price for a laptop of that value I have EVER seen. So go > ahead, > drop an extra 350 dollars and get less of a laptop with Office on it from > Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for > $300. > I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of > other stuff. Why in the world would I pay for a laptop with that stuff > installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, > Alan C Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, > but, at > a > minimum, I expect a computer to come with the current version of Windows - > and a decent version of Microsoft Office - irrespective of "how good" the > price may be. (I read an article several months ago on /. to the effect > that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay > Microsoft something like $49.00 for each copy of Windows; so the software > IS > NOT a major component of system cost.) I figure that bundled "home > editions" of Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had > tipped > us about. Once I discovered that the M5405 DID NOT have Microsoft Office > installed, (it had some puny collection of utilities that it called > "Microsoft Works"), I said "Sayonara" on that deal and left the store. > > Alan C. Lawhon > > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > > curious, did either of these come with actual disks for windows and > such. seems there is a trend towards not including such... > > sorry if too OT, > > > bob heygood > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no > matter what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > > > > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: >> For all those who were not able to take advantage of the Emachines >> laptop (or didn't trust the brand) >> >> > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& > skuId= >> 6851267&tab=6 >> >> A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines >> but still a good deal. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Dec 9 19:44:12 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 20:44:12 -0500 Subject: [AccessD] callback functions In-Reply-To: Message-ID: <000701c4de59$bff72fc0$e8dafea9@ColbyM6805> ROTFL! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Thursday, December 09, 2004 4:22 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] callback functions Yes, I used it to aggravate myself into oblivion trying to figure it out :) D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 12:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 9 20:08:37 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 9 Dec 2004 21:08:37 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine References: <006101c4de2c$3bf75a10$6901a8c0@OFFICEXP1> Message-ID: John ..I run several client systems with Access runtimes without giving anyone admin rights ..have you looked at your group policies? ...if others are making changes there it can have unintended consequences like you describe. ..for a couple of legacy DOS apps that refused to run without admin rights no matter what I did I've resorted to using shortcuts with the "run as" command ...see: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_security_runas_shortcut.mspx ..this lets a user run a specific app with the admin rights you specify and I've had little problem with it ...but of course ANY time you've got someone logged on with admin rights there is a potential for severe problems ...so I limit it to cases where nothing else gets the job done, not just as an easy out. ..I did have some problems initially with the Win2003/XP SPS2 combo and Access runtimes after the upgrade to Win2003 ...the only answer I found was to repackage the runtime deployment in that environment ...I have no explanation for it and its more than possible there's another solution I'm not aware of. ..hth :) William Hindman ----- Original Message ----- From: "Spam" To: Sent: Thursday, December 09, 2004 3:18 PM Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JohnSkolits at corporatedatadesign.com Thu Dec 9 20:22:45 2004 From: JohnSkolits at corporatedatadesign.com (Spam) Date: Thu, 9 Dec 2004 21:22:45 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine In-Reply-To: Message-ID: <00a701c4de5f$22afea30$6901a8c0@OFFICEXP1> Thanks Charlotte and William. Charlotte: I think if the MDB was read only, then it wouldn't work when logged into the OS as administrator: William: I'll pass these ideas onto my customer. Hopefully one of them will work. Thanks a million! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 09, 2004 9:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Running Access 2002 runtime on an Windows XP machine John ..I run several client systems with Access runtimes without giving anyone admin rights ..have you looked at your group policies? ...if others are making changes there it can have unintended consequences like you describe. ..for a couple of legacy DOS apps that refused to run without admin rights no matter what I did I've resorted to using shortcuts with the "run as" command ...see: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en- us/windows_security_runas_shortcut.mspx ..this lets a user run a specific app with the admin rights you specify and I've had little problem with it ...but of course ANY time you've got someone logged on with admin rights there is a potential for severe problems ...so I limit it to cases where nothing else gets the job done, not just as an easy out. ..I did have some problems initially with the Win2003/XP SPS2 combo and Access runtimes after the upgrade to Win2003 ...the only answer I found was to repackage the runtime deployment in that environment ...I have no explanation for it and its more than possible there's another solution I'm not aware of. ..hth :) William Hindman ----- Original Message ----- From: "Spam" To: Sent: Thursday, December 09, 2004 3:18 PM Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Thu Dec 9 20:30:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 9 Dec 2004 18:30:54 -0800 Subject: [AccessD] Event only if sending report to the printer In-Reply-To: Message-ID: <001f01c4de60$49c7e400$110110ac@delllaptop> I am in XP. Where is printer event vs. preview event JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 09, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Event only if sending report to the printer Are you using AXP? If you aren't, you're out of luck. If you are, the Printer property of the report will return a pointer to the Printer object. But it sounds like you just want to tell them to change the paper, so I don't see a reason to use the Printer object. You can't print from Preview without taking some action, so I would trap that action and insert the message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, December 09, 2004 9:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Event only if sending report to the printer Charlotte, How do I get to the printer object of the report? User normally has 3 hole paper in printer and needs to change to Print ( as opposed to preview) the report Currently this code lives in the report header print event: Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer) Dim lngRetval As Long lngRetval = MsgBox( _ "Please make sure the correct paper is the printer for printing Purchase Orders." & vbCrLf & "" & vbCrLf & "Click OK when ready.", _ vbOKOnly + vbExclamation + vbSystemModal + vbDefaultButton1, _ "Check Paper in Printer") Select Case lngRetval Case vbOK End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net Subject: RE: [AccessD] Event only if sending repo-----Original Message-----rt to the printer You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 9 20:54:26 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 9 Dec 2004 21:54:26 -0500 Subject: [AccessD] Good laptop cheap References: <000601c4de59$90626680$e8dafea9@ColbyM6805> Message-ID: ..there is a difference between a "restore" disk and an OEM CD copy of the installed software, what Dell always gives you ...a true "restore" disk is mapped to a HD directory structure and almost certainly would not work if that environment isn't present ...Compaq used to be guilty of that but I've not used them in years now. William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 8:42 PM Subject: RE: [AccessD] Good laptop cheap > OMG, back from the dead. Where the HELL have you been? > > I am sure various manufacturers have various deals with Microsoft. What I > do know is that I have run into cases where I tried to install a "restore" > disk on a computer other than the intended target and the software refused > to install. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, December 09, 2004 8:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > > "If you get a version installed on a laptop, it comes in that laptop's > install / restore disk which won't install on any other machine." JC > > ..while I agree with most of your post JC, that part simply isn't so, at > least for Dells ...both the OS and the Office suite will install on any > system capable of running them ...done it way too many times ...what you > have to watch for with Dell and Office is that they offer an MS Office > "Basic" version preinstalled which looks like a good deal until you see > its > missing key pieces. > > William Hindman > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, December 09, 2004 9:14 AM > Subject: RE: [AccessD] Good laptop cheap > > >> Alan, >> >> You are definitely too demanding. Look at the prices for notebooks. >> Sure you can get a DELL, you can get it with Office installed. But >> you pay a LOT for the privilege. I already own office, I purchased it >> separately. I own >> it and I can move it from system to system as I please. If you get a >> version installed on a laptop, it comes in that laptop's install / >> restore >> disk which won't install on any other machine. That's just plain silly. >> >> Buy a good laptop, get the best price possible. Buy Office, get the >> best price possible. >> >> Because you refused to buy a laptop without Office installed you >> missed >> out >> on the best price for a laptop of that value I have EVER seen. So go >> ahead, >> drop an extra 350 dollars and get less of a laptop with Office on it from >> Dell. >> >> Not me! >> >> In fact I became a Microsoft "partner" and bought the action pack for >> $300. >> I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of >> other stuff. Why in the world would I pay for a laptop with that stuff >> installed? >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, >> Alan C Contractor/Morgan Research >> Sent: Wednesday, December 08, 2004 3:45 PM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Good laptop cheap >> >> >> Bob: >> >> You ask a good question ... I may be "too demanding" or whatever, >> but, at >> a >> minimum, I expect a computer to come with the current version of >> Windows - >> and a decent version of Microsoft Office - irrespective of "how good" the >> price may be. (I read an article several months ago on /. to the effect >> that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay >> Microsoft something like $49.00 for each copy of Windows; so the software >> IS >> NOT a major component of system cost.) I figure that bundled "home >> editions" of Windows and Office [together] probably cost the retail >> seller >> somewhere around $125.00. >> >> I went down to Best Buy last Friday to check out the $750.00 (after >> rebates) eMachines model M5405 notebook computer that John Colby had >> tipped >> us about. Once I discovered that the M5405 DID NOT have Microsoft Office >> installed, (it had some puny collection of utilities that it called >> "Microsoft Works"), I said "Sayonara" on that deal and left the store. >> >> Alan C. Lawhon >> >> >> -----Original Message----- >> From: Bob Heygood [mailto:bheygood at abestsystems.com] >> Sent: Wednesday, December 08, 2004 2:03 PM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Good laptop cheap >> >> >> curious, did either of these come with actual disks for windows and >> such. seems there is a trend towards not including such... >> >> sorry if too OT, >> >> >> bob heygood >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen >> Sent: Wednesday, December 08, 2004 10:38 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Good laptop cheap >> >> >> Don't do it John, >> >> I never look at PC specs after I have purchased a PC, because no >> matter what, you will see a better deal. >> >> I hope that you enjoy the new machine, >> >> Mark >> >> >> >> >> >> On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby >> wrote: >>> For all those who were not able to take advantage of the Emachines >>> laptop (or didn't trust the brand) >>> >>> >> http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& >> skuId= >>> 6851267&tab=6 >>> >>> A nice Toshiba for $650 after rebates. Not as much machine as the >> Emachines >>> but still a good deal. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> Contribute your unused CPU cycles to a good cause: >>> http://folding.stanford.edu/ >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From d.dick at uws.edu.au Thu Dec 9 21:28:04 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 10 Dec 2004 14:28:04 +1100 Subject: [AccessD] A2003: FTP and Network Connection Gurus In-Reply-To: <41B84428.16247.A76C13B@lexacorp.com.pg> Message-ID: <200412100328.iBA3SAx7013523@cooper.uws.edu.au> Hi Stuart Can't get it to work It should be simple All I see is a constant running (Like credits at the end of a movie but really really fast) of text in a DOS window DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, 9 December 2004 1:25 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things The client's > Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the back > end of the app (About 4meg) to the FTP location he supplied with the > credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript > Secondly how do I then link a front end to this FTP'd backend? > I know the IPADRRESS of the FTP destination, but don't know the share > or what the 'true' location of the FTP'd file is > > I have relinking code that can link to all the tables in say.... > \\123.123.456.789\SomeShare\SomedB.mdb > But how to I work out a path like that from the FTP info I have so far?? > You can't. His FTP structure does not necessarily bear any resemblance to the path which Access will use. You will have to ask the recipient what UNC path the FE will access the BE through. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 9 21:28:04 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 10 Dec 2004 14:28:04 +1100 Subject: [AccessD] A2003: FTP and Network Connection Gurus In-Reply-To: Message-ID: <200412100328.iBA3SAx6013523@cooper.uws.edu.au> Hi Gustav Do you have a working example? After 5 hours - yes 5 hours - I give up DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, 9 December 2004 8:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus Hi Darren If you prefer a little more than a DOS box for the user to view, go and pick Windows Command Line FTP and the Access module to drive it: http://www.pacific.net/~ken/software/ /gustav >>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things The client's > Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the back > end of the app (About 4meg) to the FTP location he supplied with the > credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Thu Dec 9 21:44:46 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 9 Dec 2004 19:44:46 -0800 Subject: [AccessD] Access XP Printer Event x posted Message-ID: <000101c4de6a$97c27620$110110ac@delllaptop> Come out come out where ever you are. I want a message message box only if a report goes to the printer, not if I preview the report. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Thu Dec 9 21:55:48 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 9 Dec 2004 19:55:48 -0800 Subject: [AccessD] Still cant kill the cancel messgae in No Data Event Message-ID: <000401c4de6c$25fa6e60$110110ac@delllaptop> Thanks Karen, I tried your code. It did not work. I still get report action has been canceled. How do I make it go away. On Error GoTo PROC_ERR 'TVCodeTools ErrorEnablerEnd Dim lngRetval As Long lngRetval = MsgBox( "There are no products requiring a QAIP Form in for this Purcase Order.", _ vbOKOnly + vbInformation + vbSystemModal + vbDefaultButton1, _ "No QAIP for this PO") Select Case lngRetval Case vbOK pintCancel = 1 End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From artful at rogers.com Thu Dec 9 23:19:14 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 10 Dec 2004 00:19:14 -0500 Subject: [AccessD] callback functions In-Reply-To: <20041209224154.LXOK2443.imf18aec.mail.bellsouth.net@SUSANONE> References: <20041209224154.LXOK2443.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <41B931D2.2050602@rogers.com> I haven't done it, Susan, but an obvious candidate would be an itelligent progress bar. A. Susan Harkins wrote: >I'm not trying to do anything specific myself -- I'm just looking for ways >that YOU guys use them in Access. ;) I've only used them to populate list >controls. > >Susan H. > >Yup. What do you need to know? > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.8 - Release Date: 12/8/2004 From william.thompson1 at att.net Fri Dec 10 00:12:40 2004 From: william.thompson1 at att.net (William Thompson) Date: Thu, 9 Dec 2004 22:12:40 -0800 Subject: [AccessD] Row Limitations for ListBoxes In-Reply-To: <002e01c4de16$d7176d20$110110ac@delllaptop> Message-ID: <200412100612.iBA6Cal05886@databaseadvisors.com> What is the row limitation for a multi-select list box if the row source is a) a query b) a string of values separate by ";" c) a list fill using the call back function (which I assume has no limitation) I need to build a sql string that inserts records via a connection execute for all records selected. Thanks for any help, Bill Thompson From Paul.Rogers at SummitMedia.co.uk Fri Dec 10 02:50:28 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 10 Dec 2004 08:50:28 -0000 Subject: [AccessD] 2 MySql posers Message-ID: Is there a simple way to rename a Primary Key column in MySql, please? None is listed in my tutorials. One way might be to delete the column and add a replacement. But once records are introduced, it seems, I can't replace a Primary Key column. Be grateful for guidance from one of our gurus please. Is there a simple way to back-up a table in MySql? I keep getting caught out by forgetting WHERE and messing up masses of rows. Cheers paul From R.Griffiths at bury.gov.uk Fri Dec 10 05:14:18 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 10 Dec 2004 11:14:18 -0000 Subject: [AccessD] Design question Message-ID: Hi Group Design issue - how to store the title for a person record Option 1 tblPerson ------------- titleID firstname lastname Option 2 tblPerson ------------- title (contains actual value from tblTitle e.g Mr,Miss, Mrs, Ms.,Dr., Prof.) firstname lastname Issues For option 1 - every time we need person details will require a join on the table (makes sql verbose etc) - For option 2 - how to handle tblTitle changes - could use ref. integrity or even simpler.....only allow user to add new titles and not amend (can't see any reason to amend anyway - amend 'Mr' to what??) Anyone care to comment (can't believe I've 20 years programming exp. and am asking this type of question - must be my age (just hit 40 )) Thanks Richard Griffiths From dejpolsys at hotmail.com Fri Dec 10 05:37:27 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 10 Dec 2004 06:37:27 -0500 Subject: [AccessD] A2003: FTP and Network Connection Gurus References: <200412100328.iBA3SAx6013523@cooper.uws.edu.au> Message-ID: Darren ..sent you off line a working mdb that imports a file from another mdb and then ftps it to a server on a schedule ...hth :) William Hindman ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 10:28 PM Subject: RE: [AccessD] A2003: FTP and Network Connection Gurus > Hi Gustav > Do you have a working example? > > After 5 hours - yes 5 hours - I give up > > DD > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Thursday, 9 December 2004 8:14 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus > > Hi Darren > > If you prefer a little more than a DOS box for the user to view, go and > pick > Windows Command Line FTP and the Access module to drive it: > > http://www.pacific.net/~ken/software/ > > /gustav > >>>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> > On 9 Dec 2004 at 9:14, Darren DICK wrote: > >> Hi All >> I need to add an FTP upload screen to one of my APPS >> >> Firstly - lemme say I know nothing about such things The client's >> Network dude gave me... >> A Server Name >> A UserName >> And a Password >> >> So...I opened up an FTP client and successfully transferred the back >> end of the app (About 4meg) to the FTP location he supplied with the >> credentials he supplied - Phew so far so good :-)) >> >> Anyone got any code or forms or URL's they'd like to share so I can >> incorporate something like an FTP scheduler in my app, to run > nightly? >> > > You can do it by very easily by scripting a FTP session and scheduling it > using built in Windows capabilities (Look up FTP commands in WIndows > Help): > > Create a text file (c:\ftpstuff\myscript) containing the following, > substituting the appropriate info. Make sure that there are no trailing > > spaces on the lines: > > open ftp.myftpserver.com.au > myusername > mypassword > send c:\ftpstuff\myfile.mdb > disconnect > quit > > Note: This should work, depending on the FTP Server he is using. Some > > require a line like "USER myusername mypassword" in place of the two lines > with above. > > Then schedule a one line batch file containing the command: > > ftp -s:c:\ftpstuff\myscript > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Dec 10 06:25:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 10 Dec 2004 07:25:32 -0500 Subject: [AccessD] Row Limitations for ListBoxes In-Reply-To: <200412100612.iBA6Cal05886@databaseadvisors.com> Message-ID: <000d01c4deb3$5ad53150$e8dafea9@ColbyM6805> The limit in this case will be the 2000 byte length limit of the rowsource property. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Thompson Sent: Friday, December 10, 2004 1:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Row Limitations for ListBoxes What is the row limitation for a multi-select list box if the row source is a) a query b) a string of values separate by ";" c) a list fill using the call back function (which I assume has no limitation) I need to build a sql string that inserts records via a connection execute for all records selected. Thanks for any help, Bill Thompson -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Fri Dec 10 07:18:26 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Fri, 10 Dec 2004 13:18:26 -0000 Subject: [AccessD] Design question In-Reply-To: Message-ID: Hi Richard I can't get excited over tables of titles. What's the point in having one? Little if any savings or gains in space, performance, complexity, ergonomics, etc - in fact the opposite, mostly. Just let them type it in! And store it in the record with the name(s). Looking in my address book, I can see a Frau, a Mme and a Reverend Canon amongst others. And my own title, which I rarely use, almost never appears. Who cares?! Admittedly there is a narrower choice in the US, but here in the UK (just 30 miles from you, in Cheshire) + Europe the list could get quite long. This is the voice of experience speaking - programming since before you were born! (just plain) John Robinson > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Griffiths, Richard > Sent: 10 December 2004 11:14 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Design question > > Hi Group > Design issue - how to store the title for a person record > > Option 1 > > tblPerson > ------------- > titleID > firstname > lastname > > > Option 2 > > tblPerson > ------------- > title (contains actual value from tblTitle e.g Mr,Miss, Mrs, Ms.,Dr., > Prof.) > firstname > lastname > > > Issues > > For option 1 - every time we need person details will require > a join on the table (makes sql verbose etc) - > > For option 2 - how to handle tblTitle changes - could use > ref. integrity or even simpler.....only allow user to add new > titles and not amend (can't see any reason to amend > > anyway - amend 'Mr' to what??) > > Anyone care to comment (can't believe I've 20 years > programming exp. and am asking this type of question - must > be my age (just hit 40 )) > > Thanks > Richard Griffiths From JohnSkolits at corporatedatadesign.com Fri Dec 10 07:57:44 2004 From: JohnSkolits at corporatedatadesign.com (John Skolits) Date: Fri, 10 Dec 2004 08:57:44 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine In-Reply-To: <00a701c4de5f$22afea30$6901a8c0@OFFICEXP1> Message-ID: <000701c4dec0$398b8af0$800101df@OFFICEXP1> The IT person had a question. Maybe someone could answer it. John, Can you ask if there is a specific group policy setting that would allow this? I'm not sure, I may have prevented the user from doing something I shouldn't have. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Spam Sent: Thursday, December 09, 2004 9:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine Thanks Charlotte and William. Charlotte: I think if the MDB was read only, then it wouldn't work when logged into the OS as administrator: William: I'll pass these ideas onto my customer. Hopefully one of them will work. Thanks a million! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 09, 2004 9:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Running Access 2002 runtime on an Windows XP machine John ..I run several client systems with Access runtimes without giving anyone admin rights ..have you looked at your group policies? ...if others are making changes there it can have unintended consequences like you describe. ..for a couple of legacy DOS apps that refused to run without admin rights no matter what I did I've resorted to using shortcuts with the "run as" command ...see: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en- us/windows_security_runas_shortcut.mspx ..this lets a user run a specific app with the admin rights you specify and I've had little problem with it ...but of course ANY time you've got someone logged on with admin rights there is a potential for severe problems ...so I limit it to cases where nothing else gets the job done, not just as an easy out. ..I did have some problems initially with the Win2003/XP SPS2 combo and Access runtimes after the upgrade to Win2003 ...the only answer I found was to repackage the runtime deployment in that environment ...I have no explanation for it and its more than possible there's another solution I'm not aware of. ..hth :) William Hindman ----- Original Message ----- From: "Spam" To: Sent: Thursday, December 09, 2004 3:18 PM Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Dec 10 07:22:27 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 10 Dec 2004 08:22:27 -0500 Subject: [AccessD] Still cant kill the cancel messgae in No Data Event In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A5514A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBB53@ADGSERVER> You have to have the error trapping code in the location where the report is called. In the OnNoData event in the report, you need to set cancel to true. Example: Private Sub Report_NoData(Cancel As Integer) Cancel = True End Sub Function PreviewReport() On Error GoTo Proc_Err DoCmd.OpenReport "TCR", acPreview, "", "" Proc_Exit: Exit Function Proc_Err: If Err.Number = 2501 Then 'no data MsgBox "There is no data to display.", vbInformation + vbOKOnly Else 'err handling code goes here End If Resume Proc_Exit End Function Hope this helps, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, December 09, 2004 10:56 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Still cant kill the cancel messgae in No Data Event Thanks Karen, I tried your code. It did not work. I still get report action has been canceled. How do I make it go away. On Error GoTo PROC_ERR 'TVCodeTools ErrorEnablerEnd Dim lngRetval As Long lngRetval = MsgBox( "There are no products requiring a QAIP Form in for this Purcase Order.", _ vbOKOnly + vbInformation + vbSystemModal + vbDefaultButton1, _ "No QAIP for this PO") Select Case lngRetval Case vbOK pintCancel = 1 End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jimdettman at earthlink.net Fri Dec 10 08:31:35 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 10 Dec 2004 09:31:35 -0500 Subject: [AccessD] callback functions In-Reply-To: <20041209224154.LXOK2443.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: Susan, You can use them with DLL's and the Windows Common Dialog controls. I've never bothered though. Always was uncomfortable with adding the AddressOf hack to A97 and since then have not had the need to use it with A2000 and up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 5:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] callback functions I'm not trying to do anything specific myself -- I'm just looking for ways that YOU guys use them in Access. ;) I've only used them to populate list controls. Susan H. Yup. What do you need to know? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Dec 10 09:27:38 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Dec 2004 16:27:38 +0100 Subject: [AccessD] A2003: FTP and Network Connection Gurus Message-ID: Hi Darren 5 hours? Should be 5 minutes ... Of course, ftp server and admissions must work. This is best debugged using ftp.exe. /gustav >>> d.dick at uws.edu.au 10-12-2004 04:28:04 >>> Hi Gustav Do you have a working example? After 5 hours - yes 5 hours - I give up DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, 9 December 2004 8:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus Hi Darren If you prefer a little more than a DOS box for the user to view, go and pick Windows Command Line FTP and the Access module to drive it: http://www.pacific.net/~ken/software/ /gustav >>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things The client's > Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the back > end of the app (About 4meg) to the FTP location he supplied with the > credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript From ssharkins at bellsouth.net Fri Dec 10 09:39:22 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 10 Dec 2004 10:39:22 -0500 Subject: [AccessD] Row Limitations for ListBoxes In-Reply-To: <000d01c4deb3$5ad53150$e8dafea9@ColbyM6805> Message-ID: <20041210153952.RQIJ1980.imf16aec.mail.bellsouth.net@SUSANONE> Unless you use a callback function, which now brings us full circle. ;) I think this limit is only an issue for value list though, isn't it? Susan H. The limit in this case will be the 2000 byte length limit of the rowsource property. From ssharkins at bellsouth.net Fri Dec 10 09:39:22 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 10 Dec 2004 10:39:22 -0500 Subject: [AccessD] Design question In-Reply-To: Message-ID: <20041210154000.RQKZ1980.imf16aec.mail.bellsouth.net@SUSANONE> I can't get excited over tables of titles. What's the point in having one? Little if any savings or gains in space, performance, complexity, ergonomics, etc - in fact the opposite, mostly. Just let them type it in! And store it in the record with the name(s). =========I think I agree, but you could make it a tad easier by offering a combo with the choices -- make the default the most often used title and be done with it. Susan H. From JHewson at karta.com Fri Dec 10 09:52:16 2004 From: JHewson at karta.com (Jim Hewson) Date: Fri, 10 Dec 2004 09:52:16 -0600 Subject: [AccessD] Design question Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068D5B@karta-exc-int.Karta.com> Using Susan's suggestion, I'd make it a tad bit different. When creating the combo box, for the Row Source use a SQL statement using a group-by to refer back to the same field that's being updated. The user can still type in anything that is needed. Do a requery on the On Enter event. This way all titles used are available and new ones can be added. Jim H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Friday, December 10, 2004 9:39 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Design question I can't get excited over tables of titles. What's the point in having one? Little if any savings or gains in space, performance, complexity, ergonomics, etc - in fact the opposite, mostly. Just let them type it in! And store it in the record with the name(s). =========I think I agree, but you could make it a tad easier by offering a combo with the choices -- make the default the most often used title and be done with it. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Dec 10 10:02:49 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 10 Dec 2004 11:02:49 -0500 Subject: [AccessD] Row Limitations for ListBoxes In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A5522A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBB5B@ADGSERVER> Isn't the limit in XP now 32K for the value list? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, December 10, 2004 10:39 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Row Limitations for ListBoxes Unless you use a callback function, which now brings us full circle. ;) I think this limit is only an issue for value list though, isn't it? Susan H. The limit in this case will be the 2000 byte length limit of the rowsource property. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joconnell at indy.rr.com Fri Dec 10 10:40:21 2004 From: joconnell at indy.rr.com (Joseph O'Connell) Date: Fri, 10 Dec 2004 11:40:21 -0500 Subject: [AccessD] Design question Message-ID: <094e01c4ded6$f1dd5b40$6701a8c0@joe> And if the combo is populated with values already in the table, you would at least "suggest" a level of uniformity. The record source would be something like "Select Distinct PersonTitle From YourTable Order By PersonTitle". Be sure the Limit To List property is set to No to allow the users to enter titles that may not be in the table. Joe O'Connell -----Original Message----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Date: Friday, December 10, 2004 10:41 AM Subject: RE: [AccessD] Design question | |I can't get excited over tables of titles. What's the point in having one? |Little if any savings or gains in space, performance, complexity, |ergonomics, etc - in fact the opposite, mostly. Just let them type it in! |And store it in the record with the name(s). | |=========I think I agree, but you could make it a tad easier by offering a |combo with the choices -- make the default the most often used title and be |done with it. | |Susan H. | |-- |AccessD mailing list |AccessD at databaseadvisors.com |http://databaseadvisors.com/mailman/listinfo/accessd |Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 10 10:42:55 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Dec 2004 08:42:55 -0800 Subject: [AccessD] Row Limitations for ListBoxes Message-ID: There is also a limit on rows, I believe. Something like 65K that can be loaded in a block? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Friday, December 10, 2004 7:39 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Row Limitations for ListBoxes Unless you use a callback function, which now brings us full circle. ;) I think this limit is only an issue for value list though, isn't it? Susan H. The limit in this case will be the 2000 byte length limit of the rowsource property. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Dec 10 10:43:42 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 10 Dec 2004 11:43:42 -0500 Subject: [AccessD] Design question In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068D5B@karta-exc-int.Karta.com> Message-ID: <20041210164410.UGLF1994.imf17aec.mail.bellsouth.net@SUSANONE> Good idea. :) Susan H. Using Susan's suggestion, I'd make it a tad bit different. When creating the combo box, for the Row Source use a SQL statement using a group-by to refer back to the same field that's being updated. The user can still type in anything that is needed. Do a requery on the On Enter event. This way all titles used are available and new ones can be added. From cfoust at infostatsystems.com Fri Dec 10 10:49:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Dec 2004 08:49:19 -0800 Subject: [AccessD] Event only if sending report to the printer Message-ID: You don't have a preview event, Joe. What I was trying to explain was that we use a print select form with a preview button and a print button. If they preview the report, then there has to be a toolbar or menu or context menu for them to use to print it from the preview. So I would put the warning in the code behind the print button on the select form and in the code called from the toolbar or menu item to print from the preview. Does that make it clearer? Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, December 09, 2004 6:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Event only if sending report to the printer I am in XP. Where is printer event vs. preview event JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 09, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Event only if sending report to the printer Are you using AXP? If you aren't, you're out of luck. If you are, the Printer property of the report will return a pointer to the Printer object. But it sounds like you just want to tell them to change the paper, so I don't see a reason to use the Printer object. You can't print from Preview without taking some action, so I would trap that action and insert the message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, December 09, 2004 9:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Event only if sending report to the printer Charlotte, How do I get to the printer object of the report? User normally has 3 hole paper in printer and needs to change to Print ( as opposed to preview) the report Currently this code lives in the report header print event: Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer) Dim lngRetval As Long lngRetval = MsgBox( _ "Please make sure the correct paper is the printer for printing Purchase Orders." & vbCrLf & "" & vbCrLf & "Click OK when ready.", _ vbOKOnly + vbExclamation + vbSystemModal + vbDefaultButton1, _ "Check Paper in Printer") Select Case lngRetval Case vbOK End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net Subject: RE: [AccessD] Event only if sending repo-----Original Message-----rt to the printer You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 10 10:49:59 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Dec 2004 08:49:59 -0800 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Message-ID: You're right, I wasn't thinking. Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 6:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine Thanks Charlotte and William. Charlotte: I think if the MDB was read only, then it wouldn't work when logged into the OS as administrator: William: I'll pass these ideas onto my customer. Hopefully one of them will work. Thanks a million! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 09, 2004 9:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Running Access 2002 runtime on an Windows XP machine John ..I run several client systems with Access runtimes without giving anyone admin rights ..have you looked at your group policies? ...if others are making changes there it can have unintended consequences like you describe. ..for a couple of legacy DOS apps that refused to run without admin rights no matter what I did I've resorted to using shortcuts with the "run as" command ...see: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs /en- us/windows_security_runas_shortcut.mspx ..this lets a user run a specific app with the admin rights you specify and I've had little problem with it ...but of course ANY time you've got someone logged on with admin rights there is a potential for severe problems ...so I limit it to cases where nothing else gets the job done, not just as an easy out. ..I did have some problems initially with the Win2003/XP SPS2 combo and Access runtimes after the upgrade to Win2003 ...the only answer I found was to repackage the runtime deployment in that environment ...I have no explanation for it and its more than possible there's another solution I'm not aware of. ..hth :) William Hindman ----- Original Message ----- From: "Spam" To: Sent: Thursday, December 09, 2004 3:18 PM Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Fri Dec 10 11:10:56 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 10 Dec 2004 17:10:56 -0000 Subject: [AccessD] Design question Message-ID: Thanks for your replies - I'll keep the table but simply present this for use in a drop down combo and store the result in a text field. I appreciate the lookup of actual values entered - varying typing skills could result in mistyped/spelled entries which then presents the user with a duff list and the task of finding the duff entries - thanks. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 10 December 2004 16:44 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Design question Good idea. :) Susan H. Using Susan's suggestion, I'd make it a tad bit different. When creating the combo box, for the Row Source use a SQL statement using a group-by to refer back to the same field that's being updated. The user can still type in anything that is needed. Do a requery on the On Enter event. This way all titles used are available and new ones can be added. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Dec 10 11:58:10 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 10 Dec 2004 17:58:10 +0000 Subject: [AccessD] Design question In-Reply-To: Message-ID: Richard, Earlier in this thread...the value of storing titles seperately was questioned. I recently did some work with a 'Process Management' software package. There was an Org Chart built in (the titles were stored seperately). This allowed control of some processes that were dependant on title. If titles were randomly typed in...you would have some difficulty if you wanted your app to do something for all 'managers' or some other title. Depending on the app...there can be some good reasons to store the title seperate...or some good reasons not to. Just thought I'd add... Thanks, Mark A. Matte >From: "Griffiths, Richard" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] Design question >Date: Fri, 10 Dec 2004 17:10:56 -0000 > >Thanks for your replies - I'll keep the table but simply present this >for use in a drop down combo and store the result in a text field. I >appreciate the lookup of actual values entered - varying typing skills >could result in mistyped/spelled entries which then presents the user >with a duff list and the task of finding the duff entries - thanks. >R > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: 10 December 2004 16:44 >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Design question > >Good idea. :) > >Susan H. > >Using Susan's suggestion, I'd make it a tad bit different. >When creating the combo box, for the Row Source use a SQL statement >using a >group-by to refer back to the same field that's being updated. The user >can >still type in anything that is needed. Do a requery on the On Enter >event. >This way all titles used are available and new ones can be added. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Dec 10 12:12:10 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 10 Dec 2004 13:12:10 -0500 Subject: [AccessD] Design question Message-ID: Letting the users type in anything that can lead to type'0s is a recipe for data disaster. Around here, titles change like underwear, one day a person is an IS Support Specialist, the next day he is an ITSO Support Specialist. Keeping the titles in a lookup table relieves so many headaches. And people can not spell. So you have have sexretary, secratery, etc. Then, how are you going to run a report with a bunch of titles that are misspelled? Grumppp. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, December 10, 2004 12:58 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Design question Richard, Earlier in this thread...the value of storing titles seperately was questioned. I recently did some work with a 'Process Management' software package. There was an Org Chart built in (the titles were stored seperately). This allowed control of some processes that were dependant on title. If titles were randomly typed in...you would have some difficulty if you wanted your app to do something for all 'managers' or some other title. Depending on the app...there can be some good reasons to store the title seperate...or some good reasons not to. Just thought I'd add... Thanks, Mark A. Matte >From: "Griffiths, Richard" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] Design question >Date: Fri, 10 Dec 2004 17:10:56 -0000 > >Thanks for your replies - I'll keep the table but simply present this >for use in a drop down combo and store the result in a text field. I >appreciate the lookup of actual values entered - varying typing skills >could result in mistyped/spelled entries which then presents the user >with a duff list and the task of finding the duff entries - thanks. >R > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: 10 December 2004 16:44 >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Design question > >Good idea. :) > >Susan H. > >Using Susan's suggestion, I'd make it a tad bit different. >When creating the combo box, for the Row Source use a SQL statement >using a >group-by to refer back to the same field that's being updated. The user >can >still type in anything that is needed. Do a requery on the On Enter >event. >This way all titles used are available and new ones can be added. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Fri Dec 10 13:04:03 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Fri, 10 Dec 2004 19:04:03 -0000 Subject: [AccessD] Design question In-Reply-To: Message-ID: Actually, the Q was about Mr, Mrs, etc, not job titles. Is Ms a 'miss'-spelling? I suppose gender re-assignment would lead to a change ... but I'd avoid the underwear allusion! John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Nicholson, Karen > Sent: 10 December 2004 18:12 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Design question > > > Letting the users type in anything that can lead to type'0s > is a recipe for data disaster. Around here, titles change > like underwear, one day a person is an IS Support Specialist, > the next day he is an ITSO Support Specialist. Keeping the > titles in a lookup table relieves so many headaches. And > people can not spell. So you have have sexretary, secratery, > etc. Then, how are you going to run a report with a bunch of > titles that are misspelled? Grumppp. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark A Matte > Sent: Friday, December 10, 2004 12:58 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Design question > > > Richard, > > Earlier in this thread...the value of storing titles seperately was > questioned. I recently did some work with a 'Process > Management' software > package. There was an Org Chart built in (the titles were stored > seperately). This allowed control of some processes that > were dependant on > title. If titles were randomly typed in...you would have > some difficulty if > you wanted your app to do something for all 'managers' or > some other title. > > Depending on the app...there can be some good reasons to > store the title > > seperate...or some good reasons not to. > > Just thought I'd add... > > Thanks, > > Mark A. Matte > > >From: "Griffiths, Richard" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] Design question > >Date: Fri, 10 Dec 2004 17:10:56 -0000 > > > >Thanks for your replies - I'll keep the table but simply > present this > >for use in a drop down combo and store the result in a text field. I > >appreciate the lookup of actual values entered - varying > typing skills > >could result in mistyped/spelled entries which then presents > the user > >with a duff list and the task of finding the duff entries - thanks. R > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > >Sent: 10 December 2004 16:44 > >To: 'Access Developers discussion and problem solving' > >Subject: RE: [AccessD] Design question > > > >Good idea. :) > > > >Susan H. > > > >Using Susan's suggestion, I'd make it a tad bit different. When > >creating the combo box, for the Row Source use a SQL > statement using a > >group-by to refer back to the same field that's being updated. The > user > >can > >still type in anything that is needed. Do a requery on the On Enter > >event. This way all titles used are available and new ones can be > >added. > > From reuben at gfconsultants.com Fri Dec 10 13:14:50 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 10 Dec 2004 14:14:50 -0500 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer 2000 Message-ID: I am trying to get another computer to burn installations from. When creating the deployment package I notice that msado21.tlb shows up where it never did. And then when running a completed CD to test the install I get an error message stating "Cannot find the Source file 'D:\\charts\\@msado21.tlb' to Install" I have tried to repair Office and Developer (both 2000). The problem occurs when I insert the Developer CD. I get a messgae stating that Developer requires VBA 6.0 and that I must install Office or something else that contains VBA 6.0 However, Office 2000 is installed. I even tried removing it and re-installing it. No Luck. Any ideas? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From pedro at plex.nl Fri Dec 10 13:44:54 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 10 Dec 2004 20:44:54 +0100 Subject: [AccessD] missing reference, converting to A2003 References: Message-ID: <006701c4def0$dc4e41d0$fbc581d5@pedro> Hello Charlotte, when unschecking the reference, the code doesn't compile. It gives a missing reference for the IsLoaded event. Anybody an idea what this refence does? Pedro Janssen ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 09, 2004 5:59 PM Subject: RE: [AccessD] missing reference, converting to A2003 > If you uncheck the reference, does the code compile? Since the > reference is to an ocx file, you should only need it if you're using the > activex control in the application, in which case, it would have to be > installed on your system. > > Charlotte Foust > > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Thursday, December 09, 2004 4:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] missing reference, converting to A2003 > > > Hello Group, > > when converting a A2k database to A2003 i get an missing reference > error. Missing is the effect library (MMEFXE.OCX). I searched the system > for this reference, but i can't find it. Also in the knowledge base i > can't find any info. Has anybody encountered this problem. > > Pedro Janssen > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Susan.Klos at fldoe.org Fri Dec 10 13:57:39 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Fri, 10 Dec 2004 14:57:39 -0500 Subject: [AccessD] Setting the row source of a listbox by code Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE739A5@doesefpeml02.eus.fldoe.int> I have narrowed my problem to this: I have a listbox and two queries. If the form is opened where txtfindProjects = "open", I want to set the row source of the listbox to qryFindOpenProjects. Otherwise I want the row source of the listbox to be qryFindAllProjects. Here is my code which I have tried in several events and it doesn't seem to work in any of them. Private Sub Form_Open(Cancel As Integer) DoCmd.Maximize If Forms!frmProjects!Text55 = "all" Then Me.List52.RowSource = "qryFindAllProjects" ElseIf Forms!frmProjects!Text55 = "open" Then Me.List52.RowSource = "qryFindOpenProjects" End Sub Any ideas? Thanks. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From CMackin at quiznos.com Fri Dec 10 13:59:19 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Fri, 10 Dec 2004 12:59:19 -0700 Subject: [AccessD] Setting the row source of a listbox by code Message-ID: Try the Load Event instead and add a Requery after setting the RowSource: Private Sub Form_Load() If Forms!frmProjects!Text55 = "open" Then Me.List52.RowSource = "qryFindOpenProjects" Else Me.List52.RowSource = "qryFindAllProjects" End If Me.List52.Requery End Sub Also, looking a little closer at the code you have, make sure that the value returned by Forms!frmProjects!Text55 is what you're expecting. If "open" or "all" is not in Text55 {here's where a naming convention would be useful} then your code would not set the RowSource. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Klos, Susan Sent: Friday, December 10, 2004 12:58 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Setting the row source of a listbox by code I have narrowed my problem to this: I have a listbox and two queries. If the form is opened where txtfindProjects = "open", I want to set the row source of the listbox to qryFindOpenProjects. Otherwise I want the row source of the listbox to be qryFindAllProjects. Here is my code which I have tried in several events and it doesn't seem to work in any of them. Private Sub Form_Open(Cancel As Integer) DoCmd.Maximize If Forms!frmProjects!Text55 = "all" Then Me.List52.RowSource = "qryFindAllProjects" ElseIf Forms!frmProjects!Text55 = "open" Then Me.List52.RowSource = "qryFindOpenProjects" End Sub Any ideas? Thanks. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Dec 10 14:02:55 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 10 Dec 2004 15:02:55 -0500 Subject: [AccessD] missing reference, converting to A2003 Message-ID: Function IsLoaded(ByVal strFormName As String) As Boolean ' Returns True if the specified form is open in Form view or Datasheet view. Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then If Forms(strFormName).CurrentView <> conDesignView Then IsLoaded = True End If End If End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Friday, December 10, 2004 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] missing reference, converting to A2003 Hello Charlotte, when unschecking the reference, the code doesn't compile. It gives a missing reference for the IsLoaded event. Anybody an idea what this refence does? Pedro Janssen ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 09, 2004 5:59 PM Subject: RE: [AccessD] missing reference, converting to A2003 > If you uncheck the reference, does the code compile? Since the > reference is to an ocx file, you should only need it if you're using the > activex control in the application, in which case, it would have to be > installed on your system. > > Charlotte Foust > > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Thursday, December 09, 2004 4:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] missing reference, converting to A2003 > > > Hello Group, > > when converting a A2k database to A2003 i get an missing reference > error. Missing is the effect library (MMEFXE.OCX). I searched the system > for this reference, but i can't find it. Also in the knowledge base i > can't find any info. Has anybody encountered this problem. > > Pedro Janssen > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Dec 10 14:17:37 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 10 Dec 2004 12:17:37 -0800 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer 2000 References: Message-ID: <41BA0461.6070408@shaw.ca> That file is from the MDAC, you might want to check which versions you have. Some MDAC's wont install on lower OS. like MDAC 2.7 wont go on Win98 Reuben Cummings wrote: >I am trying to get another computer to burn installations from. When >creating the deployment package I notice that msado21.tlb shows up where it >never did. > >And then when running a completed CD to test the install I get an error >message stating "Cannot find the Source file 'D:\\charts\\@msado21.tlb' to >Install" > >I have tried to repair Office and Developer (both 2000). The problem occurs >when I insert the Developer CD. I get a messgae stating that Developer >requires VBA 6.0 and that I must install Office or something else that >contains VBA 6.0 > >However, Office 2000 is installed. I even tried removing it and >re-installing it. No Luck. > >Any ideas? > >Thanks. > >Reuben Cummings >GFC, LLC >phone: 812.523.1017 >email: reuben at gfconsultants.com > > > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Fri Dec 10 14:53:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Dec 2004 12:53:48 -0800 Subject: [AccessD] missing reference, converting to A2003 Message-ID: I take it this is something you didn't build yourself? The ocx is the Microsoft MultiMedia Controls Effects library, and you get some information on it at http://www.e-systems.ro/download-ocx/mmefxe.ocx/. I believe it's part of IE 4.x and 5.x but I don't think it is part of IE 6. I have a copy on my machine buried in the IE4Setup folder at C:\Program Files\Microsoft Visual Studio\VSS\netsetup.x86\IE4setup\AXA.CAB, but I don't have a clue on how to use it, since I use IE6. Possibly doing a repair on IE will get it back, but do you really need that control? If not, I'd remove it and the supporting code. Charlotte Foust -----Original Message----- From: Pedro Janssen [mailto:pedro at plex.nl] Sent: Friday, December 10, 2004 11:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] missing reference, converting to A2003 Hello Charlotte, when unschecking the reference, the code doesn't compile. It gives a missing reference for the IsLoaded event. Anybody an idea what this refence does? Pedro Janssen ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 09, 2004 5:59 PM Subject: RE: [AccessD] missing reference, converting to A2003 > If you uncheck the reference, does the code compile? Since the > reference is to an ocx file, you should only need it if you're using > the activex control in the application, in which case, it would have > to be installed on your system. > > Charlotte Foust > > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Thursday, December 09, 2004 4:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] missing reference, converting to A2003 > > > Hello Group, > > when converting a A2k database to A2003 i get an missing reference > error. Missing is the effect library (MMEFXE.OCX). I searched the > system for this reference, but i can't find it. Also in the knowledge > base i can't find any info. Has anybody encountered this problem. > > Pedro Janssen > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Dec 10 15:46:01 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 10 Dec 2004 13:46:01 -0800 Subject: [AccessD] Setting the row source of a listbox by code In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51EE739A5@doesefpeml02.eus.fldoe.int> Message-ID: Hi Susan: Just a quick note; maybe the listboxes should be initialized/filled in the Form_Load event instead of the Form_Open event as the listbox objects may not exist until the Form_Load event. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Klos, Susan Sent: Friday, December 10, 2004 11:58 AM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Setting the row source of a listbox by code I have narrowed my problem to this: I have a listbox and two queries. If the form is opened where txtfindProjects = "open", I want to set the row source of the listbox to qryFindOpenProjects. Otherwise I want the row source of the listbox to be qryFindAllProjects. Here is my code which I have tried in several events and it doesn't seem to work in any of them. Private Sub Form_Open(Cancel As Integer) DoCmd.Maximize If Forms!frmProjects!Text55 = "all" Then Me.List52.RowSource = "qryFindAllProjects" ElseIf Forms!frmProjects!Text55 = "open" Then Me.List52.RowSource = "qryFindOpenProjects" End Sub Any ideas? Thanks. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Fri Dec 10 15:51:46 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 10 Dec 2004 22:51:46 +0100 Subject: [AccessD] missing reference, converting to A2003 References: Message-ID: <003e01c4df02$72d46fb0$fbc581d5@pedro> Hello Karin and Charlotte, Thanks for your help. Indeed i didn't build the database myself. I will remove the reference and see for what need the code is. Maybe i can delete or adjust it instead. Pedro Janssen ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, December 10, 2004 9:53 PM Subject: RE: [AccessD] missing reference, converting to A2003 > I take it this is something you didn't build yourself? The ocx is the > Microsoft MultiMedia Controls Effects library, and you get some > information on it at http://www.e-systems.ro/download-ocx/mmefxe.ocx/. > I believe it's part of IE 4.x and 5.x but I don't think it is part of IE > 6. I have a copy on my machine buried in the IE4Setup folder at > C:\Program Files\Microsoft Visual > Studio\VSS\netsetup.x86\IE4setup\AXA.CAB, but I don't have a clue on how > to use it, since I use IE6. Possibly doing a repair on IE will get it > back, but do you really need that control? If not, I'd remove it and > the supporting code. > > Charlotte Foust > > > -----Original Message----- > From: Pedro Janssen [mailto:pedro at plex.nl] > Sent: Friday, December 10, 2004 11:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] missing reference, converting to A2003 > > > Hello Charlotte, > > when unschecking the reference, the code doesn't compile. It gives a > missing reference for the IsLoaded event. > > Anybody an idea what this refence does? > > Pedro Janssen > > > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, December 09, 2004 5:59 PM > Subject: RE: [AccessD] missing reference, converting to A2003 > > > > If you uncheck the reference, does the code compile? Since the > > reference is to an ocx file, you should only need it if you're using > > the activex control in the application, in which case, it would have > > to be installed on your system. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: pedro at plex.nl [mailto:pedro at plex.nl] > > Sent: Thursday, December 09, 2004 4:08 AM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] missing reference, converting to A2003 > > > > > > Hello Group, > > > > when converting a A2k database to A2003 i get an missing reference > > error. Missing is the effect library (MMEFXE.OCX). I searched the > > system for this reference, but i can't find it. Also in the knowledge > > base i can't find any info. Has anybody encountered this problem. > > > > Pedro Janssen > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Fri Dec 10 16:47:26 2004 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Dec 2004 16:47:26 -0600 Subject: [AccessD] SetOption "Default File Format", 0 Message-ID: <000f01c4df0a$391f34f0$de1811d8@danwaters> I'm trying to set the Default File Format to 'Access 2000' in code during startup. The code should be: SetOption "Default File Format", 0 But - I'm getting an error which says: The numeric value for the setting argument in the SetOption method doesn't correspond to any list box or option group settings in the Options dialog box. I set many options on startup, but this is the only one that doesn't seem to work as advertised. Has anyone tried this to set this option in code? Dan Waters ProMation Systems From dejpolsys at hotmail.com Fri Dec 10 18:10:09 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 10 Dec 2004 19:10:09 -0500 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer2000 References: Message-ID: ..have you changed the server OS to Win2003? ...for some reason it seems to insist on packaging the ado 2.1 reference when creating the Access install package from an XP work station ...also true if you have A2003 installed ..its trying to enable backward compatibility with A2K on systems that don't have MDAC 2.7 installed ...hth. William Hindman ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Friday, December 10, 2004 2:14 PM Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer2000 >I am trying to get another computer to burn installations from. When > creating the deployment package I notice that msado21.tlb shows up where > it > never did. > > And then when running a completed CD to test the install I get an error > message stating "Cannot find the Source file 'D:\\charts\\@msado21.tlb' to > Install" > > I have tried to repair Office and Developer (both 2000). The problem > occurs > when I insert the Developer CD. I get a messgae stating that Developer > requires VBA 6.0 and that I must install Office or something else that > contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. > > Any ideas? > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Fri Dec 10 18:22:43 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 10 Dec 2004 19:22:43 -0500 Subject: [AccessD] missing reference, converting to A2003 References: <006701c4def0$dc4e41d0$fbc581d5@pedro> Message-ID: Pedro ..the IsLoaded is normally found in a utility code module or a library mde ..are you sure you picked up any library mdes along with the mdb? William Hindman ----- Original Message ----- From: "Pedro Janssen" To: "Access Developers discussion and problem solving" Sent: Friday, December 10, 2004 2:44 PM Subject: Re: [AccessD] missing reference, converting to A2003 > Hello Charlotte, > > when unschecking the reference, the code doesn't compile. It gives a > missing > reference for the IsLoaded event. > > Anybody an idea what this refence does? > > Pedro Janssen > > > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, December 09, 2004 5:59 PM > Subject: RE: [AccessD] missing reference, converting to A2003 > > >> If you uncheck the reference, does the code compile? Since the >> reference is to an ocx file, you should only need it if you're using the >> activex control in the application, in which case, it would have to be >> installed on your system. >> >> Charlotte Foust >> >> >> -----Original Message----- >> From: pedro at plex.nl [mailto:pedro at plex.nl] >> Sent: Thursday, December 09, 2004 4:08 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] missing reference, converting to A2003 >> >> >> Hello Group, >> >> when converting a A2k database to A2003 i get an missing reference >> error. Missing is the effect library (MMEFXE.OCX). I searched the system >> for this reference, but i can't find it. Also in the knowledge base i >> can't find any info. Has anybody encountered this problem. >> >> Pedro Janssen >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Sat Dec 11 04:15:25 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Dec 2004 11:15:25 +0100 Subject: [AccessD] SetOption "Default File Format", 0 Message-ID: Hi Dan It is not 0 but 9: SetOption "Default File Format", acFileFormatAccess2000 Browse the on-line help for "FileFormat Property" /gustav >>> dwaters at usinternet.com 10-12-2004 23:47:26 >>> I'm trying to set the Default File Format to 'Access 2000' in code during startup. The code should be: SetOption "Default File Format", 0 But - I'm getting an error which says: The numeric value for the setting argument in the SetOption method doesn't correspond to any list box or option group settings in the Options dialog box. I set many options on startup, but this is the only one that doesn't seem to work as advertised. Has anyone tried this to set this option in code? Dan Waters ProMation Systems From Gustav at cactus.dk Sat Dec 11 04:17:19 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Dec 2004 11:17:19 +0100 Subject: [AccessD] OT - VBA Required / Already installed -Office/Developer2000 Message-ID: Hi William Welcome back! /gustav >>> dejpolsys at hotmail.com 11-12-2004 01:10:09 >>> ..have you changed the server OS to Win2003? ...for some reason it seems to insist on packaging the ado 2.1 reference when creating the Access install package from an XP work station ...also true if you have A2003 installed ..its trying to enable backward compatibility with A2K on systems that don't have MDAC 2.7 installed ...hth. William Hindman From dejpolsys at hotmail.com Sat Dec 11 06:06:22 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Sat, 11 Dec 2004 07:06:22 -0500 Subject: [AccessD] OT - VBA Required / Already installed-Office/Developer2000 References: Message-ID: ..just keep the PC mob at bay, eh :)))) William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 11, 2004 5:17 AM Subject: Re: [AccessD] OT - VBA Required / Already installed-Office/Developer2000 > Hi William > > Welcome back! > > /gustav > >>>> dejpolsys at hotmail.com 11-12-2004 01:10:09 >>> > ..have you changed the server OS to Win2003? ...for some reason it > seems to > insist on packaging the ado 2.1 reference when creating the Access > install > package from an XP work station ...also true if you have A2003 > installed > ..its trying to enable backward compatibility with A2K on systems that > > don't have MDAC 2.7 installed ...hth. > > William Hindman > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Sat Dec 11 08:38:50 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 11 Dec 2004 08:38:50 -0600 Subject: [AccessD] SetOption "Default File Format", 0 In-Reply-To: <13328788.1102768551427.JavaMail.root@sniper14.securence.com> Message-ID: <000201c4df8f$21be1800$de1811d8@danwaters> Gustav, Thanks for this help! But I wonder why you say 9 not 0. I looked at help for the SetOption method and this value setting is supposed to correspond to the row number in the combobox (0 - based). Access 2000 is the first choice in that list so I was using a 0. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, December 11, 2004 4:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SetOption "Default File Format", 0 Hi Dan It is not 0 but 9: SetOption "Default File Format", acFileFormatAccess2000 Browse the on-line help for "FileFormat Property" /gustav >>> dwaters at usinternet.com 10-12-2004 23:47:26 >>> I'm trying to set the Default File Format to 'Access 2000' in code during startup. The code should be: SetOption "Default File Format", 0 But - I'm getting an error which says: The numeric value for the setting argument in the SetOption method doesn't correspond to any list box or option group settings in the Options dialog box. I set many options on startup, but this is the only one that doesn't seem to work as advertised. Has anyone tried this to set this option in code? Dan Waters ProMation Systems -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Dec 11 08:52:58 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Dec 2004 15:52:58 +0100 Subject: [AccessD] SetOption "Default File Format", 0 Message-ID: Hi Dan I have no idea. Perhaps they mixed up Value with ListIndex ... /gustav >>> dwaters at usinternet.com 11-12-2004 15:38:50 >>> Gustav, Thanks for this help! But I wonder why you say 9 not 0. I looked at help for the SetOption method and this value setting is supposed to correspond to the row number in the combobox (0 - based). Access 2000 is the first choice in that list so I was using a 0. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, December 11, 2004 4:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SetOption "Default File Format", 0 Hi Dan It is not 0 but 9: SetOption "Default File Format", acFileFormatAccess2000 Browse the on-line help for "FileFormat Property" /gustav >>> dwaters at usinternet.com 10-12-2004 23:47:26 >>> I'm trying to set the Default File Format to 'Access 2000' in code during startup. The code should be: SetOption "Default File Format", 0 But - I'm getting an error which says: The numeric value for the setting argument in the SetOption method doesn't correspond to any list box or option group settings in the Options dialog box. I set many options on startup, but this is the only one that doesn't seem to work as advertised. Has anyone tried this to set this option in code? Dan Waters ProMation Systems -- From carbonnb at sympatico.ca Sat Dec 11 10:39:29 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 11 Dec 2004 11:39:29 -0500 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer 2000 In-Reply-To: Message-ID: <41BADC71.30805.1FC650@localhost> On 10 Dec 2004 at 14:14, Reuben Cummings wrote: > I am trying to get another computer to burn installations from. When > creating the deployment package I notice that msado21.tlb shows up > where it never did. > > And then when running a completed CD to test the install I get an > error message stating "Cannot find the Source file > 'D:\\charts\\@msado21.tlb' to Install" > > I have tried to repair Office and Developer (both 2000). The problem > occurs when I insert the Developer CD. I get a messgae stating that > Developer requires VBA 6.0 and that I must install Office or something > else that contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. Can you post the exact error message. I run into this just about every time I install MOD2K, but I can never remember the fix, and it's an easy fix. Yu have to run a different exe on the MOD CD and not the main installer. I have to search the MSKB all the time for it. But it's not an obvious combination of terms that gets the right KB article. So if you post the full error message, I'll dig up the KB article for you. -- Bryan Carbonnell - carbonnb at sympatico.ca If you're too open-minded, your brains will fall out. From carbonnb at sympatico.ca Sat Dec 11 16:26:44 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 11 Dec 2004 17:26:44 -0500 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer 2000 In-Reply-To: Message-ID: <41BB2DD4.9179.15DB017@localhost> On 10 Dec 2004 at 14:14, Reuben Cummings wrote: > I have tried to repair Office and Developer (both 2000). The problem > occurs when I insert the Developer CD. I get a messgae stating that > Developer requires VBA 6.0 and that I must install Office or something > else that contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. Ignore my last e-mail. I found the KB article; http://support.microsoft.com/?KBID=322632 Here is the resolution: To resolve the issue, locate the ACMBoot.exe file on the root directory of the Microsoft Office 2000 Developer CD, and then run it. You can install Office 2000 Developer successfully when you start Setup in this manner. -- Bryan Carbonnell - carbonnb at sympatico.ca I don't suffer from stress. I am a carrier. From tdd-inc at shaw.ca Sat Dec 11 19:17:29 2004 From: tdd-inc at shaw.ca (Technical Designs) Date: Sat, 11 Dec 2004 17:17:29 -0800 Subject: [AccessD] Splitting information from One field into Two and dumping the middle Message-ID: <002601c4dfe8$5c56b6d0$7801a8c0@cadcam> Hi Group I have been reading and learning lots from this list. and even coming up with some of the same answers! .. once in a while. This is my first question to the group. I have one field [FullName] with . Name:number or Name:subname:number where there can be more than one recurrence of subnames What I would like to do is split "name" into [splitname] and "number" into [splitnumber] fields of tblTable and loose the middle subnames (if there are any) I have Me.SplitName = Trim(Left(Trim(Me.FullName), InStr(Trim(Me.FullName), ":") - 1)) '. this works fine Me.SplitNumber = Trim(Right(Trim(Me.FullName), Len(Trim(Me.FullName)) - (InStr(Trim(Me.FullName), ":") - 0))) .. SplitNumber works fine if there is only one ":" in the string.. but there might be 2 or more ":" sometimes the Name:subname:number format is from an exported file being imported into MSAccess. The only consistent thing is the ":" Thanks in advance Philip S. From stuart at lexacorp.com.pg Sat Dec 11 19:54:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 12 Dec 2004 11:54:13 +1000 Subject: [AccessD] Splitting information from One field into Two and dumping the middle In-Reply-To: <002601c4dfe8$5c56b6d0$7801a8c0@cadcam> Message-ID: <41BC3165.5558.19CD55F1@lexacorp.com.pg> On 11 Dec 2004 at 17:17, Technical Designs wrote: > I have one field [FullName] with . Name:number > or > Name:subname:number where there can be more than one recurrence > of subnames > > What I would like to do is split "name" into [splitname] and "number" into > [splitnumber] fields of tblTable and loose the middle subnames (if there are > any) > What version of Access. If it's 2K or above you can use the built in Split() Function Split Function Description Returns a zero-based, one-dimensional array containing a specified number of substrings. Syntax Split(expression[, delimiter[, limit[, compare]]]) Try This: Dim strParts() as String ...... strParts = Split(Fullname,":") 'Get First element Me.Splitname = strParts(0) 'Get last element Me.SplitNumber = strParts(UBound(strParts) -- Stuart From andy at minstersystems.co.uk Sun Dec 12 04:13:37 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 12 Dec 2004 10:13:37 -0000 Subject: [AccessD] Splitting information from One field into Two and dumpingthe middle In-Reply-To: <002601c4dfe8$5c56b6d0$7801a8c0@cadcam> Message-ID: <000f01c4e033$3f2e2840$b274d0d5@minster33c3r25> Hi Philip Here's a function which will strip any string which has separators into its individual elements and put them in an array. All you have to do is pass it your string, the name of the array which you must already have dim'd, and then on return you can take the first and last elements of the array. So Dim astrNames() as string Dim intEls as integer Call Parse(inputstring, astrNames, ":",True) then strFirstName=astrNames(1) strLlastname=astrNames(ubound(astrnames)) (add your own processing to cater for empty string, or just one element) -------------the function Function Parse(prmStr as String, prmArr, prmDelim as String, Optional prmTrim) 'Takes a string within which is a list separated by a specified delimiter (eg commas) 'Pass also an initialised string array and the delimiter 'Finally optional parameter to denote whether to trim the results (useful if string is 'comma-separated with spaces after the commas) 'Fills the array with individual elements from the string Dim intX As Integer Dim intPointer As Integer If IsMissing(prmTrim) Then prmTrim = False End If If Nz(prmStr, "") <> "" Then intX = 1 'Loop thru string looking for delimiter Do While InStr(intX, prmStr, prmDelim) > 0 intPointer = intPointer + 1 ReDim Preserve prmArr(intPointer) prmArr(intPointer) = Mid(prmStr, intX, InStr(intX, prmStr, prmDelim) - intX) If prmTrim Then prmArr(intPointer) = Trim(prmArr(intPointer)) End If intX = InStr(intX, prmStr, prmDelim) + 1 Loop 'At end do the last element when no more delimiters If Trim(Mid(prmStr, intX)) <> "" Then 'Not if delimiter at end intPointer = intPointer + 1 ReDim Preserve prmArr(intPointer) prmArr(intPointer) = Mid(prmStr, intX) If prmTrim Then prmArr(intPointer) = Trim(prmArr(intPointer)) End If End If End If End Function HTH -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Technical Designs > Sent: 12 December 2004 01:17 > To: accessd at databaseadvisors.com > Subject: [AccessD] Splitting information from One field into > Two and dumpingthe middle > > > Hi Group > > > > I have been reading and learning lots from this list. and > even coming up with some of the same answers! .. once in a while. > > This is my first question to the group. > > > > I have one field [FullName] with . Name:number > or > > > Name:subname:number where there can be more than > one recurrence > of subnames > > > > What I would like to do is split "name" into [splitname] and > "number" into [splitnumber] fields of tblTable and loose the > middle subnames (if there are > any) > > > > I have > > Me.SplitName = Trim(Left(Trim(Me.FullName), > InStr(Trim(Me.FullName), ":") - 1)) '. this works fine > > > > Me.SplitNumber = Trim(Right(Trim(Me.FullName), > Len(Trim(Me.FullName)) - (InStr(Trim(Me.FullName), ":") - 0))) > > > > .. SplitNumber works fine if there is only one ":" in the > string.. but there might be 2 or more ":" sometimes > > > > the Name:subname:number format is from an exported file being > imported into MSAccess. The only consistent thing is the ":" > > > > Thanks in advance > > > > Philip S. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Sun Dec 12 13:52:02 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 12 Dec 2004 20:52:02 +0100 Subject: [AccessD] missing reference, converting to A2003 References: <006701c4def0$dc4e41d0$fbc581d5@pedro> Message-ID: <002301c4e084$0e01f250$fbc581d5@pedro> Hello William, i am not sure what you mean by: "picked up any library mdes along with the mdb" How can i do this? Pedro ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Saturday, December 11, 2004 1:22 AM Subject: Re: [AccessD] missing reference, converting to A2003 > Pedro > > ..the IsLoaded is normally found in a utility code module or a library mde > ..are you sure you picked up any library mdes along with the mdb? > > William Hindman > > > ----- Original Message ----- > From: "Pedro Janssen" > To: "Access Developers discussion and problem solving" > > Sent: Friday, December 10, 2004 2:44 PM > Subject: Re: [AccessD] missing reference, converting to A2003 > > > > Hello Charlotte, > > > > when unschecking the reference, the code doesn't compile. It gives a > > missing > > reference for the IsLoaded event. > > > > Anybody an idea what this refence does? > > > > Pedro Janssen > > > > > > > > ----- Original Message ----- > > From: "Charlotte Foust" > > To: "Access Developers discussion and problem solving" > > > > Sent: Thursday, December 09, 2004 5:59 PM > > Subject: RE: [AccessD] missing reference, converting to A2003 > > > > > >> If you uncheck the reference, does the code compile? Since the > >> reference is to an ocx file, you should only need it if you're using the > >> activex control in the application, in which case, it would have to be > >> installed on your system. > >> > >> Charlotte Foust > >> > >> > >> -----Original Message----- > >> From: pedro at plex.nl [mailto:pedro at plex.nl] > >> Sent: Thursday, December 09, 2004 4:08 AM > >> To: accessd at databaseadvisors.com > >> Subject: [AccessD] missing reference, converting to A2003 > >> > >> > >> Hello Group, > >> > >> when converting a A2k database to A2003 i get an missing reference > >> error. Missing is the effect library (MMEFXE.OCX). I searched the system > >> for this reference, but i can't find it. Also in the knowledge base i > >> can't find any info. Has anybody encountered this problem. > >> > >> Pedro Janssen > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Sun Dec 12 13:56:15 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 12 Dec 2004 20:56:15 +0100 Subject: [AccessD] backup database Message-ID: <002e01c4e084$a44bea40$fbc581d5@pedro> Hello Group, is there a way to backup the backend as a tekstfile in columns or as excel file, with one click of a button. I don't want to open each table and save them by hand to a different folder as the default folder where the database is in. Pedro Janssen From dwaters at usinternet.com Sun Dec 12 15:27:02 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 12 Dec 2004 15:27:02 -0600 Subject: [AccessD] Library Database? Message-ID: <000001c4e091$529a9a40$de1811d8@danwaters> I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters From dwaters at usinternet.com Sun Dec 12 15:47:15 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 12 Dec 2004 15:47:15 -0600 Subject: [AccessD] Library Database? - Never Mind In-Reply-To: <4189112.1102886919247.JavaMail.root@sniper21.securence.com> Message-ID: <000501c4e094$252fd590$de1811d8@danwaters> It might help to set a reference to DAO 3.6 first. The Vikings just lost and now I can't focus! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 3:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Dec 12 15:56:05 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 12 Dec 2004 13:56:05 -0800 Subject: [AccessD] Library Database? In-Reply-To: <000001c4e091$529a9a40$de1811d8@danwaters> Message-ID: Hi Dan: Not the way you trying to do it. You can create a new MDB/MDE, with a module and in that module, a group of public variables, function and subroutines. This will be your library. The MDB/MDE database will have to be attached to your caller/main MDB before the functionality can be accessed. (file/get external data/link...) Just like classes only public object, in the module can be accessed externally. Note; that none of the modules objects can be accessed until the module is formally called (Example: if your library module is initially called from a Form open event, you will receive an error but the Form's load event works fine.) and from then on all the functions /subroutines /variables will be exposed because the whole module is then automatically loaded into memory. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 1:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Sun Dec 12 15:48:03 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Sun, 12 Dec 2004 16:48:03 -0500 Subject: [AccessD] missing reference, converting to A2003 References: <006701c4def0$dc4e41d0$fbc581d5@pedro> <002301c4e084$0e01f250$fbc581d5@pedro> Message-ID: Pedro ..some developers put common code functions in a separate mdb or mde and use it as a standard "library" for their applications ...if it is not present when calls are made to a referenced function included in it, you probably won't be able to compile the application ...when I'm given a another developer's mdb to modify one of the first things I do is check for a missing library file which usually shows up as a bad reference ...hth :) William Hindman ----- Original Message ----- From: "Pedro Janssen" To: "Access Developers discussion and problem solving" Sent: Sunday, December 12, 2004 2:52 PM Subject: Re: [AccessD] missing reference, converting to A2003 > Hello William, > > i am not sure what you mean by: "picked up any library mdes along with the > mdb" > How can i do this? > > Pedro > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, December 11, 2004 1:22 AM > Subject: Re: [AccessD] missing reference, converting to A2003 > > >> Pedro >> >> ..the IsLoaded is normally found in a utility code module or a library >> mde >> ..are you sure you picked up any library mdes along with the mdb? >> >> William Hindman >> >> >> ----- Original Message ----- >> From: "Pedro Janssen" >> To: "Access Developers discussion and problem solving" >> >> Sent: Friday, December 10, 2004 2:44 PM >> Subject: Re: [AccessD] missing reference, converting to A2003 >> >> >> > Hello Charlotte, >> > >> > when unschecking the reference, the code doesn't compile. It gives a >> > missing >> > reference for the IsLoaded event. >> > >> > Anybody an idea what this refence does? >> > >> > Pedro Janssen >> > >> > >> > >> > ----- Original Message ----- >> > From: "Charlotte Foust" >> > To: "Access Developers discussion and problem solving" >> > >> > Sent: Thursday, December 09, 2004 5:59 PM >> > Subject: RE: [AccessD] missing reference, converting to A2003 >> > >> > >> >> If you uncheck the reference, does the code compile? Since the >> >> reference is to an ocx file, you should only need it if you're using > the >> >> activex control in the application, in which case, it would have to be >> >> installed on your system. >> >> >> >> Charlotte Foust >> >> >> >> >> >> -----Original Message----- >> >> From: pedro at plex.nl [mailto:pedro at plex.nl] >> >> Sent: Thursday, December 09, 2004 4:08 AM >> >> To: accessd at databaseadvisors.com >> >> Subject: [AccessD] missing reference, converting to A2003 >> >> >> >> >> >> Hello Group, >> >> >> >> when converting a A2k database to A2003 i get an missing reference >> >> error. Missing is the effect library (MMEFXE.OCX). I searched the > system >> >> for this reference, but i can't find it. Also in the knowledge base i >> >> can't find any info. Has anybody encountered this problem. >> >> >> >> Pedro Janssen >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> > >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Sun Dec 12 17:03:06 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 12 Dec 2004 17:03:06 -0600 Subject: [AccessD] Library Database? .mda or .mdb as referenced library - pros or cons? In-Reply-To: <6270526.1102888553962.JavaMail.root@sniper21.securence.com> Message-ID: <000601c4e09e$be16db00$de1811d8@danwaters> Jim, After setting a reference to DAO 3.6, and resolving circularity among function and procedure calls, everything seemed to work correctly. I did set a reference to the Library mda. It appears that doing this allows the code in the library database to work exactly as if the code existed in the FE mdb. I did not get an initial error the first time the library code was used. I also tried changing the mda to an mdb. Everything still worked just as before. So now I'm wondering what the difference is between an mda and an mdb? Any pros/cons to one or the other when using as a library database? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Sunday, December 12, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Library Database? Hi Dan: Not the way you trying to do it. You can create a new MDB/MDE, with a module and in that module, a group of public variables, function and subroutines. This will be your library. The MDB/MDE database will have to be attached to your caller/main MDB before the functionality can be accessed. (file/get external data/link...) Just like classes only public object, in the module can be accessed externally. Note; that none of the modules objects can be accessed until the module is formally called (Example: if your library module is initially called from a Form open event, you will receive an error but the Form's load event works fine.) and from then on all the functions /subroutines /variables will be exposed because the whole module is then automatically loaded into memory. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 1:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Sun Dec 12 21:36:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 13 Dec 2004 14:36:31 +1100 Subject: [AccessD] A2003: FTP and Network Connection Gurus In-Reply-To: Message-ID: <200412130336.iBD3acRl024122@cooper.uws.edu.au> Hi William Many many thanks works like a charm Stuart and Gustav - my most sincere thanks for trying to get a luddite through this I really appreciate your patience and your efforts Have a great day Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, 10 December 2004 10:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus Darren ..sent you off line a working mdb that imports a file from another mdb and then ftps it to a server on a schedule ...hth :) William Hindman ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 10:28 PM Subject: RE: [AccessD] A2003: FTP and Network Connection Gurus > Hi Gustav > Do you have a working example? > > After 5 hours - yes 5 hours - I give up > > DD > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Thursday, 9 December 2004 8:14 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus > > Hi Darren > > If you prefer a little more than a DOS box for the user to view, go and > pick > Windows Command Line FTP and the Access module to drive it: > > http://www.pacific.net/~ken/software/ > > /gustav > >>>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> > On 9 Dec 2004 at 9:14, Darren DICK wrote: > >> Hi All >> I need to add an FTP upload screen to one of my APPS >> >> Firstly - lemme say I know nothing about such things The client's >> Network dude gave me... >> A Server Name >> A UserName >> And a Password >> >> So...I opened up an FTP client and successfully transferred the back >> end of the app (About 4meg) to the FTP location he supplied with the >> credentials he supplied - Phew so far so good :-)) >> >> Anyone got any code or forms or URL's they'd like to share so I can >> incorporate something like an FTP scheduler in my app, to run > nightly? >> > > You can do it by very easily by scripting a FTP session and scheduling it > using built in Windows capabilities (Look up FTP commands in WIndows > Help): > > Create a text file (c:\ftpstuff\myscript) containing the following, > substituting the appropriate info. Make sure that there are no trailing > > spaces on the lines: > > open ftp.myftpserver.com.au > myusername > mypassword > send c:\ftpstuff\myfile.mdb > disconnect > quit > > Note: This should work, depending on the FTP Server he is using. Some > > require a line like "USER myusername mypassword" in place of the two lines > with above. > > Then schedule a one line batch file containing the command: > > ftp -s:c:\ftpstuff\myscript > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Dec 12 23:11:52 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 13 Dec 2004 00:11:52 -0500 Subject: [AccessD] 2 MySql posers In-Reply-To: References: Message-ID: <41BD2498.4030504@rogers.com> There may be a dozen ways, but one obvious one is to run this statement:: SHOW CREATE TABLE mytable; and either pipe the result to a text file or just copy the result and paste it into a text editor. Then edit said file and run the SQL, creating myNewTable with the PK of your choice. Finally: INSERT INTO myNewTable SELECT * FROM mytable You probably wouldn't want to use * but you get the idea. HTH, Arthur Paul Rodgers wrote: >Is there a simple way to rename a Primary Key column in MySql, please? None >is listed in my tutorials. > >One way might be to delete the column and add a replacement. But once >records are introduced, it seems, I can't replace a Primary Key column. Be >grateful for guidance from one of our gurus please. > >Is there a simple way to back-up a table in MySql? I keep getting caught out >by forgetting WHERE and messing up masses of rows. > >Cheers > >paul > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004 From artful at rogers.com Sun Dec 12 23:32:04 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 13 Dec 2004 00:32:04 -0500 Subject: [AccessD] Design question In-Reply-To: References: Message-ID: <41BD2954.4010106@rogers.com> I would guess that it depends on how important such appellations are to the app. What is the cost of getting one wrong? The upside to using an FK table is the ability to add as many titles as you could ever want. The downside, which you identified, is the verbosity of the SQL -- which can be obviated in several ways, such as writing a function to simplify construction of the name (like Title & " " & FirstName & etc.), then using that function in all your queries. What will it gain you to lose the FK table and just allow the users to enter anything they wish? One less join, obviously. But how many times can one spell "Mr." incorrectly? Mind you, I once read a data-cleansing study that said the users of an app in Framingham managed to spell Boston 19 different ways. That boggles the mind! But allegedly it's true. Don't feel bad for programming 20 years and asking this question. I ask it every time I do an app. What is really to be gained by separating the given name from the last name? In certain apps it's important. In most apps I venture to say that it is unimportant, but most of us do it by knee-jerk reaction. If the only issue is sorting, then one can easily establish the convention that you enter the name "Fuller, Arthur" and on those few occasions when you need the given name alone, call a function that extracts the rightmost word from the name. (Yeah yeah, I know that won't always work, so let's not bother going there.) Similar issue with company names whose first word is "The". I almost always shift the "The" to the end, as in "Bank of America, The"... for sensible sorting. Arthur Griffiths, Richard wrote: >Hi Group > > > >Design issue - how to store the title for a person record > > > >Option 1 > > > >tblPerson > >------------- > >titleID > >firstname > >lastname > > > > > >Option 2 > > > >tblPerson > >------------- > >title (contains actual value from tblTitle e.g Mr,Miss, Mrs, Ms.,Dr., >Prof.) > >firstname > >lastname > > > >Issues > >For option 1 - every time we need person details will require a join on >the table (makes sql verbose etc) - > >For option 2 - how to handle tblTitle changes - could use ref. integrity >or even simpler.....only allow user to add new titles and not amend >(can't see any reason to amend > >anyway - amend 'Mr' to what??) > > > >Anyone care to comment (can't believe I've 20 years programming exp. and >am asking this type of question - must be my age (just hit 40 )) > > > >Thanks > > > >Richard Griffiths > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004 From accessd at shaw.ca Mon Dec 13 01:22:16 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 12 Dec 2004 23:22:16 -0800 Subject: [AccessD] Design question In-Reply-To: <41BD2954.4010106@rogers.com> Message-ID: Hi Arthur > But how many times can one spell "Mr." incorrectly? Mind you, I once read a data-cleansing > study that said the users of an app in Framingham managed to spell Boston 19 different ways. > That boggles the mind! But allegedly it's true. Just finished working on a database with schools...there must be a dozen ways to spell 'Saint' like in 'Saint Luke's' correctly and many more on how to spell it incorrectly or with subtle variations. Saint, Ste. Siant, St. Sant. Sant, St, Sainte, Sante, etc.... Cleaning up database can be as time-consuming as writing the original application. Observation Jim From Paul.Rogers at SummitMedia.co.uk Mon Dec 13 02:37:33 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Mon, 13 Dec 2004 08:37:33 -0000 Subject: [AccessD] 2 MySql posers Message-ID: Thanks very much, Arthur. Much obliged. Cheers paul -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: 13 December 2004 05:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 MySql posers There may be a dozen ways, but one obvious one is to run this statement:: SHOW CREATE TABLE mytable; and either pipe the result to a text file or just copy the result and paste it into a text editor. Then edit said file and run the SQL, creating myNewTable with the PK of your choice. Finally: INSERT INTO myNewTable SELECT * FROM mytable You probably wouldn't want to use * but you get the idea. HTH, Arthur Paul Rodgers wrote: >Is there a simple way to rename a Primary Key column in MySql, please? None >is listed in my tutorials. > >One way might be to delete the column and add a replacement. But once >records are introduced, it seems, I can't replace a Primary Key column. Be >grateful for guidance from one of our gurus please. > >Is there a simple way to back-up a table in MySql? I keep getting caught out >by forgetting WHERE and messing up masses of rows. > >Cheers > >paul > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Mon Dec 13 03:52:09 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Mon, 13 Dec 2004 09:52:09 -0000 Subject: [AccessD] Design question Message-ID: Thanks for all the replies (I only expected one or two) and varied suggestions. I am going to opt for a lookup list (to ensure 'clean' data-entry via a drop down combo) but store the actual value (e.g. Mr) in the 'person' table to overcome the verbose SQL etc. Cheers Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: 13 December 2004 07:22 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Design question Hi Arthur > But how many times can one spell "Mr." incorrectly? Mind you, I once read a data-cleansing > study that said the users of an app in Framingham managed to spell Boston 19 different ways. > That boggles the mind! But allegedly it's true. Just finished working on a database with schools...there must be a dozen ways to spell 'Saint' like in 'Saint Luke's' correctly and many more on how to spell it incorrectly or with subtle variations. Saint, Ste. Siant, St. Sant. Sant, St, Sainte, Sante, etc.... Cleaning up database can be as time-consuming as writing the original application. Observation Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Dec 13 05:42:51 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 13 Dec 2004 12:42:51 +0100 Subject: [AccessD] backup database Message-ID: Hi Pedro Yes there is. Look up in the archive "SaveAsText, LoadFromText" from 2004-07-25 and -27. /gustav >>> pedro at plex.nl 12-12-2004 20:56:15 >>> Hello Group, is there a way to backup the backend as a tekstfile in columns or as excel file, with one click of a button. I don't want to open each table and save them by hand to a different folder as the default folder where the database is in. Pedro Janssen -- From dejpolsys at hotmail.com Mon Dec 13 06:38:29 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 13 Dec 2004 07:38:29 -0500 Subject: [AccessD] A2003: FTP and Network Connection Gurus References: <200412130336.iBD3acRl024122@cooper.uws.edu.au> Message-ID: ..de nada ...glad you could make it work for you ...old hands here on AccessD helped me piece it together a few years back when it was my neck on the line, so I'm just passing the wealth along :) William Hindman ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Sunday, December 12, 2004 10:36 PM Subject: RE: [AccessD] A2003: FTP and Network Connection Gurus > Hi William > > Many many thanks works like a charm > > Stuart and Gustav - my most sincere thanks for trying to get a luddite > through this > > I really appreciate your patience and your efforts > > Have a great day > > Darren > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, 10 December 2004 10:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus > > Darren > > ..sent you off line a working mdb that imports a file from another mdb and > then ftps it to a server on a schedule ...hth :) > > William Hindman > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, December 09, 2004 10:28 PM > Subject: RE: [AccessD] A2003: FTP and Network Connection Gurus > > >> Hi Gustav >> Do you have a working example? >> >> After 5 hours - yes 5 hours - I give up >> >> DD >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Thursday, 9 December 2004 8:14 PM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus >> >> Hi Darren >> >> If you prefer a little more than a DOS box for the user to view, go and >> pick >> Windows Command Line FTP and the Access module to drive it: >> >> http://www.pacific.net/~ken/software/ >> >> /gustav >> >>>>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> >> On 9 Dec 2004 at 9:14, Darren DICK wrote: >> >>> Hi All >>> I need to add an FTP upload screen to one of my APPS >>> >>> Firstly - lemme say I know nothing about such things The client's >>> Network dude gave me... >>> A Server Name >>> A UserName >>> And a Password >>> >>> So...I opened up an FTP client and successfully transferred the back >>> end of the app (About 4meg) to the FTP location he supplied with the >>> credentials he supplied - Phew so far so good :-)) >>> >>> Anyone got any code or forms or URL's they'd like to share so I can >>> incorporate something like an FTP scheduler in my app, to run >> nightly? >>> >> >> You can do it by very easily by scripting a FTP session and scheduling it >> using built in Windows capabilities (Look up FTP commands in WIndows >> Help): >> >> Create a text file (c:\ftpstuff\myscript) containing the following, >> substituting the appropriate info. Make sure that there are no trailing >> >> spaces on the lines: >> >> open ftp.myftpserver.com.au >> myusername >> mypassword >> send c:\ftpstuff\myfile.mdb >> disconnect >> quit >> >> Note: This should work, depending on the FTP Server he is using. Some >> >> require a line like "USER myusername mypassword" in place of the two >> lines >> with above. >> >> Then schedule a one line batch file containing the command: >> >> ftp -s:c:\ftpstuff\myscript >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jeff at OUTBAKTech.com Mon Dec 13 08:44:43 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Mon, 13 Dec 2004 08:44:43 -0600 Subject: [AccessD] Referencing a subform on a tab control Message-ID: <8DA8776D2F418E46A2A464AC6CE630500326E7@outbaksrv1.outbaktech.com> Morning all!! I have a situation where I need to refresh or requery the data on a subform located on in a tab control. I am adding a new record using a popup form and when I close the popup, I need to display the data in the subform with the new record. I know that I have done this (or something like this) before, but it is Monday morning and my brain is not fully engaged yet. TIA Jeff B From dwaters at usinternet.com Mon Dec 13 09:06:28 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 13 Dec 2004 09:06:28 -0600 Subject: [AccessD] Referencing a subform on a tab control In-Reply-To: <17244185.1102949256198.JavaMail.root@sniper13.securence.com> Message-ID: <000801c4e125$526a3c30$de1811d8@danwaters> Jeff - Only because I got up early! Public sub RequerySubForm() Me.[subFormControlName].Form.Requery End sub You can put this procedure into your main form and call it when your popup form closes. The phrase [subFormControlName] represents the name of the subform/subreport control, not the name of the subform itself. After you type 'Me.' intellisense will give you the name of the subform/subreport control. HTH Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Monday, December 13, 2004 8:45 AM To: AccessD Subject: [AccessD] Referencing a subform on a tab control Morning all!! I have a situation where I need to refresh or requery the data on a subform located on in a tab control. I am adding a new record using a popup form and when I close the popup, I need to display the data in the subform with the new record. I know that I have done this (or something like this) before, but it is Monday morning and my brain is not fully engaged yet. TIA Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Mon Dec 13 09:15:19 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Mon, 13 Dec 2004 10:15:19 -0500 Subject: [AccessD] Referencing a subform on a tab control Message-ID: Wild Wild Wild guess...best of luck;) [Forms]![frmMainForm]![sfrm1stSubForm]![ssfrm2ndSubForm].Requery Mark -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Monday, December 13, 2004 9:45 AM To: AccessD Subject: [AccessD] Referencing a subform on a tab control Morning all!! I have a situation where I need to refresh or requery the data on a subform located on in a tab control. I am adding a new record using a popup form and when I close the popup, I need to display the data in the subform with the new record. I know that I have done this (or something like this) before, but it is Monday morning and my brain is not fully engaged yet. TIA Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 13 10:01:34 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Dec 2004 08:01:34 -0800 Subject: [AccessD] Library Database? .mda or .mdb as referenced library -pros or cons? Message-ID: MDA normally designates an add-in library. To function as an add-in, there is a specific table required. To function as a library, not. We compile several mdbs into mdes and reference them as libraries, including the one with all our Redemption code in it. Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, December 12, 2004 3:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library -pros or cons? Jim, After setting a reference to DAO 3.6, and resolving circularity among function and procedure calls, everything seemed to work correctly. I did set a reference to the Library mda. It appears that doing this allows the code in the library database to work exactly as if the code existed in the FE mdb. I did not get an initial error the first time the library code was used. I also tried changing the mda to an mdb. Everything still worked just as before. So now I'm wondering what the difference is between an mda and an mdb? Any pros/cons to one or the other when using as a library database? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Sunday, December 12, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Library Database? Hi Dan: Not the way you trying to do it. You can create a new MDB/MDE, with a module and in that module, a group of public variables, function and subroutines. This will be your library. The MDB/MDE database will have to be attached to your caller/main MDB before the functionality can be accessed. (file/get external data/link...) Just like classes only public object, in the module can be accessed externally. Note; that none of the modules objects can be accessed until the module is formally called (Example: if your library module is initially called from a Form open event, you will receive an error but the Form's load event works fine.) and from then on all the functions /subroutines /variables will be exposed because the whole module is then automatically loaded into memory. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 1:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tdd-inc at shaw.ca Mon Dec 13 10:26:43 2004 From: tdd-inc at shaw.ca (Technical Designs) Date: Mon, 13 Dec 2004 08:26:43 -0800 Subject: [AccessD] Splitting information from One field into Two anddumpingthe middle In-Reply-To: <000f01c4e033$3f2e2840$b274d0d5@minster33c3r25> Message-ID: <006301c4e130$8b69e7f0$7801a8c0@cadcam> Thanks Stuart and Andy Lacey for the answer! They both work great... Philip :) -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Sunday, December 12, 2004 2:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Splitting information from One field into Two anddumpingthe middle Hi Philip Here's a function which will strip any string which has separators into its individual elements and put them in an array. All you have to do is pass it your string, the name of the array which you must already have dim'd, and then on return you can take the first and last elements of the array. So Dim astrNames() as string Dim intEls as integer Call Parse(inputstring, astrNames, ":",True) then strFirstName=astrNames(1) strLlastname=astrNames(ubound(astrnames)) (add your own processing to cater for empty string, or just one element) -------------the function Function Parse(prmStr as String, prmArr, prmDelim as String, Optional prmTrim) 'Takes a string within which is a list separated by a specified delimiter (eg commas) 'Pass also an initialised string array and the delimiter 'Finally optional parameter to denote whether to trim the results (useful if string is 'comma-separated with spaces after the commas) 'Fills the array with individual elements from the string Dim intX As Integer Dim intPointer As Integer If IsMissing(prmTrim) Then prmTrim = False End If If Nz(prmStr, "") <> "" Then intX = 1 'Loop thru string looking for delimiter Do While InStr(intX, prmStr, prmDelim) > 0 intPointer = intPointer + 1 ReDim Preserve prmArr(intPointer) prmArr(intPointer) = Mid(prmStr, intX, InStr(intX, prmStr, prmDelim) - intX) If prmTrim Then prmArr(intPointer) = Trim(prmArr(intPointer)) End If intX = InStr(intX, prmStr, prmDelim) + 1 Loop 'At end do the last element when no more delimiters If Trim(Mid(prmStr, intX)) <> "" Then 'Not if delimiter at end intPointer = intPointer + 1 ReDim Preserve prmArr(intPointer) prmArr(intPointer) = Mid(prmStr, intX) If prmTrim Then prmArr(intPointer) = Trim(prmArr(intPointer)) End If End If End If End Function HTH -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Technical Designs > Sent: 12 December 2004 01:17 > To: accessd at databaseadvisors.com > Subject: [AccessD] Splitting information from One field into > Two and dumpingthe middle > > > Hi Group > > > > I have been reading and learning lots from this list. and > even coming up with some of the same answers! .. once in a while. > > This is my first question to the group. > > > > I have one field [FullName] with . Name:number > or > > > Name:subname:number where there can be more than > one recurrence > of subnames > > > > What I would like to do is split "name" into [splitname] and > "number" into [splitnumber] fields of tblTable and loose the > middle subnames (if there are > any) > > > > I have > > Me.SplitName = Trim(Left(Trim(Me.FullName), > InStr(Trim(Me.FullName), ":") - 1)) '. this works fine > > > > Me.SplitNumber = Trim(Right(Trim(Me.FullName), > Len(Trim(Me.FullName)) - (InStr(Trim(Me.FullName), ":") - 0))) > > > > .. SplitNumber works fine if there is only one ":" in the > string.. but there might be 2 or more ":" sometimes > > > > the Name:subname:number format is from an exported file being > imported into MSAccess. The only consistent thing is the ":" > > > > Thanks in advance > > > > Philip S. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From dwaters at usinternet.com Mon Dec 13 10:35:00 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 13 Dec 2004 10:35:00 -0600 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? In-Reply-To: <23524880.1102953835316.JavaMail.root@sniper22.securence.com> Message-ID: <001001c4e131$b0f0e180$de1811d8@danwaters> Thanks Charlotte! I don't need an add-in, just a library, so I'll just use an mdb or mde. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 13, 2004 10:02 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? MDA normally designates an add-in library. To function as an add-in, there is a specific table required. To function as a library, not. We compile several mdbs into mdes and reference them as libraries, including the one with all our Redemption code in it. Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, December 12, 2004 3:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library -pros or cons? Jim, After setting a reference to DAO 3.6, and resolving circularity among function and procedure calls, everything seemed to work correctly. I did set a reference to the Library mda. It appears that doing this allows the code in the library database to work exactly as if the code existed in the FE mdb. I did not get an initial error the first time the library code was used. I also tried changing the mda to an mdb. Everything still worked just as before. So now I'm wondering what the difference is between an mda and an mdb? Any pros/cons to one or the other when using as a library database? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Sunday, December 12, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Library Database? Hi Dan: Not the way you trying to do it. You can create a new MDB/MDE, with a module and in that module, a group of public variables, function and subroutines. This will be your library. The MDB/MDE database will have to be attached to your caller/main MDB before the functionality can be accessed. (file/get external data/link...) Just like classes only public object, in the module can be accessed externally. Note; that none of the modules objects can be accessed until the module is formally called (Example: if your library module is initially called from a Form open event, you will receive an error but the Form's load event works fine.) and from then on all the functions /subroutines /variables will be exposed because the whole module is then automatically loaded into memory. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 1:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Mon Dec 13 10:48:49 2004 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 13 Dec 2004 11:48:49 -0500 Subject: [AccessD] SQL Server compact and repair - Equivalent to Access Message-ID: How can I perform a compact and repair in SQL Server? The same type of compact and repair that exists in Access? Can it be scheduled to run once per week? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 108 Franklin Street Watertown, NY 13601 (315) 785-0319 www.pro-soft.net From jwcolby at colbyconsulting.com Mon Dec 13 10:52:00 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 13 Dec 2004 11:52:00 -0500 Subject: [AccessD] Referencing a subform on a tab control In-Reply-To: Message-ID: <002301c4e134$10c68090$e8dafea9@ColbyM6805> Jeff, It turns out that the form's control collection contains a pointer to the subform so you don't need the tab in there. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Monday, December 13, 2004 10:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Referencing a subform on a tab control Wild Wild Wild guess...best of luck;) [Forms]![frmMainForm]![sfrm1stSubForm]![ssfrm2ndSubForm].Requery Mark -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Monday, December 13, 2004 9:45 AM To: AccessD Subject: [AccessD] Referencing a subform on a tab control Morning all!! I have a situation where I need to refresh or requery the data on a subform located on in a tab control. I am adding a new record using a popup form and when I close the popup, I need to display the data in the subform with the new record. I know that I have done this (or something like this) before, but it is Monday morning and my brain is not fully engaged yet. TIA Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Dec 13 14:37:32 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 13 Dec 2004 15:37:32 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2967@xlivmbx21.aig.com> Just a little heads-up regarding using 'library' files. If you make a change to the library (such as you add a new handy dandy routine to it, or make some alteration to an existing routine) then any and all the applications which are using the library will need to be recompiled. Otherwise you will get a Dr. Watson error when you try to run an application that has a reference to the (now changed) library. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2004 11:35 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Thanks Charlotte! > > I don't need an add-in, just a library, so I'll just use an mdb or mde. > > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, December 13, 2004 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > MDA normally designates an add-in library. To function as an add-in, > there is a specific table required. To function as a library, not. We > compile several mdbs into mdes and reference them as libraries, > including the one with all our Redemption code in it. > > Charlotte Foust > > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Sunday, December 12, 2004 3:03 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library -pros or cons? > > > Jim, > > After setting a reference to DAO 3.6, and resolving circularity among > function and procedure calls, everything seemed to work correctly. > > I did set a reference to the Library mda. It appears that doing this > allows the code in the library database to work exactly as if the code > existed in the FE mdb. I did not get an initial error the first time > the library code was used. > > I also tried changing the mda to an mdb. Everything still worked just > as before. So now I'm wondering what the difference is between an mda > and an mdb? Any pros/cons to one or the other when using as a library > database? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > (AccessD) > Sent: Sunday, December 12, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? > > Hi Dan: > > Not the way you trying to do it. You can create a new MDB/MDE, with a > module and in that module, a group of public variables, function and > subroutines. This will be your library. The MDB/MDE database will have > to be attached to your caller/main MDB before the functionality can be > accessed. (file/get external data/link...) Just like classes only public > object, in the module can be accessed externally. Note; that none of the > modules objects can be accessed until the module is formally called > (Example: if your library module is initially called from a Form open > event, you will receive an error but the Form's load event works fine.) > and from then on all the functions /subroutines /variables will be > exposed because the whole module is then automatically loaded into > memory. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Sunday, December 12, 2004 1:27 PM > To: Database Advisors > Subject: [AccessD] Library Database? > > > I would like to create a separate file (library?) to contain many > procedures and functions which are used by all my customers. > > > > However, most of these either read or write information to the BE using > recordsets. I tried to set up a library database (.mda), but this > errored out when I tried to dim a recordset variable. The .mda file > appears to not recognized the DAO prefix. > > > > dim rst as DAO.Recordset > > > > Is there a way to create a database file to contain procedures and > functions, called from the FE mdb, that can be used read/write to tables > in the BE mdb? > > > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 13 14:55:02 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Dec 2004 12:55:02 -0800 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Message-ID: Yes, you would only put stable code in a library. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, December 13, 2004 12:38 PM To: 'Access Developers discussion and problem solving'; 'Dan Waters' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Just a little heads-up regarding using 'library' files. If you make a change to the library (such as you add a new handy dandy routine to it, or make some alteration to an existing routine) then any and all the applications which are using the library will need to be recompiled. Otherwise you will get a Dr. Watson error when you try to run an application that has a reference to the (now changed) library. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2004 11:35 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Thanks Charlotte! > > I don't need an add-in, just a library, so I'll just use an mdb or > mde. > > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, December 13, 2004 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > MDA normally designates an add-in library. To function as an add-in, > there is a specific table required. To function as a library, not. > We compile several mdbs into mdes and reference them as libraries, > including the one with all our Redemption code in it. > > Charlotte Foust > > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Sunday, December 12, 2004 3:03 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library -pros or cons? > > > Jim, > > After setting a reference to DAO 3.6, and resolving circularity among > function and procedure calls, everything seemed to work correctly. > > I did set a reference to the Library mda. It appears that doing this > allows the code in the library database to work exactly as if the code > existed in the FE mdb. I did not get an initial error the first time > the library code was used. > > I also tried changing the mda to an mdb. Everything still worked just > as before. So now I'm wondering what the difference is between an mda > and an mdb? Any pros/cons to one or the other when using as a library > database? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > (AccessD) > Sent: Sunday, December 12, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? > > Hi Dan: > > Not the way you trying to do it. You can create a new MDB/MDE, with a > module and in that module, a group of public variables, function and > subroutines. This will be your library. The MDB/MDE database will have > to be attached to your caller/main MDB before the functionality can be > accessed. (file/get external data/link...) Just like classes only > public object, in the module can be accessed externally. Note; that > none of the modules objects can be accessed until the module is > formally called > (Example: if your library module is initially called from a Form open > event, you will receive an error but the Form's load event works fine.) > and from then on all the functions /subroutines /variables will be > exposed because the whole module is then automatically loaded into > memory. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Sunday, December 12, 2004 1:27 PM > To: Database Advisors > Subject: [AccessD] Library Database? > > > I would like to create a separate file (library?) to contain many > procedures and functions which are used by all my customers. > > > > However, most of these either read or write information to the BE > using recordsets. I tried to set up a library database (.mda), but > this errored out when I tried to dim a recordset variable. The .mda > file appears to not recognized the DAO prefix. > > > > dim rst as DAO.Recordset > > > > Is there a way to create a database file to contain procedures and > functions, called from the FE mdb, that can be used read/write to > tables in the BE mdb? > > > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Dec 13 15:06:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 13 Dec 2004 16:06:40 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A2967@xlivmbx21.aig.com> Message-ID: <001c01c4e157$a8829130$e8dafea9@ColbyM6805> That might be true for an MDE but I don't think that is true for an MDA. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, December 13, 2004 3:38 PM To: 'Access Developers discussion and problem solving'; 'Dan Waters' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Just a little heads-up regarding using 'library' files. If you make a change to the library (such as you add a new handy dandy routine to it, or make some alteration to an existing routine) then any and all the applications which are using the library will need to be recompiled. Otherwise you will get a Dr. Watson error when you try to run an application that has a reference to the (now changed) library. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2004 11:35 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Thanks Charlotte! > > I don't need an add-in, just a library, so I'll just use an mdb or > mde. > > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, December 13, 2004 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > MDA normally designates an add-in library. To function as an add-in, > there is a specific table required. To function as a library, not. > We compile several mdbs into mdes and reference them as libraries, > including the one with all our Redemption code in it. > > Charlotte Foust > > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Sunday, December 12, 2004 3:03 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library -pros or cons? > > > Jim, > > After setting a reference to DAO 3.6, and resolving circularity among > function and procedure calls, everything seemed to work correctly. > > I did set a reference to the Library mda. It appears that doing this > allows the code in the library database to work exactly as if the code > existed in the FE mdb. I did not get an initial error the first time > the library code was used. > > I also tried changing the mda to an mdb. Everything still worked just > as before. So now I'm wondering what the difference is between an mda > and an mdb? Any pros/cons to one or the other when using as a library > database? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > (AccessD) > Sent: Sunday, December 12, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? > > Hi Dan: > > Not the way you trying to do it. You can create a new MDB/MDE, with a > module and in that module, a group of public variables, function and > subroutines. This will be your library. The MDB/MDE database will have > to be attached to your caller/main MDB before the functionality can be > accessed. (file/get external data/link...) Just like classes only > public object, in the module can be accessed externally. Note; that > none of the modules objects can be accessed until the module is > formally called > (Example: if your library module is initially called from a Form open > event, you will receive an error but the Form's load event works fine.) > and from then on all the functions /subroutines /variables will be > exposed because the whole module is then automatically loaded into > memory. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Sunday, December 12, 2004 1:27 PM > To: Database Advisors > Subject: [AccessD] Library Database? > > > I would like to create a separate file (library?) to contain many > procedures and functions which are used by all my customers. > > > > However, most of these either read or write information to the BE > using recordsets. I tried to set up a library database (.mda), but > this errored out when I tried to dim a recordset variable. The .mda > file appears to not recognized the DAO prefix. > > > > dim rst as DAO.Recordset > > > > Is there a way to create a database file to contain procedures and > functions, called from the FE mdb, that can be used read/write to > tables in the BE mdb? > > > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Mon Dec 13 15:49:20 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 13 Dec 2004 16:49:20 -0500 Subject: [AccessD] References to Outlook and version problems In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51EE739A5@doesefpeml02.eus.fldoe.int> References: <01B619CB8F6C8C478EDAC39191AEC51EE739A5@doesefpeml02.eus.fldoe.int> Message-ID: <41BE0E60.80505@rogers.com> I know this has been covered before, but I never had need for it until now. Problem: the app gets installed on some boxes running Office 2K and some running Office XP. The app reaches out to Outlook and when I compile it, version-specific references get embedded. Then it doesn't work on the "other" OS. I recall reading here that this has to do with early v. late binding and that one can code around this, using late binding. But I've never done this before. I think that this may not be the only issue involved. I make extensive use of the MS treeview control in the app, and there are several versions of same. Is the solution to this the same as the Outlook issue? I seem to get busted on the line that dims N as Node. Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.1 - Release Date: 12/13/2004 From Lambert.Heenan at AIG.com Mon Dec 13 16:06:21 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 13 Dec 2004 17:06:21 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A296F@xlivmbx21.aig.com> Thus far I've not had to create any MDA's, but I see little reason to think that this same problem would not also show up with them. After all it all boils down to the entry point of functions/subs getting changes when the library is modified. Why would that not happen with an MDA? Have you done an empirical test? Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Monday, December 13, 2004 4:07 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > That might be true for an MDE but I don't think that is true for an MDA. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Monday, December 13, 2004 3:38 PM > To: 'Access Developers discussion and problem solving'; 'Dan Waters' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > Just a little heads-up regarding using 'library' files. > > If you make a change to the library (such as you add a new handy dandy > routine to it, or make some alteration to an existing routine) then any > and > all the applications which are using the library will need to be > recompiled. > Otherwise you will get a Dr. Watson error when you try to run an > application > that has a reference to the (now changed) library. > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Monday, December 13, 2004 11:35 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > > library-pros or cons? > > > > Thanks Charlotte! > > > > I don't need an add-in, just a library, so I'll just use an mdb or > > mde. > > > > Dan Waters > > ProMation Systems > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > > Sent: Monday, December 13, 2004 10:02 AM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > > library-pros or cons? > > > > MDA normally designates an add-in library. To function as an add-in, > > there is a specific table required. To function as a library, not. > > We compile several mdbs into mdes and reference them as libraries, > > including the one with all our Redemption code in it. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: Dan Waters [mailto:dwaters at usinternet.com] > > Sent: Sunday, December 12, 2004 3:03 PM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > > library -pros or cons? > > > > > > Jim, > > > > After setting a reference to DAO 3.6, and resolving circularity among > > function and procedure calls, everything seemed to work correctly. > > > > I did set a reference to the Library mda. It appears that doing this > > allows the code in the library database to work exactly as if the code > > existed in the FE mdb. I did not get an initial error the first time > > the library code was used. > > > > I also tried changing the mda to an mdb. Everything still worked just > > as before. So now I'm wondering what the difference is between an mda > > and an mdb? Any pros/cons to one or the other when using as a library > > database? > > > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > > Lawrence > > (AccessD) > > Sent: Sunday, December 12, 2004 3:56 PM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Library Database? > > > > Hi Dan: > > > > Not the way you trying to do it. You can create a new MDB/MDE, with a > > module and in that module, a group of public variables, function and > > subroutines. This will be your library. The MDB/MDE database will have > > to be attached to your caller/main MDB before the functionality can be > > accessed. (file/get external data/link...) Just like classes only > > public object, in the module can be accessed externally. Note; that > > none of the modules objects can be accessed until the module is > > formally called > > (Example: if your library module is initially called from a Form open > > event, you will receive an error but the Form's load event works fine.) > > and from then on all the functions /subroutines /variables will be > > exposed because the whole module is then automatically loaded into > > memory. > > > > HTH > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > > Sent: Sunday, December 12, 2004 1:27 PM > > To: Database Advisors > > Subject: [AccessD] Library Database? > > > > > > I would like to create a separate file (library?) to contain many > > procedures and functions which are used by all my customers. > > > > > > > > However, most of these either read or write information to the BE > > using recordsets. I tried to set up a library database (.mda), but > > this errored out when I tried to dim a recordset variable. The .mda > > file appears to not recognized the DAO prefix. > > > > > > > > dim rst as DAO.Recordset > > > > > > > > Is there a way to create a database file to contain procedures and > > functions, called from the FE mdb, that can be used read/write to > > tables in the BE mdb? > > > > > > > > Thanks! > > > > Dan Waters > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Mon Dec 13 16:19:57 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Mon, 13 Dec 2004 17:19:57 -0500 Subject: [AccessD] References to Outlook and version problems In-Reply-To: <41BE0E60.80505@rogers.com> Message-ID: <001301c4e161$e41b2cc0$640fa8c0@COA3> Yes, Late binding is the way around this ... Dim everything as Object. Something like: Dim appOut as Object Set appOut= CreateObject("Outlook.Application"). You will lose the constants and have to use the actual numbers, such as olMailItem - need to use the 0 (or 1 - I don't remember). Works for TreeView and Node as well, dim them as objects. Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, December 13, 2004 4:49 PM To: Access Developers discussion and problem solving Subject: [AccessD] References to Outlook and version problems I know this has been covered before, but I never had need for it until now. Problem: the app gets installed on some boxes running Office 2K and some running Office XP. The app reaches out to Outlook and when I compile it, version-specific references get embedded. Then it doesn't work on the "other" OS. I recall reading here that this has to do with early v. late binding and that one can code around this, using late binding. But I've never done this before. I think that this may not be the only issue involved. I make extensive use of the MS treeview control in the app, and there are several versions of same. Is the solution to this the same as the Outlook issue? I seem to get busted on the line that dims N as Node. Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.1 - Release Date: 12/13/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Mon Dec 13 15:45:09 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 13 Dec 2004 22:45:09 +0100 Subject: [AccessD] backup database References: Message-ID: <009c01c4e162$2690b980$f8c581d5@pedro> Thanks Gustav, i will search the archive. Pedro ----- Original Message ----- From: "Gustav Brock" To: Sent: Monday, December 13, 2004 12:42 PM Subject: Re: [AccessD] backup database > Hi Pedro > > Yes there is. > Look up in the archive "SaveAsText, LoadFromText" from 2004-07-25 and > -27. > > /gustav > > >>> pedro at plex.nl 12-12-2004 20:56:15 >>> > Hello Group, > > is there a way to backup the backend as a tekstfile in columns or as > excel file, with one click of a button. > > I don't want to open each table and save them by hand to a different > folder as the default folder where the database is in. > > Pedro Janssen > -- > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Mon Dec 13 15:43:50 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 13 Dec 2004 22:43:50 +0100 Subject: [AccessD] missing reference, converting to A2003 References: <006701c4def0$dc4e41d0$fbc581d5@pedro><002301c4e084$0e01f250$fbc581d5@pedro> Message-ID: <009b01c4e162$26180710$f8c581d5@pedro> Thanks William for the explanation. Pedro ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Sunday, December 12, 2004 10:48 PM Subject: Re: [AccessD] missing reference, converting to A2003 > Pedro > > ..some developers put common code functions in a separate mdb or mde and > use it as a standard "library" for their applications ...if it is not > present when calls are made to a referenced function included in it, you > probably won't be able to compile the application ...when I'm given a > another developer's mdb to modify one of the first things I do is check for > a missing library file which usually shows up as a bad reference ...hth :) > > William Hindman > > ----- Original Message ----- > From: "Pedro Janssen" > To: "Access Developers discussion and problem solving" > > Sent: Sunday, December 12, 2004 2:52 PM > Subject: Re: [AccessD] missing reference, converting to A2003 > > > > Hello William, > > > > i am not sure what you mean by: "picked up any library mdes along with the > > mdb" > > How can i do this? > > > > Pedro > > > > > > ----- Original Message ----- > > From: "William Hindman" > > To: "Access Developers discussion and problem solving" > > > > Sent: Saturday, December 11, 2004 1:22 AM > > Subject: Re: [AccessD] missing reference, converting to A2003 > > > > > >> Pedro > >> > >> ..the IsLoaded is normally found in a utility code module or a library > >> mde > >> ..are you sure you picked up any library mdes along with the mdb? > >> > >> William Hindman > >> > >> > >> ----- Original Message ----- > >> From: "Pedro Janssen" > >> To: "Access Developers discussion and problem solving" > >> > >> Sent: Friday, December 10, 2004 2:44 PM > >> Subject: Re: [AccessD] missing reference, converting to A2003 > >> > >> > >> > Hello Charlotte, > >> > > >> > when unschecking the reference, the code doesn't compile. It gives a > >> > missing > >> > reference for the IsLoaded event. > >> > > >> > Anybody an idea what this refence does? > >> > > >> > Pedro Janssen > >> > > >> > > >> > > >> > ----- Original Message ----- > >> > From: "Charlotte Foust" > >> > To: "Access Developers discussion and problem solving" > >> > > >> > Sent: Thursday, December 09, 2004 5:59 PM > >> > Subject: RE: [AccessD] missing reference, converting to A2003 > >> > > >> > > >> >> If you uncheck the reference, does the code compile? Since the > >> >> reference is to an ocx file, you should only need it if you're using > > the > >> >> activex control in the application, in which case, it would have to be > >> >> installed on your system. > >> >> > >> >> Charlotte Foust > >> >> > >> >> > >> >> -----Original Message----- > >> >> From: pedro at plex.nl [mailto:pedro at plex.nl] > >> >> Sent: Thursday, December 09, 2004 4:08 AM > >> >> To: accessd at databaseadvisors.com > >> >> Subject: [AccessD] missing reference, converting to A2003 > >> >> > >> >> > >> >> Hello Group, > >> >> > >> >> when converting a A2k database to A2003 i get an missing reference > >> >> error. Missing is the effect library (MMEFXE.OCX). I searched the > > system > >> >> for this reference, but i can't find it. Also in the knowledge base i > >> >> can't find any info. Has anybody encountered this problem. > >> >> > >> >> Pedro Janssen > >> >> -- > >> >> AccessD mailing list > >> >> AccessD at databaseadvisors.com > >> >> http://databaseadvisors.com/mailman/listinfo/accessd > >> >> Website: http://www.databaseadvisors.com > >> >> -- > >> >> AccessD mailing list > >> >> AccessD at databaseadvisors.com > >> >> http://databaseadvisors.com/mailman/listinfo/accessd > >> >> Website: http://www.databaseadvisors.com > >> >> > >> > > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Mon Dec 13 16:52:59 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 13 Dec 2004 14:52:59 -0800 Subject: [AccessD] backup database References: Message-ID: <41BE1D4B.6060101@shaw.ca> This will work in Access 97 and up and saveand restore all tables,daps's,referential integrity,db diagrams, and menu bars. SavesAsText 6,"", "C:\mydata\mymdbtablesave.txt" then to reload in a fresh mdb LoadFromText 6,"", "C:\mydata\mymdbtablesave.txt" This can be a big text file probably 1/3 larger than all your tables combined.. The magic number 6 is the constant acDataAccessPage which doesn't exist in Access97 Gustav Brock wrote: >Hi Pedro > >Yes there is. >Look up in the archive "SaveAsText, LoadFromText" from 2004-07-25 and >-27. > >/gustav > > > >>>>pedro at plex.nl 12-12-2004 20:56:15 >>> >>>> >>>> >Hello Group, > >is there a way to backup the backend as a tekstfile in columns or as >excel file, with one click of a button. > >I don't want to open each table and save them by hand to a different >folder as the default folder where the database is in. > >Pedro Janssen >-- > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Dec 13 16:57:55 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 13 Dec 2004 14:57:55 -0800 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? References: <001c01c4e157$a8829130$e8dafea9@ColbyM6805> Message-ID: <41BE1E73.4020309@shaw.ca> Helen Feddema has a write up on this explaining the UsysRegInfo table and the various types of addins http://www.helenfeddema.com/access.htm Writing Access Add-ins accarch108.zip Don't forget to use CodeDB instead of CurrentDB if using tables etc. in your addin. John W. Colby wrote: >That might be true for an MDE but I don't think that is true for an MDA. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert >Sent: Monday, December 13, 2004 3:38 PM >To: 'Access Developers discussion and problem solving'; 'Dan Waters' >Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >library-pros or cons? > > >Just a little heads-up regarding using 'library' files. > >If you make a change to the library (such as you add a new handy dandy >routine to it, or make some alteration to an existing routine) then any and >all the applications which are using the library will need to be recompiled. >Otherwise you will get a Dr. Watson error when you try to run an application >that has a reference to the (now changed) library. > >Lambert > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >>Sent: Monday, December 13, 2004 11:35 AM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >>library-pros or cons? >> >>Thanks Charlotte! >> >>I don't need an add-in, just a library, so I'll just use an mdb or >>mde. >> >>Dan Waters >>ProMation Systems >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >>Foust >>Sent: Monday, December 13, 2004 10:02 AM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >>library-pros or cons? >> >>MDA normally designates an add-in library. To function as an add-in, >>there is a specific table required. To function as a library, not. >>We compile several mdbs into mdes and reference them as libraries, >>including the one with all our Redemption code in it. >> >>Charlotte Foust >> >> >>-----Original Message----- >>From: Dan Waters [mailto:dwaters at usinternet.com] >>Sent: Sunday, December 12, 2004 3:03 PM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >>library -pros or cons? >> >> >>Jim, >> >>After setting a reference to DAO 3.6, and resolving circularity among >>function and procedure calls, everything seemed to work correctly. >> >>I did set a reference to the Library mda. It appears that doing this >>allows the code in the library database to work exactly as if the code >>existed in the FE mdb. I did not get an initial error the first time >>the library code was used. >> >>I also tried changing the mda to an mdb. Everything still worked just >>as before. So now I'm wondering what the difference is between an mda >>and an mdb? Any pros/cons to one or the other when using as a library >>database? >> >>Dan >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>Lawrence >>(AccessD) >>Sent: Sunday, December 12, 2004 3:56 PM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Library Database? >> >>Hi Dan: >> >>Not the way you trying to do it. You can create a new MDB/MDE, with a >>module and in that module, a group of public variables, function and >>subroutines. This will be your library. The MDB/MDE database will have >>to be attached to your caller/main MDB before the functionality can be >>accessed. (file/get external data/link...) Just like classes only >>public object, in the module can be accessed externally. Note; that >>none of the modules objects can be accessed until the module is >>formally called >>(Example: if your library module is initially called from a Form open >>event, you will receive an error but the Form's load event works fine.) >>and from then on all the functions /subroutines /variables will be >>exposed because the whole module is then automatically loaded into >>memory. >> >>HTH >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters >>Sent: Sunday, December 12, 2004 1:27 PM >>To: Database Advisors >>Subject: [AccessD] Library Database? >> >> >>I would like to create a separate file (library?) to contain many >>procedures and functions which are used by all my customers. >> >> >> >>However, most of these either read or write information to the BE >>using recordsets. I tried to set up a library database (.mda), but >>this errored out when I tried to dim a recordset variable. The .mda >>file appears to not recognized the DAO prefix. >> >> >> >> dim rst as DAO.Recordset >> >> >> >>Is there a way to create a database file to contain procedures and >>functions, called from the FE mdb, that can be used read/write to >>tables in the BE mdb? >> >> >> >>Thanks! >> >>Dan Waters >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> -- Marty Connelly Victoria, B.C. Canada From dejpolsys at hotmail.com Mon Dec 13 19:31:42 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 13 Dec 2004 20:31:42 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? References: <1D7828CDB8350747AFE9D69E0E90DA1F073A296F@xlivmbx21.aig.com> Message-ID: ..not specifically but I do note that when I install updates to 3rd party libraries I use, I don't recall ever having to recompile the apps referencing them. William Hindman ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" ; "'John W. Colby'" Sent: Monday, December 13, 2004 5:06 PM Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? > Thus far I've not had to create any MDA's, but I see little reason to > think > that this same problem would not also show up with them. After all it all > boils down to the entry point of functions/subs getting changes when the > library is modified. Why would that not happen with an MDA? Have you done > an empirical test? > > Lambert > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >> Sent: Monday, December 13, 2004 4:07 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> library-pros or cons? >> >> That might be true for an MDE but I don't think that is true for an MDA. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> Sent: Monday, December 13, 2004 3:38 PM >> To: 'Access Developers discussion and problem solving'; 'Dan Waters' >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> library-pros or cons? >> >> >> Just a little heads-up regarding using 'library' files. >> >> If you make a change to the library (such as you add a new handy dandy >> routine to it, or make some alteration to an existing routine) then any >> and >> all the applications which are using the library will need to be >> recompiled. >> Otherwise you will get a Dr. Watson error when you try to run an >> application >> that has a reference to the (now changed) library. >> >> Lambert >> >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> > Sent: Monday, December 13, 2004 11:35 AM >> > To: 'Access Developers discussion and problem solving' >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> > library-pros or cons? >> > >> > Thanks Charlotte! >> > >> > I don't need an add-in, just a library, so I'll just use an mdb or >> > mde. >> > >> > Dan Waters >> > ProMation Systems >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >> > Foust >> > Sent: Monday, December 13, 2004 10:02 AM >> > To: Access Developers discussion and problem solving >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> > library-pros or cons? >> > >> > MDA normally designates an add-in library. To function as an add-in, >> > there is a specific table required. To function as a library, not. >> > We compile several mdbs into mdes and reference them as libraries, >> > including the one with all our Redemption code in it. >> > >> > Charlotte Foust >> > >> > >> > -----Original Message----- >> > From: Dan Waters [mailto:dwaters at usinternet.com] >> > Sent: Sunday, December 12, 2004 3:03 PM >> > To: 'Access Developers discussion and problem solving' >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> > library -pros or cons? >> > >> > >> > Jim, >> > >> > After setting a reference to DAO 3.6, and resolving circularity among >> > function and procedure calls, everything seemed to work correctly. >> > >> > I did set a reference to the Library mda. It appears that doing this >> > allows the code in the library database to work exactly as if the code >> > existed in the FE mdb. I did not get an initial error the first time >> > the library code was used. >> > >> > I also tried changing the mda to an mdb. Everything still worked just >> > as before. So now I'm wondering what the difference is between an mda >> > and an mdb? Any pros/cons to one or the other when using as a library >> > database? >> > >> > Dan >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> > Lawrence >> > (AccessD) >> > Sent: Sunday, December 12, 2004 3:56 PM >> > To: Access Developers discussion and problem solving >> > Subject: RE: [AccessD] Library Database? >> > >> > Hi Dan: >> > >> > Not the way you trying to do it. You can create a new MDB/MDE, with a >> > module and in that module, a group of public variables, function and >> > subroutines. This will be your library. The MDB/MDE database will have >> > to be attached to your caller/main MDB before the functionality can be >> > accessed. (file/get external data/link...) Just like classes only >> > public object, in the module can be accessed externally. Note; that >> > none of the modules objects can be accessed until the module is >> > formally called >> > (Example: if your library module is initially called from a Form open >> > event, you will receive an error but the Form's load event works fine.) >> > and from then on all the functions /subroutines /variables will be >> > exposed because the whole module is then automatically loaded into >> > memory. >> > >> > HTH >> > Jim >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters >> > Sent: Sunday, December 12, 2004 1:27 PM >> > To: Database Advisors >> > Subject: [AccessD] Library Database? >> > >> > >> > I would like to create a separate file (library?) to contain many >> > procedures and functions which are used by all my customers. >> > >> > >> > >> > However, most of these either read or write information to the BE >> > using recordsets. I tried to set up a library database (.mda), but >> > this errored out when I tried to dim a recordset variable. The .mda >> > file appears to not recognized the DAO prefix. >> > >> > >> > >> > dim rst as DAO.Recordset >> > >> > >> > >> > Is there a way to create a database file to contain procedures and >> > functions, called from the FE mdb, that can be used read/write to >> > tables in the BE mdb? >> > >> > >> > >> > Thanks! >> > >> > Dan Waters >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Tue Dec 14 10:29:11 2004 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 14 Dec 2004 17:29:11 +0100 Subject: [AccessD] backup database References: <41BE1D4B.6060101@shaw.ca> Message-ID: <004101c4e1fa$0ba3e320$f2c581d5@pedro> Hello Marty, thanks for the help. Pedro ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Monday, December 13, 2004 11:52 PM Subject: Re: [AccessD] backup database > This will work in Access 97 and up and saveand restore all > tables,daps's,referential integrity,db diagrams, and menu bars. > > SavesAsText 6,"", "C:\mydata\mymdbtablesave.txt" > > then to reload in a fresh mdb > > LoadFromText 6,"", "C:\mydata\mymdbtablesave.txt" > > This can be a big text file probably 1/3 larger than all your tables > combined.. > The magic number 6 is the constant acDataAccessPage which doesn't exist > in Access97 > > Gustav Brock wrote: > > >Hi Pedro > > > >Yes there is. > >Look up in the archive "SaveAsText, LoadFromText" from 2004-07-25 and > >-27. > > > >/gustav > > > > > > > >>>>pedro at plex.nl 12-12-2004 20:56:15 >>> > >>>> > >>>> > >Hello Group, > > > >is there a way to backup the backend as a tekstfile in columns or as > >excel file, with one click of a button. > > > >I don't want to open each table and save them by hand to a different > >folder as the default folder where the database is in. > > > >Pedro Janssen > >-- > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at AIG.com Tue Dec 14 11:12:53 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 14 Dec 2004 12:12:53 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2977@xlivmbx21.aig.com> Interesting. I'm going to go off and do some more testing. I thought I'd put this problem to bed years ago as 'just one of those things you have to deal with', but now I'm wondering. I'm talking about plain vanilla code routines stored in an MDE file which is then added as a reference in another application, which in turn is compiled to an MDE file. This is in an Access 97 environment, but I think it also happens with Access 2002 - something else to test. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, December 13, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > ..not specifically but I do note that when I install updates to 3rd party > libraries I use, I don't recall ever having to recompile the apps > referencing them. > > William Hindman > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'John W. Colby'" > > Sent: Monday, December 13, 2004 5:06 PM > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > > Thus far I've not had to create any MDA's, but I see little reason to > > think > > that this same problem would not also show up with them. After all it > all > > boils down to the entry point of functions/subs getting changes when the > > library is modified. Why would that not happen with an MDA? Have you > done > > an empirical test? > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > >> Sent: Monday, December 13, 2004 4:07 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> library-pros or cons? > >> > >> That might be true for an MDE but I don't think that is true for an > MDA. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> Contribute your unused CPU cycles to a good cause: > >> http://folding.stanford.edu/ > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > >> Lambert > >> Sent: Monday, December 13, 2004 3:38 PM > >> To: 'Access Developers discussion and problem solving'; 'Dan Waters' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> library-pros or cons? > >> > >> > >> Just a little heads-up regarding using 'library' files. > >> > >> If you make a change to the library (such as you add a new handy dandy > >> routine to it, or make some alteration to an existing routine) then any > >> and > >> all the applications which are using the library will need to be > >> recompiled. > >> Otherwise you will get a Dr. Watson error when you try to run an > >> application > >> that has a reference to the (now changed) library. > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > >> > Sent: Monday, December 13, 2004 11:35 AM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> > library-pros or cons? > >> > > >> > Thanks Charlotte! > >> > > >> > I don't need an add-in, just a library, so I'll just use an mdb or > >> > mde. > >> > > >> > Dan Waters > >> > ProMation Systems > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > >> > Foust > >> > Sent: Monday, December 13, 2004 10:02 AM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> > library-pros or cons? > >> > > >> > MDA normally designates an add-in library. To function as an add-in, > >> > there is a specific table required. To function as a library, not. > >> > We compile several mdbs into mdes and reference them as libraries, > >> > including the one with all our Redemption code in it. > >> > > >> > Charlotte Foust > >> > > >> > > >> > -----Original Message----- > >> > From: Dan Waters [mailto:dwaters at usinternet.com] > >> > Sent: Sunday, December 12, 2004 3:03 PM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> > library -pros or cons? > >> > > >> > > >> > Jim, > >> > > >> > After setting a reference to DAO 3.6, and resolving circularity among > >> > function and procedure calls, everything seemed to work correctly. > >> > > >> > I did set a reference to the Library mda. It appears that doing this > >> > allows the code in the library database to work exactly as if the > code > >> > existed in the FE mdb. I did not get an initial error the first time > >> > the library code was used. > >> > > >> > I also tried changing the mda to an mdb. Everything still worked > just > >> > as before. So now I'm wondering what the difference is between an > mda > >> > and an mdb? Any pros/cons to one or the other when using as a > library > >> > database? > >> > > >> > Dan > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >> > Lawrence > >> > (AccessD) > >> > Sent: Sunday, December 12, 2004 3:56 PM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? > >> > > >> > Hi Dan: > >> > > >> > Not the way you trying to do it. You can create a new MDB/MDE, with a > >> > module and in that module, a group of public variables, function and > >> > subroutines. This will be your library. The MDB/MDE database will > have > >> > to be attached to your caller/main MDB before the functionality can > be > >> > accessed. (file/get external data/link...) Just like classes only > >> > public object, in the module can be accessed externally. Note; that > >> > none of the modules objects can be accessed until the module is > >> > formally called > >> > (Example: if your library module is initially called from a Form open > >> > event, you will receive an error but the Form's load event works > fine.) > >> > and from then on all the functions /subroutines /variables will be > >> > exposed because the whole module is then automatically loaded into > >> > memory. > >> > > >> > HTH > >> > Jim > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > >> > Sent: Sunday, December 12, 2004 1:27 PM > >> > To: Database Advisors > >> > Subject: [AccessD] Library Database? > >> > > >> > > >> > I would like to create a separate file (library?) to contain many > >> > procedures and functions which are used by all my customers. > >> > > >> > > >> > > >> > However, most of these either read or write information to the BE > >> > using recordsets. I tried to set up a library database (.mda), but > >> > this errored out when I tried to dim a recordset variable. The .mda > >> > file appears to not recognized the DAO prefix. > >> > > >> > > >> > > >> > dim rst as DAO.Recordset > >> > > >> > > >> > > >> > Is there a way to create a database file to contain procedures and > >> > functions, called from the FE mdb, that can be used read/write to > >> > tables in the BE mdb? > >> > > >> > > >> > > >> > Thanks! > >> > > >> > Dan Waters > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Dec 14 12:45:07 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 14 Dec 2004 13:45:07 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2979@xlivmbx21.aig.com> Ok. I've done some testing in both Access 97 and Access 2002. 1/ Created an MDB file with a single module. The module has a single function that returns as string. The string consists of the value of CurrentDb.Name, a new line and the value of CodeDb.Name 2/ Compiled the MDB file to an MDE file. 3/ Create another MDB file, and set a reference in it to the MDE file created in step 2. Added a module to the second MDB with a function ("WhatGives()") which calls the function in the library MDE and displays the returned string in a MsgBox. Call the function WhatGives() from the autoexec macro. 4/ Compile the second MDB to an MDE file. Then I open the second MDE, autoexec runs and I see the correct CurrentDb and CodeDb information displayed, as expected. 5/ Open the first, 'library' MDB and added another function to the existing module. Then compile it to an MDE once more. 6/ Open the second MDE again. This time Access displays the message "The expression you entered has a function that Microsoft Access can't find." 7 Open the second MDB file and AutoExec runs without complaint, and I see the two file paths displayed. Recompile the second MDB to an MDE again, and now I can open the MDE and it runs the library function just fine. This behavior is repeated exactly when using Access 2002 (on a different computer than the one with Access 97). So it seems like MDB applications will happily update themselves when they are using a reference to a changed MDE library, but MDE applications will not. This gels with the notion that MDA files do on exhibit this problem as they contain the VBA source code (do they really?). I'm assuming that the very simple setup I created was robust enough to display an error message, but in a more complex, "real world" example with a large library file and similarly large client application I get Dr. Watson errors when I try running an application which is referencing a library that got changed (if the client is not first recompiled). FWIW Lambert > -----Original Message----- > From: Heenan, Lambert > Sent: Tuesday, December 14, 2004 12:13 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Interesting. I'm going to go off and do some more testing. I thought I'd > put this problem to bed years ago as 'just one of those things you have to > deal with', but now I'm wondering. > > I'm talking about plain vanilla code routines stored in an MDE file which > is then added as a reference in another application, which in turn is > compiled to an MDE file. This is in an Access 97 environment, but I think > it also happens with Access 2002 - something else to test. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, December 13, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Library Database? .mda or .mdb as > referenced library-pros or cons? > > ..not specifically but I do note that when I install updates to 3rd > party > libraries I use, I don't recall ever having to recompile the apps > referencing them. > > William Hindman > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'John W. Colby'" > > Sent: Monday, December 13, 2004 5:06 PM > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > > Thus far I've not had to create any MDA's, but I see little reason > to > > think > > that this same problem would not also show up with them. After all > it all > > boils down to the entry point of functions/subs getting changes > when the > > library is modified. Why would that not happen with an MDA? Have > you done > > an empirical test? > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > >> Sent: Monday, December 13, 2004 4:07 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> library-pros or cons? > >> > >> That might be true for an MDE but I don't think that is true for > an MDA. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> Contribute your unused CPU cycles to a good cause: > >> http://folding.stanford.edu/ > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Heenan, > >> Lambert > >> Sent: Monday, December 13, 2004 3:38 PM > >> To: 'Access Developers discussion and problem solving'; 'Dan > Waters' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> library-pros or cons? > >> > >> > >> Just a little heads-up regarding using 'library' files. > >> > >> If you make a change to the library (such as you add a new handy > dandy > >> routine to it, or make some alteration to an existing routine) > then any > >> and > >> all the applications which are using the library will need to be > >> recompiled. > >> Otherwise you will get a Dr. Watson error when you try to run an > >> application > >> that has a reference to the (now changed) library. > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > Waters > >> > Sent: Monday, December 13, 2004 11:35 AM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library-pros or cons? > >> > > >> > Thanks Charlotte! > >> > > >> > I don't need an add-in, just a library, so I'll just use an mdb > or > >> > mde. > >> > > >> > Dan Waters > >> > ProMation Systems > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte > >> > Foust > >> > Sent: Monday, December 13, 2004 10:02 AM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library-pros or cons? > >> > > >> > MDA normally designates an add-in library. To function as an > add-in, > >> > there is a specific table required. To function as a library, > not. > >> > We compile several mdbs into mdes and reference them as > libraries, > >> > including the one with all our Redemption code in it. > >> > > >> > Charlotte Foust > >> > > >> > > >> > -----Original Message----- > >> > From: Dan Waters [mailto:dwaters at usinternet.com] > >> > Sent: Sunday, December 12, 2004 3:03 PM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library -pros or cons? > >> > > >> > > >> > Jim, > >> > > >> > After setting a reference to DAO 3.6, and resolving circularity > among > >> > function and procedure calls, everything seemed to work > correctly. > >> > > >> > I did set a reference to the Library mda. It appears that > doing this > >> > allows the code in the library database to work exactly as if > the code > >> > existed in the FE mdb. I did not get an initial error the > first time > >> > the library code was used. > >> > > >> > I also tried changing the mda to an mdb. Everything still > worked just > >> > as before. So now I'm wondering what the difference is between > an mda > >> > and an mdb? Any pros/cons to one or the other when using as a > library > >> > database? > >> > > >> > Dan > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >> > Lawrence > >> > (AccessD) > >> > Sent: Sunday, December 12, 2004 3:56 PM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? > >> > > >> > Hi Dan: > >> > > >> > Not the way you trying to do it. You can create a new MDB/MDE, > with a > >> > module and in that module, a group of public variables, > function and > >> > subroutines. This will be your library. The MDB/MDE database > will have > >> > to be attached to your caller/main MDB before the functionality > can be > >> > accessed. (file/get external data/link...) Just like classes > only > >> > public object, in the module can be accessed externally. Note; > that > >> > none of the modules objects can be accessed until the module is > >> > formally called > >> > (Example: if your library module is initially called from a > Form open > >> > event, you will receive an error but the Form's load event > works fine.) > >> > and from then on all the functions /subroutines /variables will > be > >> > exposed because the whole module is then automatically loaded > into > >> > memory. > >> > > >> > HTH > >> > Jim > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan > Waters > >> > Sent: Sunday, December 12, 2004 1:27 PM > >> > To: Database Advisors > >> > Subject: [AccessD] Library Database? > >> > > >> > > >> > I would like to create a separate file (library?) to contain > many > >> > procedures and functions which are used by all my customers. > >> > > >> > > >> > > >> > However, most of these either read or write information to the > BE > >> > using recordsets. I tried to set up a library database (.mda), > but > >> > this errored out when I tried to dim a recordset variable. The > .mda > >> > file appears to not recognized the DAO prefix. > >> > > >> > > >> > > >> > dim rst as DAO.Recordset > >> > > >> > > >> > > >> > Is there a way to create a database file to contain procedures > and > >> > functions, called from the FE mdb, that can be used read/write > to > >> > tables in the BE mdb? > >> > > >> > > >> > > >> > Thanks! > >> > > >> > Dan Waters > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Tue Dec 14 13:17:25 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 14 Dec 2004 14:17:25 -0500 Subject: [AccessD] OT - VBA Required / Already installed -Office/Developer 2000 In-Reply-To: <41BB2DD4.9179.15DB017@localhost> Message-ID: Thanks, guys. However, I got Developer to re-install, but there is still the problem with msado21.tlb. This computer (running Win2000 and A2K) insists on including msado21.tlb as a line item in the selection screen in the Package and Deployment Wizard. My other laptop (also with Win2000 and A2K) does not try to include msado21.tlb. Now for really the bigger problem. My new laptop runs WinXP SP2 and A2K (A2K3 was installed and removed). It produces installation packages that will not run on other computers. I get the "Some files are out of date..." crap. Say OK to update files, it seems to, restarts, and then you get into an endless loop of "Some files out of date..." and restarting - it will never get beyond that point. The desktop (the one with the msado21.tlb issue) has MDAC 2.52.6019.0 The old laptop has MDAC 2.70.7713.4 The new laptop has MDAC 2.81.1117.0 What now? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Saturday, December 11, 2004 5:27 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT - VBA Required / Already installed -Office/Developer 2000 On 10 Dec 2004 at 14:14, Reuben Cummings wrote: > I have tried to repair Office and Developer (both 2000). The problem > occurs when I insert the Developer CD. I get a messgae stating that > Developer requires VBA 6.0 and that I must install Office or something > else that contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. Ignore my last e-mail. I found the KB article; http://support.microsoft.com/?KBID=322632 Here is the resolution: To resolve the issue, locate the ACMBoot.exe file on the root directory of the Microsoft Office 2000 Developer CD, and then run it. You can install Office 2000 Developer successfully when you start Setup in this manner. -- Bryan Carbonnell - carbonnb at sympatico.ca I don't suffer from stress. I am a carrier. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Tue Dec 14 13:21:58 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 14 Dec 2004 14:21:58 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9BD@DISABILITYINS01> Lambert, Thanks for that, definitely a "need to know" item if working with MDEs. John W. Colby The DIS Database Guy -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, December 14, 2004 1:45 PM To: Access-D Email (E-mail) Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Ok. I've done some testing in both Access 97 and Access 2002. 1/ Created an MDB file with a single module. The module has a single function that returns as string. The string consists of the value of CurrentDb.Name, a new line and the value of CodeDb.Name 2/ Compiled the MDB file to an MDE file. 3/ Create another MDB file, and set a reference in it to the MDE file created in step 2. Added a module to the second MDB with a function ("WhatGives()") which calls the function in the library MDE and displays the returned string in a MsgBox. Call the function WhatGives() from the autoexec macro. 4/ Compile the second MDB to an MDE file. Then I open the second MDE, autoexec runs and I see the correct CurrentDb and CodeDb information displayed, as expected. 5/ Open the first, 'library' MDB and added another function to the existing module. Then compile it to an MDE once more. 6/ Open the second MDE again. This time Access displays the message "The expression you entered has a function that Microsoft Access can't find." 7 Open the second MDB file and AutoExec runs without complaint, and I see the two file paths displayed. Recompile the second MDB to an MDE again, and now I can open the MDE and it runs the library function just fine. This behavior is repeated exactly when using Access 2002 (on a different computer than the one with Access 97). So it seems like MDB applications will happily update themselves when they are using a reference to a changed MDE library, but MDE applications will not. This gels with the notion that MDA files do on exhibit this problem as they contain the VBA source code (do they really?). I'm assuming that the very simple setup I created was robust enough to display an error message, but in a more complex, "real world" example with a large library file and similarly large client application I get Dr. Watson errors when I try running an application which is referencing a library that got changed (if the client is not first recompiled). FWIW Lambert > -----Original Message----- > From: Heenan, Lambert > Sent: Tuesday, December 14, 2004 12:13 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Interesting. I'm going to go off and do some more testing. I thought I'd > put this problem to bed years ago as 'just one of those things you have to > deal with', but now I'm wondering. > > I'm talking about plain vanilla code routines stored in an MDE file which > is then added as a reference in another application, which in turn is > compiled to an MDE file. This is in an Access 97 environment, but I think > it also happens with Access 2002 - something else to test. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, December 13, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Library Database? .mda or .mdb as > referenced library-pros or cons? > > ..not specifically but I do note that when I install updates to 3rd > party > libraries I use, I don't recall ever having to recompile the apps > referencing them. > > William Hindman > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'John W. Colby'" > > Sent: Monday, December 13, 2004 5:06 PM > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > > Thus far I've not had to create any MDA's, but I see little reason > to > > think > > that this same problem would not also show up with them. After all > it all > > boils down to the entry point of functions/subs getting changes > when the > > library is modified. Why would that not happen with an MDA? Have > you done > > an empirical test? > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > >> Sent: Monday, December 13, 2004 4:07 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> library-pros or cons? > >> > >> That might be true for an MDE but I don't think that is true for > an MDA. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> Contribute your unused CPU cycles to a good cause: > >> http://folding.stanford.edu/ > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Heenan, > >> Lambert > >> Sent: Monday, December 13, 2004 3:38 PM > >> To: 'Access Developers discussion and problem solving'; 'Dan > Waters' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> library-pros or cons? > >> > >> > >> Just a little heads-up regarding using 'library' files. > >> > >> If you make a change to the library (such as you add a new handy > dandy > >> routine to it, or make some alteration to an existing routine) > then any > >> and > >> all the applications which are using the library will need to be > >> recompiled. > >> Otherwise you will get a Dr. Watson error when you try to run an > >> application > >> that has a reference to the (now changed) library. > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > Waters > >> > Sent: Monday, December 13, 2004 11:35 AM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library-pros or cons? > >> > > >> > Thanks Charlotte! > >> > > >> > I don't need an add-in, just a library, so I'll just use an mdb > or > >> > mde. > >> > > >> > Dan Waters > >> > ProMation Systems > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte > >> > Foust > >> > Sent: Monday, December 13, 2004 10:02 AM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library-pros or cons? > >> > > >> > MDA normally designates an add-in library. To function as an > add-in, > >> > there is a specific table required. To function as a library, > not. > >> > We compile several mdbs into mdes and reference them as > libraries, > >> > including the one with all our Redemption code in it. > >> > > >> > Charlotte Foust > >> > > >> > > >> > -----Original Message----- > >> > From: Dan Waters [mailto:dwaters at usinternet.com] > >> > Sent: Sunday, December 12, 2004 3:03 PM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library -pros or cons? > >> > > >> > > >> > Jim, > >> > > >> > After setting a reference to DAO 3.6, and resolving circularity > among > >> > function and procedure calls, everything seemed to work > correctly. > >> > > >> > I did set a reference to the Library mda. It appears that > doing this > >> > allows the code in the library database to work exactly as if > the code > >> > existed in the FE mdb. I did not get an initial error the > first time > >> > the library code was used. > >> > > >> > I also tried changing the mda to an mdb. Everything still > worked just > >> > as before. So now I'm wondering what the difference is between > an mda > >> > and an mdb? Any pros/cons to one or the other when using as a > library > >> > database? > >> > > >> > Dan > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >> > Lawrence > >> > (AccessD) > >> > Sent: Sunday, December 12, 2004 3:56 PM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? > >> > > >> > Hi Dan: > >> > > >> > Not the way you trying to do it. You can create a new MDB/MDE, > with a > >> > module and in that module, a group of public variables, > function and > >> > subroutines. This will be your library. The MDB/MDE database > will have > >> > to be attached to your caller/main MDB before the functionality > can be > >> > accessed. (file/get external data/link...) Just like classes > only > >> > public object, in the module can be accessed externally. Note; > that > >> > none of the modules objects can be accessed until the module is > >> > formally called > >> > (Example: if your library module is initially called from a > Form open > >> > event, you will receive an error but the Form's load event > works fine.) > >> > and from then on all the functions /subroutines /variables will > be > >> > exposed because the whole module is then automatically loaded > into > >> > memory. > >> > > >> > HTH > >> > Jim > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan > Waters > >> > Sent: Sunday, December 12, 2004 1:27 PM > >> > To: Database Advisors > >> > Subject: [AccessD] Library Database? > >> > > >> > > >> > I would like to create a separate file (library?) to contain > many > >> > procedures and functions which are used by all my customers. > >> > > >> > > >> > > >> > However, most of these either read or write information to the > BE > >> > using recordsets. I tried to set up a library database (.mda), > but > >> > this errored out when I tried to dim a recordset variable. The > .mda > >> > file appears to not recognized the DAO prefix. > >> > > >> > > >> > > >> > dim rst as DAO.Recordset > >> > > >> > > >> > > >> > Is there a way to create a database file to contain procedures > and > >> > functions, called from the FE mdb, that can be used read/write > to > >> > tables in the BE mdb? > >> > > >> > > >> > > >> > Thanks! > >> > > >> > Dan Waters > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 14 13:21:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 14 Dec 2004 11:21:48 -0800 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Message-ID: MDE files add an additional layer of complications, Lambert. Changing them out does require a recompile of the database that references them. If they're not MDEs, it shouldn't. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, December 14, 2004 9:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Interesting. I'm going to go off and do some more testing. I thought I'd put this problem to bed years ago as 'just one of those things you have to deal with', but now I'm wondering. I'm talking about plain vanilla code routines stored in an MDE file which is then added as a reference in another application, which in turn is compiled to an MDE file. This is in an Access 97 environment, but I think it also happens with Access 2002 - something else to test. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, December 13, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > ..not specifically but I do note that when I install updates to 3rd > party > libraries I use, I don't recall ever having to recompile the apps > referencing them. > > William Hindman > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'John W. Colby'" > > Sent: Monday, December 13, 2004 5:06 PM > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > > Thus far I've not had to create any MDA's, but I see little reason > > to > > think > > that this same problem would not also show up with them. After all it > all > > boils down to the entry point of functions/subs getting changes when > > the library is modified. Why would that not happen with an MDA? > > Have you > done > > an empirical test? > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > >> Colby > >> Sent: Monday, December 13, 2004 4:07 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> library-pros or cons? > >> > >> That might be true for an MDE but I don't think that is true for an > MDA. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> Contribute your unused CPU cycles to a good cause: > >> http://folding.stanford.edu/ > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > >> Lambert > >> Sent: Monday, December 13, 2004 3:38 PM > >> To: 'Access Developers discussion and problem solving'; 'Dan Waters' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> library-pros or cons? > >> > >> > >> Just a little heads-up regarding using 'library' files. > >> > >> If you make a change to the library (such as you add a new handy > >> dandy routine to it, or make some alteration to an existing > >> routine) then any and all the applications which are using the > >> library will need to be recompiled. > >> Otherwise you will get a Dr. Watson error when you try to run an > >> application > >> that has a reference to the (now changed) library. > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > >> > Waters > >> > Sent: Monday, December 13, 2004 11:35 AM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> > library-pros or cons? > >> > > >> > Thanks Charlotte! > >> > > >> > I don't need an add-in, just a library, so I'll just use an mdb > >> > or mde. > >> > > >> > Dan Waters > >> > ProMation Systems > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >> > Charlotte Foust > >> > Sent: Monday, December 13, 2004 10:02 AM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > >> > referenced library-pros or cons? > >> > > >> > MDA normally designates an add-in library. To function as an > >> > add-in, there is a specific table required. To function as a > >> > library, not. We compile several mdbs into mdes and reference > >> > them as libraries, including the one with all our Redemption code > >> > in it. > >> > > >> > Charlotte Foust > >> > > >> > > >> > -----Original Message----- > >> > From: Dan Waters [mailto:dwaters at usinternet.com] > >> > Sent: Sunday, December 12, 2004 3:03 PM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > >> > referenced library -pros or cons? > >> > > >> > > >> > Jim, > >> > > >> > After setting a reference to DAO 3.6, and resolving circularity > >> > among function and procedure calls, everything seemed to work > >> > correctly. > >> > > >> > I did set a reference to the Library mda. It appears that doing > >> > this allows the code in the library database to work exactly as > >> > if the > code > >> > existed in the FE mdb. I did not get an initial error the first > >> > time the library code was used. > >> > > >> > I also tried changing the mda to an mdb. Everything still worked > just > >> > as before. So now I'm wondering what the difference is between > >> > an > mda > >> > and an mdb? Any pros/cons to one or the other when using as a > library > >> > database? > >> > > >> > Dan > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >> > Lawrence > >> > (AccessD) > >> > Sent: Sunday, December 12, 2004 3:56 PM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? > >> > > >> > Hi Dan: > >> > > >> > Not the way you trying to do it. You can create a new MDB/MDE, > >> > with a module and in that module, a group of public variables, > >> > function and subroutines. This will be your library. The MDB/MDE > >> > database will > have > >> > to be attached to your caller/main MDB before the functionality > >> > can > be > >> > accessed. (file/get external data/link...) Just like classes only > >> > public object, in the module can be accessed externally. Note; > >> > that none of the modules objects can be accessed until the module > >> > is formally called > >> > (Example: if your library module is initially called from a Form > >> > open event, you will receive an error but the Form's load event > >> > works > fine.) > >> > and from then on all the functions /subroutines /variables will > >> > be exposed because the whole module is then automatically loaded > >> > into memory. > >> > > >> > HTH > >> > Jim > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan > >> > Waters > >> > Sent: Sunday, December 12, 2004 1:27 PM > >> > To: Database Advisors > >> > Subject: [AccessD] Library Database? > >> > > >> > > >> > I would like to create a separate file (library?) to contain many > >> > procedures and functions which are used by all my customers. > >> > > >> > > >> > > >> > However, most of these either read or write information to the BE > >> > using recordsets. I tried to set up a library database (.mda), > >> > but this errored out when I tried to dim a recordset variable. > >> > The .mda file appears to not recognized the DAO prefix. > >> > > >> > > >> > > >> > dim rst as DAO.Recordset > >> > > >> > > >> > > >> > Is there a way to create a database file to contain procedures > >> > and functions, called from the FE mdb, that can be used > >> > read/write to tables in the BE mdb? > >> > > >> > > >> > > >> > Thanks! > >> > > >> > Dan Waters > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Tue Dec 14 13:36:36 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 14 Dec 2004 14:36:36 -0500 Subject: [AccessD] OT - VBA Required / Already installed -Office/Developer 2000 In-Reply-To: <41BB2DD4.9179.15DB017@localhost> Message-ID: I need to add a little to the story. I created a Deployment Package on the Desktop (computer with the msado21 problem). When prompted what files to include in the package I de-selected msado21.tlb. This time it installed completely. However, it is on the old laptop so I can't test whether the app is working. I currently have no computers without Access for testing. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Saturday, December 11, 2004 5:27 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT - VBA Required / Already installed -Office/Developer 2000 On 10 Dec 2004 at 14:14, Reuben Cummings wrote: > I have tried to repair Office and Developer (both 2000). The problem > occurs when I insert the Developer CD. I get a messgae stating that > Developer requires VBA 6.0 and that I must install Office or something > else that contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. Ignore my last e-mail. I found the KB article; http://support.microsoft.com/?KBID=322632 Here is the resolution: To resolve the issue, locate the ACMBoot.exe file on the root directory of the Microsoft Office 2000 Developer CD, and then run it. You can install Office 2000 Developer successfully when you start Setup in this manner. -- Bryan Carbonnell - carbonnb at sympatico.ca I don't suffer from stress. I am a carrier. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Dec 15 08:39:16 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 15 Dec 2004 15:39:16 +0100 Subject: [AccessD] Testing (slow list or no list) Message-ID: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> Just checking. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Wed Dec 15 09:49:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 15 Dec 2004 10:49:17 -0500 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> Message-ID: <000301c4e2bd$a28a1070$e8dafea9@ColbyM6805> I'm here. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 15, 2004 9:39 AM To: Dba Subject: [AccessD] Testing (slow list or no list) Just checking. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Wed Dec 15 10:06:25 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 15 Dec 2004 11:06:25 -0500 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> References: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> Message-ID: On Wed, 15 Dec 2004 15:39:16 +0100, Andy Lacey wrote: > Just checking. Just answering. Just quiet today. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From andy at minstersystems.co.uk Wed Dec 15 09:09:52 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 15 Dec 2004 16:09:52 +0100 Subject: [AccessD] Testing (slow list or no list) Message-ID: <20041215160948.E9D51260744@smtp.nildram.co.uk> Just slow then. Nice to know you're out there JC :-) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) Date: 15/12/04 15:57 > > I'm here. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 15, 2004 9:39 AM > To: Dba > Subject: [AccessD] Testing (slow list or no list) > > > Just checking. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From john at winhaven.net Wed Dec 15 10:11:21 2004 From: john at winhaven.net (John Bartow) Date: Wed, 15 Dec 2004 10:11:21 -0600 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <000301c4e2bd$a28a1070$e8dafea9@ColbyM6805> Message-ID: ditto -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, December 15, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) I'm here. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 15, 2004 9:39 AM To: Dba Subject: [AccessD] Testing (slow list or no list) Just checking. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Wed Dec 15 10:34:44 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 15 Dec 2004 11:34:44 -0500 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> Message-ID: <000101c4e2c3$fdbd53c0$0b08a845@hargrove.internal> I'm here too. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From jmhla at earthlink.net Wed Dec 15 10:37:28 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 08:37:28 -0800 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <20041215160948.E9D51260744@smtp.nildram.co.uk> Message-ID: <200412151637.iBFGbRl05204@databaseadvisors.com> Los Angeles Checking in to say Good Morning Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 15, 2004 7:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Testing (slow list or no list) Just slow then. Nice to know you're out there JC :-) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) Date: 15/12/04 15:57 > > I'm here. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 15, 2004 9:39 AM > To: Dba > Subject: [AccessD] Testing (slow list or no list) > > > Just checking. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 15 11:19:45 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 09:19:45 -0800 Subject: [AccessD] Need a fast answer 9:17 Pacific time Message-ID: <200412151719.iBFHJhl11522@databaseadvisors.com> I have an xp mdb. I have all options available in the start up menu. When I try to open the same MDB in A2k3 I cant get the full menus to open like AXP. I need to relink to the back end at client using terminal services. All thoughts appreciated. Joe Hecht jmhla at earthlink.net 28g From cfoust at infostatsystems.com Wed Dec 15 11:55:04 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 09:55:04 -0800 Subject: [AccessD] Testing (slow list or no list) Message-ID: Not me. I'm never all here. Charlotte Foust From jmhla at earthlink.net Wed Dec 15 12:05:02 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 10:05:02 -0800 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: Message-ID: <200412151805.iBFI51l22864@databaseadvisors.com> You are never all here because you are there Joe Hecht jmhla at earthlink.net 28g Not me. I'm never all here. Charlotte Foust -- From jmhla at earthlink.net Wed Dec 15 12:05:31 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 10:05:31 -0800 Subject: [AccessD] Need a fast answer 9:17 Pacific time In-Reply-To: <200412151719.iBFHJhl11522@databaseadvisors.com> Message-ID: <200412151805.iBFI5Sl23854@databaseadvisors.com> OK, It is a there machine, NOT a my program bit. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 15, 2004 9:20 AM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Need a fast answer 9:17 Pacific time I have an xp mdb. I have all options available in the start up menu. When I try to open the same MDB in A2k3 I cant get the full menus to open like AXP. I need to relink to the back end at client using terminal services. All thoughts appreciated. Joe Hecht jmhla at earthlink.net 28g -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Wed Dec 15 12:21:42 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 15 Dec 2004 12:21:42 -0600 Subject: [AccessD] Testing (slow list or no list) Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723372CA@corp-es01.fleetpride.com> Does this make you the Ghost of Access Past? Jim Hale -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, December 15, 2004 11:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Testing (slow list or no list) Not me. I'm never all here. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From dejpolsys at hotmail.com Wed Dec 15 12:28:55 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 15 Dec 2004 13:28:55 -0500 Subject: [AccessD] Testing (slow list or no list) References: <000301c4e2bd$a28a1070$e8dafea9@ColbyM6805> Message-ID: ..Joy To The World! William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 15, 2004 10:49 AM Subject: RE: [AccessD] Testing (slow list or no list) > I'm here. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 15, 2004 9:39 AM > To: Dba > Subject: [AccessD] Testing (slow list or no list) > > > Just checking. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From fhtapia at gmail.com Wed Dec 15 12:40:27 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 10:40:27 -0800 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: So I have the following code in a public module.. the purpose is to have more than one instance of the form where end users can start "multiple calls" and then keep starting newer calls. the following code works really well and in fact I can do what I need with it, except passing openargs... I figure I can use a workaround unless someone here knows of a better way? thanks, ---CODE SNIP------------ Option Compare Database Option Explicit 'Author: Allen J Browne, January 2000 'Email: abrowne at odyssey.apana.org.au Public clnClient As New Collection 'Instances of frmClient. Function OpenAClient() 'Purpose: Open an independent instance of form frmClient. Dim frm As Form 'Open a new instance, show it, and set a caption. Set frm = New Form_frmClient frm.Visible = True frm.Caption = frm.Hwnd & ", opened " & Now() 'Append it to our collection. clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) Set frm = Nothing End Function Function CloseAllClients() 'Purpose: Close all instances in the clnClient collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = clnClient.Count For lngI = 1 To lngKt clnClient.Remove 1 Next End Function ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From jwcolby at colbyconsulting.com Wed Dec 15 12:40:02 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 15 Dec 2004 13:40:02 -0500 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: Message-ID: <000c01c4e2d5$7d102ce0$e8dafea9@ColbyM6805> LOL. I am, therefore the list exists (and William is allowed to post to it). ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, December 15, 2004 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Testing (slow list or no list) ..Joy To The World! William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 15, 2004 10:49 AM Subject: RE: [AccessD] Testing (slow list or no list) > I'm here. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 15, 2004 9:39 AM > To: Dba > Subject: [AccessD] Testing (slow list or no list) > > > Just checking. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Dec 15 12:51:50 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 15 Dec 2004 13:51:50 -0500 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: Message-ID: <000d01c4e2d7$22e31550$e8dafea9@ColbyM6805> There are many workarounds. What kind of open args do you need passed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 1:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] Multi-Instance Forms re-visited So I have the following code in a public module.. the purpose is to have more than one instance of the form where end users can start "multiple calls" and then keep starting newer calls. the following code works really well and in fact I can do what I need with it, except passing openargs... I figure I can use a workaround unless someone here knows of a better way? thanks, ---CODE SNIP------------ Option Compare Database Option Explicit 'Author: Allen J Browne, January 2000 'Email: abrowne at odyssey.apana.org.au Public clnClient As New Collection 'Instances of frmClient. Function OpenAClient() 'Purpose: Open an independent instance of form frmClient. Dim frm As Form 'Open a new instance, show it, and set a caption. Set frm = New Form_frmClient frm.Visible = True frm.Caption = frm.Hwnd & ", opened " & Now() 'Append it to our collection. clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) Set frm = Nothing End Function Function CloseAllClients() 'Purpose: Close all instances in the clnClient collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = clnClient.Count For lngI = 1 To lngKt clnClient.Remove 1 Next End Function ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 15 12:57:01 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 10:57:01 -0800 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: You could give your form a public property to hold the equivalent of OpenArgs and then set it in the code after you instantiated the new form instance. Try reading it in the Load event of the form. Or set the form's filter property if you need to. Charlotte Foust -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Wednesday, December 15, 2004 10:40 AM To: Access Developers discussion and problem solving Subject: [AccessD] Multi-Instance Forms re-visited So I have the following code in a public module.. the purpose is to have more than one instance of the form where end users can start "multiple calls" and then keep starting newer calls. the following code works really well and in fact I can do what I need with it, except passing openargs... I figure I can use a workaround unless someone here knows of a better way? thanks, ---CODE SNIP------------ Option Compare Database Option Explicit 'Author: Allen J Browne, January 2000 'Email: abrowne at odyssey.apana.org.au Public clnClient As New Collection 'Instances of frmClient. Function OpenAClient() 'Purpose: Open an independent instance of form frmClient. Dim frm As Form 'Open a new instance, show it, and set a caption. Set frm = New Form_frmClient frm.Visible = True frm.Caption = frm.Hwnd & ", opened " & Now() 'Append it to our collection. clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) Set frm = Nothing End Function Function CloseAllClients() 'Purpose: Close all instances in the clnClient collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = clnClient.Count For lngI = 1 To lngKt clnClient.Remove 1 Next End Function ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 15 12:57:42 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 10:57:42 -0800 Subject: [AccessD] Testing (slow list or no list) Message-ID: LOL Yep! Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Wednesday, December 15, 2004 10:22 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) Does this make you the Ghost of Access Past? Jim Hale -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, December 15, 2004 11:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Testing (slow list or no list) Not me. I'm never all here. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Wed Dec 15 12:58:44 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 10:58:44 -0800 Subject: [AccessD] Testing (slow list or no list) Message-ID: Hmmn. I think I was just insulted ... Or not. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 15, 2004 10:05 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) You are never all here because you are there Joe Hecht jmhla at earthlink.net 28g Not me. I'm never all here. Charlotte Foust -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Dec 15 13:18:03 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 15 Dec 2004 11:18:03 -0800 Subject: [AccessD] Need a fast answer 9:17 Pacific time References: <200412151719.iBFHJhl11522@databaseadvisors.com> Message-ID: <41C08DEB.2010201@shaw.ca> Right click on empty space on toolbar; the one with file edit view etc Then select customize, in the tabs that popup, there are two reset methods for menus under toolbars and options I don't know which ones you need or if it will work. Joe Hecht wrote: >I have an xp mdb. I have all options available in the start up menu. > > > >When I try to open the same MDB in A2k3 I cant get the full menus to open >like AXP. I need to relink to the back end at client using terminal >services. > > > >All thoughts appreciated. > > > > > > > >Joe Hecht > >jmhla at earthlink.net > >28g > > > > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Wed Dec 15 13:39:20 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 11:39:20 -0800 Subject: [AccessD] network VS VPN VS Terminal Services Message-ID: <200412151939.iBFJdJl17898@databaseadvisors.com> I just learned that that the client I am sub contracting for uses VPN and Terminal services to connect to my database. I already have it split. One user has the front end on her local machine and connects VPN to the server. The other user at a different location connects to the front end on the server with terminal services. Are there any considerations to VPN and Terminal services different from regular network design I should be concerned about in finishing and deploying the MDB? Joe Hecht jmhla at earthlink.net 28g From Jdemarco at hudsonhealthplan.org Wed Dec 15 14:40:05 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 15 Dec 2004 15:40:05 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2945@TTNEXCHCL2.hshhp.com> Francisco, What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. First a class to hold the data you're trying to use: 'MyClass Public Property Let Form(frm as Access.Form)... Public Property Let hWnd(hWnd as String)... Public Property Let OpenArgs(Args As String)... dim m_col as Collection 'MyCollectionClass Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) dim x as MyClass Sex x = new MyClass x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs m_col.add(x,hWnd) End Sub Function Item(index As Variant) As MyClass Set Item = m_col.Item(index) End Function Now you've got access in your collection to all the info you need for your form. To store the values Dim MyCol as MyCollectionClass MyCol.Add(frm, frm.Hwnd, "value1;value2)) To retrieve them: Dim MyStringArg As String MyStringArg = MyCol.Item(frm.hwnd).OpenArgs 'do something with MyStringArg It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 1:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] Multi-Instance Forms re-visited So I have the following code in a public module.. the purpose is to have more than one instance of the form where end users can start "multiple calls" and then keep starting newer calls. the following code works really well and in fact I can do what I need with it, except passing openargs... I figure I can use a workaround unless someone here knows of a better way? thanks, ---CODE SNIP------------ Option Compare Database Option Explicit 'Author: Allen J Browne, January 2000 'Email: abrowne at odyssey.apana.org.au Public clnClient As New Collection 'Instances of frmClient. Function OpenAClient() 'Purpose: Open an independent instance of form frmClient. Dim frm As Form 'Open a new instance, show it, and set a caption. Set frm = New Form_frmClient frm.Visible = True frm.Caption = frm.Hwnd & ", opened " & Now() 'Append it to our collection. clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) Set frm = Nothing End Function Function CloseAllClients() 'Purpose: Close all instances in the clnClient collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = clnClient.Count For lngI = 1 To lngKt clnClient.Remove 1 Next End Function ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From rjhjr at cox.net Wed Dec 15 14:45:26 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 15 Dec 2004 15:45:26 -0500 Subject: [AccessD] test Message-ID: <20041215204526.GA55943@kongemord.krig.net> Testing a maildrop script. Went to the website, but didn't see a test list. From fhtapia at gmail.com Wed Dec 15 15:02:57 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 13:02:57 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2945@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2945@TTNEXCHCL2.hshhp.com> Message-ID: Jim that sounds great (re: more code :D), I was wondering on this line: m_col.add(x,hWnd) access complains about an '=' so I re-wrote it as m_col.add x, hWnd On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco wrote: > Francisco, > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > First a class to hold the data you're trying to use: > > 'MyClass > > Public Property Let Form(frm as Access.Form)... > Public Property Let hWnd(hWnd as String)... > Public Property Let OpenArgs(Args As String)... > > > > dim m_col as Collection > > 'MyCollectionClass > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > dim x as MyClass > Sex x = new MyClass > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > m_col.add(x,hWnd) > End Sub > > Function Item(index As Variant) As MyClass > Set Item = m_col.Item(index) > End Function > > > Now you've got access in your collection to all the info you need for your form. > To store the values > > Dim MyCol as MyCollectionClass > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > To retrieve them: > > Dim MyStringArg As String > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > 'do something with MyStringArg > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > HTH, > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 1:40 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Multi-Instance Forms re-visited > > So I have the following code in a public module.. > > the purpose is to have more than one instance of the form where end > users can start "multiple calls" and then keep starting newer calls. > > the following code works really well and in fact I can do what I need > with it, except passing openargs... I figure I can use a workaround > unless someone here knows of a better way? > > thanks, > > ---CODE SNIP------------ > Option Compare Database > Option Explicit > 'Author: Allen J Browne, January 2000 > 'Email: abrowne at odyssey.apana.org.au > > Public clnClient As New Collection 'Instances of frmClient. > > Function OpenAClient() > 'Purpose: Open an independent instance of form frmClient. > Dim frm As Form > > 'Open a new instance, show it, and set a caption. > Set frm = New Form_frmClient > frm.Visible = True > frm.Caption = frm.Hwnd & ", opened " & Now() > > 'Append it to our collection. > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > Set frm = Nothing > End Function > > Function CloseAllClients() > 'Purpose: Close all instances in the clnClient collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = clnClient.Count > For lngI = 1 To lngKt > clnClient.Remove 1 > Next > End Function > ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From Jdemarco at hudsonhealthplan.org Wed Dec 15 15:09:15 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 15 Dec 2004 16:09:15 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2948@TTNEXCHCL2.hshhp.com> Makes sense. I was typing from (lack of) memory!! Hope it works out. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 4:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited Jim that sounds great (re: more code :D), I was wondering on this line: m_col.add(x,hWnd) access complains about an '=' so I re-wrote it as m_col.add x, hWnd On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco wrote: > Francisco, > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > First a class to hold the data you're trying to use: > > 'MyClass > > Public Property Let Form(frm as Access.Form)... > Public Property Let hWnd(hWnd as String)... > Public Property Let OpenArgs(Args As String)... > > > > dim m_col as Collection > > 'MyCollectionClass > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > dim x as MyClass > Sex x = new MyClass > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > m_col.add(x,hWnd) > End Sub > > Function Item(index As Variant) As MyClass > Set Item = m_col.Item(index) > End Function > > > Now you've got access in your collection to all the info you need for your form. > To store the values > > Dim MyCol as MyCollectionClass > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > To retrieve them: > > Dim MyStringArg As String > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > 'do something with MyStringArg > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > HTH, > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 1:40 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Multi-Instance Forms re-visited > > So I have the following code in a public module.. > > the purpose is to have more than one instance of the form where end > users can start "multiple calls" and then keep starting newer calls. > > the following code works really well and in fact I can do what I need > with it, except passing openargs... I figure I can use a workaround > unless someone here knows of a better way? > > thanks, > > ---CODE SNIP------------ > Option Compare Database > Option Explicit > 'Author: Allen J Browne, January 2000 > 'Email: abrowne at odyssey.apana.org.au > > Public clnClient As New Collection 'Instances of frmClient. > > Function OpenAClient() > 'Purpose: Open an independent instance of form frmClient. > Dim frm As Form > > 'Open a new instance, show it, and set a caption. > Set frm = New Form_frmClient > frm.Visible = True > frm.Caption = frm.Hwnd & ", opened " & Now() > > 'Append it to our collection. > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > Set frm = Nothing > End Function > > Function CloseAllClients() > 'Purpose: Close all instances in the clnClient collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = clnClient.Count > For lngI = 1 To lngKt > clnClient.Remove 1 > Next > End Function > ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From john at winhaven.net Wed Dec 15 15:47:22 2004 From: john at winhaven.net (John Bartow) Date: Wed, 15 Dec 2004 15:47:22 -0600 Subject: [AccessD] test In-Reply-To: <20041215204526.GA55943@kongemord.krig.net> Message-ID: That would be OT :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bob Hall Sent: Wednesday, December 15, 2004 2:45 PM To: accessd at databaseadvisors.com Subject: [AccessD] test Testing a maildrop script. Went to the website, but didn't see a test list. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rjhjr at cox.net Wed Dec 15 16:07:49 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 15 Dec 2004 17:07:49 -0500 Subject: [AccessD] test In-Reply-To: References: <20041215204526.GA55943@kongemord.krig.net> Message-ID: <20041215220749.GA56406@kongemord.krig.net> On Wed, Dec 15, 2004 at 03:47:22PM -0600, John Bartow wrote: > That would be OT :o) <:-P~~ <- dunce cap, drooling. From dejpolsys at hotmail.com Wed Dec 15 16:23:57 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 15 Dec 2004 17:23:57 -0500 Subject: [AccessD] test References: <20041215204526.GA55943@kongemord.krig.net> <20041215220749.GA56406@kongemord.krig.net> Message-ID: "<:-P~~ <- dunce cap, drooling." Bob ..my, my, my ...you'll fit right in on OT! :)))))) William Hindman ----- Original Message ----- From: "Bob Hall" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 15, 2004 5:07 PM Subject: Re: [AccessD] test > On Wed, Dec 15, 2004 at 03:47:22PM -0600, John Bartow wrote: >> That would be OT :o) > > <:-P~~ <- dunce cap, drooling. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rjhjr at cox.net Wed Dec 15 16:35:42 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 15 Dec 2004 17:35:42 -0500 Subject: [AccessD] test In-Reply-To: References: <20041215220749.GA56406@kongemord.krig.net> Message-ID: <20041215223542.GA56495@kongemord.krig.net> On Wed, Dec 15, 2004 at 05:23:57PM -0500, William Hindman wrote: > "<:-P~~ <- dunce cap, drooling." Bob > > ..my, my, my ...you'll fit right in on OT! :)))))) Outermost Twilight? Orangatang Territory? From fhtapia at gmail.com Wed Dec 15 16:47:12 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 14:47:12 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2948@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2948@TTNEXCHCL2.hshhp.com> Message-ID: This code works for displaying "one" form... but it does not give me a tolorance to opening a 2nd Form... :(, the original code worked fine for many forms... Ideas? it could be the way that I'm calling it, (such as Dim MultiForms As clsMultiInstance If MultiForms Is Nothing Then Set MultiForms = New clsMultiInstance End If MultiForms.Add frm, frm.hWnd, OpenArgs ------------------------------ VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsMultiInstance" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database 'Multi Instance Multiple Forms Dim mForms As Collection Private colForm As Access.Form Private colhWnd As String Private colOpenArgs As String Public Property Let Form(frm As Access.Form) Set colForm = frm End Property Public Property Get Form() As Access.Form Set Form = colForm End Property Public Property Let hWnd(hWnd As String) colhWnd = hWnd End Property Public Property Get strhWnd() As String hWnd = colhWnd End Property Public Property Let OpenArgs(Args As String) colOpenArgs = Args End Property Public Property Get OpenArgs() As String OpenArgs = colOpenArgs End Property Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional Key As Variant) Dim x As clsMultiInstance Set x = New clsMultiInstance x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs x.Form.Visible = True 'On a 2nd call it errors out from here... ----> mForms.Add Item:=x, Key:=CStr(hWnd) End Sub Sub Remove(hWnd As String) 'Purpose: Remove this instance from the collection. Dim obj As Object 'Object in Collection Dim blnRemove As Boolean 'Flag to remove it. 'Check if this instance is in the collection. ' (It won't be if form was opened directly, or code was reset.) For Each obj In mForms If obj.hWnd = hWnd Then blnRemove = True Exit For End If Next 'Deassign the object before removing from collection. Set obj = Nothing If blnRemove Then mForms.Remove CStr(hWnd) End If End Sub Function Count() As Integer mForms.Count End Function Function Item(index As Variant) As clsMultiInstance Set Item = mForms.Item(index) End Function Public Function Term() 'Purpose: Close all instances in the collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = mForms.Count For lngI = 1 To lngKt mForms.Remove 1 Next Set mForms = Nothing End Function Private Sub Class_Initialize() Set mForms = New Collection End Sub ---------------END CLASS---------- On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco wrote: > Makes sense. I was typing from (lack of) memory!! > > Hope it works out. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 4:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Jim that sounds great (re: more code :D), > > I was wondering on this line: > > m_col.add(x,hWnd) > > access complains about an '=' > so I re-wrote it as m_col.add x, hWnd > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > wrote: > > Francisco, > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > First a class to hold the data you're trying to use: > > > > 'MyClass > > > > Public Property Let Form(frm as Access.Form)... > > Public Property Let hWnd(hWnd as String)... > > Public Property Let OpenArgs(Args As String)... > > > > > > > > dim m_col as Collection > > > > 'MyCollectionClass > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > dim x as MyClass > > Sex x = new MyClass > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > m_col.add(x,hWnd) > > End Sub > > > > Function Item(index As Variant) As MyClass > > Set Item = m_col.Item(index) > > End Function > > > > > > Now you've got access in your collection to all the info you need for your form. > > To store the values > > > > Dim MyCol as MyCollectionClass > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > To retrieve them: > > > > Dim MyStringArg As String > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > 'do something with MyStringArg > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > HTH, > > > > Jim DeMarco > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 1:40 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > So I have the following code in a public module.. > > > > the purpose is to have more than one instance of the form where end > > users can start "multiple calls" and then keep starting newer calls. > > > > the following code works really well and in fact I can do what I need > > with it, except passing openargs... I figure I can use a workaround > > unless someone here knows of a better way? > > > > thanks, > > > > ---CODE SNIP------------ > > Option Compare Database > > Option Explicit > > 'Author: Allen J Browne, January 2000 > > 'Email: abrowne at odyssey.apana.org.au > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > Function OpenAClient() > > 'Purpose: Open an independent instance of form frmClient. > > Dim frm As Form > > > > 'Open a new instance, show it, and set a caption. > > Set frm = New Form_frmClient > > frm.Visible = True > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > 'Append it to our collection. > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > Set frm = Nothing > > End Function > > > > Function CloseAllClients() > > 'Purpose: Close all instances in the clnClient collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = clnClient.Count > > For lngI = 1 To lngKt > > clnClient.Remove 1 > > Next > > End Function > > ---END CODE SNIP----------------- > -- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From garykjos at gmail.com Wed Dec 15 16:48:43 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 15 Dec 2004 16:48:43 -0600 Subject: [AccessD] test In-Reply-To: <20041215223542.GA56495@kongemord.krig.net> References: <20041215220749.GA56406@kongemord.krig.net> <20041215223542.GA56495@kongemord.krig.net> Message-ID: Technically it means Off Topic. But it could mean Other Topics as we really HAVE NO SET TOPICS and anything goes over there. Come on in and have a look. We are a chatty bunch over there sometimes. On Wed, 15 Dec 2004 17:35:42 -0500, Bob Hall wrote: > On Wed, Dec 15, 2004 at 05:23:57PM -0500, William Hindman wrote: > > "<:-P~~ <- dunce cap, drooling." Bob > > > > ..my, my, my ...you'll fit right in on OT! :)))))) > > Outermost Twilight? Orangatang Territory? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From michael.mattys at adelphia.net Wed Dec 15 16:56:32 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Wed, 15 Dec 2004 17:56:32 -0500 Subject: [AccessD] Multi-Instance Forms re-visited References: <08F823FD83787D4BA0B99CA580AD3C749D2948@TTNEXCHCL2.hshhp.com> Message-ID: <025901c4e2f9$52fd1bb0$6401a8c0@default> Francisco, You definately should provide hWnd as a long and also should declare colForm as WithEvents. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "Francisco Tapia" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 15, 2004 5:47 PM Subject: Re: [AccessD] Multi-Instance Forms re-visited > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) > Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > dim x as MyClass > > > Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > To store the values > > > > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where end > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > the following code works really well and in fact I can do what I need > > > with it, except passing openargs... I figure I can use a workaround > > > unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 15 17:02:42 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 15:02:42 -0800 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: You could try setting Attribute VB_Creatable = True. Charlotte Foust -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Wednesday, December 15, 2004 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited This code works for displaying "one" form... but it does not give me a tolorance to opening a 2nd Form... :(, the original code worked fine for many forms... Ideas? it could be the way that I'm calling it, (such as Dim MultiForms As clsMultiInstance If MultiForms Is Nothing Then Set MultiForms = New clsMultiInstance End If MultiForms.Add frm, frm.hWnd, OpenArgs ------------------------------ VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsMultiInstance" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database 'Multi Instance Multiple Forms Dim mForms As Collection Private colForm As Access.Form Private colhWnd As String Private colOpenArgs As String Public Property Let Form(frm As Access.Form) Set colForm = frm End Property Public Property Get Form() As Access.Form Set Form = colForm End Property Public Property Let hWnd(hWnd As String) colhWnd = hWnd End Property Public Property Get strhWnd() As String hWnd = colhWnd End Property Public Property Let OpenArgs(Args As String) colOpenArgs = Args End Property Public Property Get OpenArgs() As String OpenArgs = colOpenArgs End Property Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional Key As Variant) Dim x As clsMultiInstance Set x = New clsMultiInstance x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs x.Form.Visible = True 'On a 2nd call it errors out from here... ----> mForms.Add Item:=x, Key:=CStr(hWnd) End Sub Sub Remove(hWnd As String) 'Purpose: Remove this instance from the collection. Dim obj As Object 'Object in Collection Dim blnRemove As Boolean 'Flag to remove it. 'Check if this instance is in the collection. ' (It won't be if form was opened directly, or code was reset.) For Each obj In mForms If obj.hWnd = hWnd Then blnRemove = True Exit For End If Next 'Deassign the object before removing from collection. Set obj = Nothing If blnRemove Then mForms.Remove CStr(hWnd) End If End Sub Function Count() As Integer mForms.Count End Function Function Item(index As Variant) As clsMultiInstance Set Item = mForms.Item(index) End Function Public Function Term() 'Purpose: Close all instances in the collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = mForms.Count For lngI = 1 To lngKt mForms.Remove 1 Next Set mForms = Nothing End Function Private Sub Class_Initialize() Set mForms = New Collection End Sub ---------------END CLASS---------- On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco wrote: > Makes sense. I was typing from (lack of) memory!! > > Hope it works out. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 4:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Jim that sounds great (re: more code :D), > > I was wondering on this line: > > m_col.add(x,hWnd) > > access complains about an '=' > so I re-wrote it as m_col.add x, hWnd > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > wrote: > > Francisco, > > > > What about writing the value you want to use as openargs to an xml > > file and reading it in after the form is open? > > > > Or instead of a standard collection use a custom collection class > > that is similar to the one you have here but it would hold the form > > refernce, the form's hwind, and the openarg value. > > > > First a class to hold the data you're trying to use: > > > > 'MyClass > > > > Public Property Let Form(frm as Access.Form)... > > Public Property Let hWnd(hWnd as String)... > > Public Property Let OpenArgs(Args As String)... > > > > > > dim m_col as Collection > > > > 'MyCollectionClass > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > m_col.add(x,hWnd) > > End Sub > > > > Function Item(index As Variant) As MyClass > > Set Item = m_col.Item(index) > > End Function > > > > > > Now you've got access in your collection to all the info you need > > for your form. To store the values > > Dim MyCol as MyCollectionClass > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > To retrieve them: > > > > Dim MyStringArg As String > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > 'do something with MyStringArg > > > > > > > > It's really not as complicated as it might look. If you need more > > info or my complete custom collection class stub (VB) let me know. > > > > HTH, > > > > Jim DeMarco > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 1:40 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > So I have the following code in a public module.. > > > > the purpose is to have more than one instance of the form where end > > users can start "multiple calls" and then keep starting newer calls. > > > > the following code works really well and in fact I can do what I > > need with it, except passing openargs... I figure I can use a > > workaround unless someone here knows of a better way? > > > > thanks, > > > > ---CODE SNIP------------ > > Option Compare Database > > Option Explicit > > 'Author: Allen J Browne, January 2000 > > 'Email: abrowne at odyssey.apana.org.au > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > Function OpenAClient() > > 'Purpose: Open an independent instance of form frmClient. > > Dim frm As Form > > > > 'Open a new instance, show it, and set a caption. > > Set frm = New Form_frmClient > > frm.Visible = True > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > 'Append it to our collection. > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > Set frm = Nothing > > End Function > > > > Function CloseAllClients() > > 'Purpose: Close all instances in the clnClient collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = clnClient.Count > > For lngI = 1 To lngKt > > clnClient.Remove 1 > > Next > > End Function > > ---END CODE SNIP----------------- > -- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Wed Dec 15 17:34:01 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 15:34:01 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: References: Message-ID: can't change the VB_Creatable setting in Access... the 2 choices given is Private and PublicNotCreatable... :( On Wed, 15 Dec 2004 15:02:42 -0800, Charlotte Foust wrote: > You could try setting Attribute VB_Creatable = True. > > Charlotte Foust > > > -----Original Message----- > From: Francisco Tapia [mailto:fhtapia at gmail.com] > Sent: Wednesday, December 15, 2004 2:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine for > many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional > Key As Variant) Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml > > > file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class > > > that is similar to the one you have here but it would hold the form > > > refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need > > > for your form. To store the values > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more > > > info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where end > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > the following code works really well and in fact I can do what I > > > need with it, except passing openargs... I figure I can use a > > > workaround unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From d.dick at uws.edu.au Wed Dec 15 17:42:38 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 10:42:38 +1100 Subject: [AccessD] A2003: Calling all Back End Updater Legends Message-ID: <200412152342.iBFNgoRl009991@cooper.uws.edu.au> Hi Guys Can't get the BEU to work I even had a very happy user at my place trying to show me how to get it to work (Hi Deano) - no joy - It works fine on his db's though Clearly I have omitted some step or not done something right So.can I start a dialogue offlist with a BEU guru please?? Many thanks Darren From cfoust at infostatsystems.com Wed Dec 15 17:47:02 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 15:47:02 -0800 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: As far as I know, you've never been able to change it in Access. Export the module to text, edit the text and then bring the file back in. Charlotte Foust -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Wednesday, December 15, 2004 3:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited can't change the VB_Creatable setting in Access... the 2 choices given is Private and PublicNotCreatable... :( On Wed, 15 Dec 2004 15:02:42 -0800, Charlotte Foust wrote: > You could try setting Attribute VB_Creatable = True. > > Charlotte Foust > > > -----Original Message----- > From: Francisco Tapia [mailto:fhtapia at gmail.com] > Sent: Wednesday, December 15, 2004 2:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml > > > file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class > > > that is similar to the one you have here but it would hold the > > > form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need > > > for your form. To store the values Dim MyCol as > > > MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more > > > info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > Francisco Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where > > > end users can start "multiple calls" and then keep starting newer > > > calls. > > > > > > the following code works really well and in fact I can do what I > > > need with it, except passing openargs... I figure I can use a > > > workaround unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Wed Dec 15 17:58:20 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 15:58:20 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: References: Message-ID: I tried this but it reverted it back to Private... On Wed, 15 Dec 2004 15:47:02 -0800, Charlotte Foust wrote: > As far as I know, you've never been able to change it in Access. Export > the module to text, edit the text and then bring the file back in. > > Charlotte Foust > > -----Original Message----- > From: Francisco Tapia [mailto:fhtapia at gmail.com] > Sent: Wednesday, December 15, 2004 3:34 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > can't change the VB_Creatable setting in Access... the 2 choices given > is Private and PublicNotCreatable... :( > > On Wed, 15 Dec 2004 15:02:42 -0800, Charlotte Foust > wrote: > > You could try setting Attribute VB_Creatable = True. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: Francisco Tapia [mailto:fhtapia at gmail.com] > > Sent: Wednesday, December 15, 2004 2:47 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > This code works for displaying "one" form... but it does not give me a > > > tolorance to opening a 2nd Form... :(, the original code worked fine > > for many forms... Ideas? > > > > it could be the way that I'm calling it, (such as > > > > Dim MultiForms As clsMultiInstance > > > > If MultiForms Is Nothing Then > > Set MultiForms = New clsMultiInstance > > End If > > MultiForms.Add frm, frm.hWnd, OpenArgs > > > > ------------------------------ > > VERSION 1.0 CLASS > > BEGIN > > MultiUse = -1 'True > > END > > Attribute VB_Name = "clsMultiInstance" > > Attribute VB_GlobalNameSpace = False > > Attribute VB_Creatable = False > > Attribute VB_PredeclaredId = False > > Attribute VB_Exposed = False > > Option Compare Database > > 'Multi Instance Multiple Forms > > > > Dim mForms As Collection > > Private colForm As Access.Form > > Private colhWnd As String > > Private colOpenArgs As String > > Public Property Let Form(frm As Access.Form) > > Set colForm = frm > > End Property > > Public Property Get Form() As Access.Form > > Set Form = colForm > > End Property > > Public Property Let hWnd(hWnd As String) > > colhWnd = hWnd > > End Property > > Public Property Get strhWnd() As String > > hWnd = colhWnd > > End Property > > Public Property Let OpenArgs(Args As String) > > colOpenArgs = Args > > End Property > > Public Property Get OpenArgs() As String > > OpenArgs = colOpenArgs > > End Property > > > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > > Optional Key As Variant) Dim x As clsMultiInstance > > Set x = New clsMultiInstance > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > x.Form.Visible = True > > > > 'On a 2nd call it errors out from here... > > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > > > End Sub > > Sub Remove(hWnd As String) > > 'Purpose: Remove this instance from the collection. > > Dim obj As Object 'Object in Collection > > Dim blnRemove As Boolean 'Flag to remove it. > > > > 'Check if this instance is in the collection. > > ' (It won't be if form was opened directly, or code was reset.) > > For Each obj In mForms > > If obj.hWnd = hWnd Then > > blnRemove = True > > Exit For > > End If > > Next > > 'Deassign the object before removing from collection. > > Set obj = Nothing > > If blnRemove Then > > mForms.Remove CStr(hWnd) > > End If > > End Sub > > Function Count() As Integer > > mForms.Count > > End Function > > Function Item(index As Variant) As clsMultiInstance > > Set Item = mForms.Item(index) > > End Function > > Public Function Term() > > 'Purpose: Close all instances in the collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = mForms.Count > > For lngI = 1 To lngKt > > mForms.Remove 1 > > Next > > Set mForms = Nothing > > End Function > > > > Private Sub Class_Initialize() > > Set mForms = New Collection > > End Sub > > > > ---------------END CLASS---------- > > > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > > wrote: > > > Makes sense. I was typing from (lack of) memory!! > > > > > > Hope it works out. > > > > > > Jim > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 4:03 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > > > Jim that sounds great (re: more code :D), > > > > > > I was wondering on this line: > > > > > > m_col.add(x,hWnd) > > > > > > access complains about an '=' > > > so I re-wrote it as m_col.add x, hWnd > > > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > > wrote: > > > > Francisco, > > > > > > > > What about writing the value you want to use as openargs to an xml > > > > > file and reading it in after the form is open? > > > > > > > > Or instead of a standard collection use a custom collection class > > > > that is similar to the one you have here but it would hold the > > > > form refernce, the form's hwind, and the openarg value. > > > > > > > > First a class to hold the data you're trying to use: > > > > > > > > 'MyClass > > > > > > > > Public Property Let Form(frm as Access.Form)... > > > > Public Property Let hWnd(hWnd as String)... > > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > dim m_col as Collection > > > > > > > > 'MyCollectionClass > > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > > > x.Form = frm > > > > x.hWnd = hWnd > > > > x.OpenArgs = OpenArgs > > > > m_col.add(x,hWnd) > > > > End Sub > > > > > > > > Function Item(index As Variant) As MyClass > > > > Set Item = m_col.Item(index) > > > > End Function > > > > > > > > > > > > Now you've got access in your collection to all the info you need > > > > for your form. To store the values Dim MyCol as > > > > MyCollectionClass > > > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > > > > To retrieve them: > > > > > > > > Dim MyStringArg As String > > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > > 'do something with MyStringArg > > > > > > > > > > > > > > > > It's really not as complicated as it might look. If you need more > > > > info or my complete custom collection class stub (VB) let me know. > > > > > > > > HTH, > > > > > > > > Jim DeMarco > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > > Francisco Tapia > > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > > To: Access Developers discussion and problem solving > > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > > > So I have the following code in a public module.. > > > > > > > > the purpose is to have more than one instance of the form where > > > > end users can start "multiple calls" and then keep starting newer > > > > calls. > > > > > > > > the following code works really well and in fact I can do what I > > > > need with it, except passing openargs... I figure I can use a > > > > workaround unless someone here knows of a better way? > > > > > > > > thanks, > > > > > > > > ---CODE SNIP------------ > > > > Option Compare Database > > > > Option Explicit > > > > 'Author: Allen J Browne, January 2000 > > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > > > Function OpenAClient() > > > > 'Purpose: Open an independent instance of form frmClient. > > > > Dim frm As Form > > > > > > > > 'Open a new instance, show it, and set a caption. > > > > Set frm = New Form_frmClient > > > > frm.Visible = True > > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > > > 'Append it to our collection. > > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > > Set frm = Nothing > > > > End Function > > > > > > > > Function CloseAllClients() > > > > 'Purpose: Close all instances in the clnClient collection. > > > > 'Note: Leaves the copy opened directly from database window. > > > > Dim lngKt As Long > > > > Dim lngI As Long > > > > > > > > lngKt = clnClient.Count > > > > For lngI = 1 To lngKt > > > > clnClient.Remove 1 > > > > Next > > > > End Function > > > > ---END CODE SNIP----------------- > > > -- > > -- > > -Francisco > > http://pcthis.blogspot.com | PC news with out the jargon! > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From KIsmert at TexasSystems.com Wed Dec 15 17:58:27 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 15 Dec 2004 17:58:27 -0600 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: Message-ID: <006c01c4e301$f8c9be60$2a3ca8c0@TEXASSYSTEMS.COM> Francisco, One caution: in A2K Help, under "hWnd Property", it says: >> Caution: Because the value of this property can change while a program is running, don't store the hWnd property value in a public variable. So, it is probably not a good idea to key your form collection with hWnd, as it could potentially change over the life of the form. Better to generate your own unique index within clsMultiInstance, and pass that to the form via a property. Upon reading your code, I noticed three issues: (1) >Public Property Let Form(frm As Access.Form) Object properties should use 'Property Set'. (2) > Sub Add(frm As Access.Form, hWnd As String, > . . . > x.Form = frm Should read: Set x.Form = frm (3) The easiest way to get your form collection to persist is to declare a public variable: Public MultiForms As New clsMultiInstance The Public scope will keep the MultiForms reference, and the forms it manages, alive until the user exits (or the Interpreter gets reset). The New keyword guarantees that MultiForms will auto-initialize on first reference. Although others in this forum may not prefer this approach, I have used it for years, with no discernable downside. The upside is you can use the MultiForms reference directly when adding a new form, without having to put calls to a setup routine throughout your code. -Ken >From: Francisco Tapia [mailto:fhtapia at gmail.com] >Sent: Wednesday, December 15, 2004 4:47 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Multi-Instance Forms re-visited >This code works for displaying "one" form... but it does not give >me a tolorance to opening a 2nd Form... :(, the original code >worked fine for many forms... Ideas? From d.dick at uws.edu.au Wed Dec 15 18:35:48 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 11:35:48 +1100 Subject: [AccessD] A2003: MYOB Message-ID: <200412160036.iBG0a0Rl029320@cooper.uws.edu.au> Hi Guys Anyone had any success in 'speaking' to or interacting with MYOB business and accounting software?? Many thanks Darren From stuart at lexacorp.com.pg Wed Dec 15 19:27:53 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Dec 2004 11:27:53 +1000 Subject: [AccessD] A2003: MYOB In-Reply-To: <200412160036.iBG0a0Rl029320@cooper.uws.edu.au> Message-ID: <41C17139.12102.2E4E891B@lexacorp.com.pg> On 16 Dec 2004 at 11:35, Darren DICK wrote: > Hi Guys > Anyone had any success in 'speaking' to or interacting with MYOB business > and accounting software?? > Only thing I've done with it is Extract data to text files and then build import routines to drag them into Access for analysis. If you can build f I've given up on trying to keep up with MYOB since they introduced their idiotic periodic re-activation scheme. (I just stick with MYOB 10) but apparently the latest versions have OBDC support (at least Read). See http://www.myob.com.au/about_myob/developer_datafile.shtml -- Stuart From KIsmert at TexasSystems.com Wed Dec 15 19:37:59 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 15 Dec 2004 19:37:59 -0600 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <025901c4e2f9$52fd1bb0$6401a8c0@default> Message-ID: <006d01c4e30f$e09dd070$2a3ca8c0@TEXASSYSTEMS.COM> Francisco, >You definately should provide hWnd as a long >and also should declare colForm as WithEvents. > >Michael R. Mattys To expand on what Micheal said about WithEvents, you will need some way to remove the colForm object reference you have stored in your MultiForms collection when the form closes. As you know a form created using the Set colForm = New Form_FormModule syntax will live as long as the colForm reference is in scope. This means that when the user closes that form, it will never be truly closed until colForm is set to Nothing. So, the easiest way to shutdown properly is to trap the Form_Close event: Private WithEvents colForm As Access.Form ' This assumes that MultiForms is your ' public clsMultiInstance instance, and ' that colhWnd is your key to the ' Form collection Private Sub colFrm_Close() MultiForms.Remove colhWnd End Sub -Ken From carbonnb at sympatico.ca Wed Dec 15 19:40:06 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 15 Dec 2004 20:40:06 -0500 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: <200412152342.iBFNgoRl009991@cooper.uws.edu.au> Message-ID: <41C0A126.24253.73E0B9@localhost> On 16 Dec 2004 at 10:42, Darren DICK wrote: > Hi Guys > Can't get the BEU to work > I even had a very happy user at my place trying to show me how to get > it to work (Hi Deano) - no joy - It works fine on his db's though > > Clearly I have omitted some step or not done something right > > So.can I start a dialogue offlist with a BEU guru please?? I'm not a BEU guru. I can just break it in so many weird and wonderful ways :)) What is the problem? -- Bryan Carbonnell - carbonnb at sympatico.ca On the keyboard of life, always keep one finger on the escape key. From jwcolby at colbyconsulting.com Wed Dec 15 19:46:01 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 15 Dec 2004 20:46:01 -0500 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: Message-ID: <002201c4e311$03a487c0$e8dafea9@ColbyM6805> Need help? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 5:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited This code works for displaying "one" form... but it does not give me a tolorance to opening a 2nd Form... :(, the original code worked fine for many forms... Ideas? it could be the way that I'm calling it, (such as Dim MultiForms As clsMultiInstance If MultiForms Is Nothing Then Set MultiForms = New clsMultiInstance End If MultiForms.Add frm, frm.hWnd, OpenArgs ------------------------------ VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsMultiInstance" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database 'Multi Instance Multiple Forms Dim mForms As Collection Private colForm As Access.Form Private colhWnd As String Private colOpenArgs As String Public Property Let Form(frm As Access.Form) Set colForm = frm End Property Public Property Get Form() As Access.Form Set Form = colForm End Property Public Property Let hWnd(hWnd As String) colhWnd = hWnd End Property Public Property Get strhWnd() As String hWnd = colhWnd End Property Public Property Let OpenArgs(Args As String) colOpenArgs = Args End Property Public Property Get OpenArgs() As String OpenArgs = colOpenArgs End Property Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional Key As Variant) Dim x As clsMultiInstance Set x = New clsMultiInstance x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs x.Form.Visible = True 'On a 2nd call it errors out from here... ----> mForms.Add Item:=x, Key:=CStr(hWnd) End Sub Sub Remove(hWnd As String) 'Purpose: Remove this instance from the collection. Dim obj As Object 'Object in Collection Dim blnRemove As Boolean 'Flag to remove it. 'Check if this instance is in the collection. ' (It won't be if form was opened directly, or code was reset.) For Each obj In mForms If obj.hWnd = hWnd Then blnRemove = True Exit For End If Next 'Deassign the object before removing from collection. Set obj = Nothing If blnRemove Then mForms.Remove CStr(hWnd) End If End Sub Function Count() As Integer mForms.Count End Function Function Item(index As Variant) As clsMultiInstance Set Item = mForms.Item(index) End Function Public Function Term() 'Purpose: Close all instances in the collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = mForms.Count For lngI = 1 To lngKt mForms.Remove 1 Next Set mForms = Nothing End Function Private Sub Class_Initialize() Set mForms = New Collection End Sub ---------------END CLASS---------- On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco wrote: > Makes sense. I was typing from (lack of) memory!! > > Hope it works out. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 4:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Jim that sounds great (re: more code :D), > > I was wondering on this line: > > m_col.add(x,hWnd) > > access complains about an '=' > so I re-wrote it as m_col.add x, hWnd > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > wrote: > > Francisco, > > > > What about writing the value you want to use as openargs to an xml > > file and reading it in after the form is open? > > > > Or instead of a standard collection use a custom collection class > > that is similar to the one you have here but it would hold the form > > refernce, the form's hwind, and the openarg value. > > > > First a class to hold the data you're trying to use: > > > > 'MyClass > > > > Public Property Let Form(frm as Access.Form)... > > Public Property Let hWnd(hWnd as String)... > > Public Property Let OpenArgs(Args As String)... > > > > > > dim m_col as Collection > > > > 'MyCollectionClass > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > m_col.add(x,hWnd) > > End Sub > > > > Function Item(index As Variant) As MyClass > > Set Item = m_col.Item(index) > > End Function > > > > > > Now you've got access in your collection to all the info you need > > for your form. To store the values > > Dim MyCol as MyCollectionClass > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > To retrieve them: > > > > Dim MyStringArg As String > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > 'do something with MyStringArg > > > > > > > > It's really not as complicated as it might look. If you need more > > info or my complete custom collection class stub (VB) let me know. > > > > HTH, > > > > Jim DeMarco > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 1:40 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > So I have the following code in a public module.. > > > > the purpose is to have more than one instance of the form where end > > users can start "multiple calls" and then keep starting newer calls. > > > > the following code works really well and in fact I can do what I > > need with it, except passing openargs... I figure I can use a > > workaround unless someone here knows of a better way? > > > > thanks, > > > > ---CODE SNIP------------ > > Option Compare Database > > Option Explicit > > 'Author: Allen J Browne, January 2000 > > 'Email: abrowne at odyssey.apana.org.au > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > Function OpenAClient() > > 'Purpose: Open an independent instance of form frmClient. > > Dim frm As Form > > > > 'Open a new instance, show it, and set a caption. > > Set frm = New Form_frmClient > > frm.Visible = True > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > 'Append it to our collection. > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > Set frm = Nothing > > End Function > > > > Function CloseAllClients() > > 'Purpose: Close all instances in the clnClient collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = clnClient.Count > > For lngI = 1 To lngKt > > clnClient.Remove 1 > > Next > > End Function > > ---END CODE SNIP----------------- > -- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Wed Dec 15 20:38:02 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 15 Dec 2004 21:38:02 -0500 Subject: [AccessD] A2003: Calling all Back End Updater Legends References: <200412152342.iBFNgoRl009991@cooper.uws.edu.au> Message-ID: ..why not keep it on list ...others (including myself) may learn something from your mistakes :) William Hindman ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 15, 2004 6:42 PM Subject: [AccessD] A2003: Calling all Back End Updater Legends > Hi Guys > Can't get the BEU to work > I even had a very happy user at my place trying to show me how to get it > to > work > (Hi Deano) - no joy - It works fine on his db's though > > Clearly I have omitted some step or not done something right > > So.can I start a dialogue offlist with a BEU guru please?? > > Many thanks > > Darren > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Wed Dec 15 20:46:22 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 15 Dec 2004 21:46:22 -0500 Subject: [AccessD] A2003: MYOB References: <41C17139.12102.2E4E891B@lexacorp.com.pg> Message-ID: ..a side note ...MS just put out a beta of their new Small Business Accounting which looks like they're seriously going after the QB market ..pretty nice integration with Outlook/Office 2003 ...I'm going to give it a spin ...others might want to get in on the beta. William Hindman ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, December 15, 2004 8:27 PM Subject: Re: [AccessD] A2003: MYOB > On 16 Dec 2004 at 11:35, Darren DICK wrote: > >> Hi Guys >> Anyone had any success in 'speaking' to or interacting with MYOB business >> and accounting software?? >> > > Only thing I've done with it is Extract data to text files and then build > import routines to drag them into Access for analysis. If you can build f > > I've given up on trying to keep up with MYOB since they introduced their > idiotic periodic re-activation scheme. (I just stick with MYOB 10) but > apparently the latest versions have OBDC support (at least Read). See > http://www.myob.com.au/about_myob/developer_datafile.shtml > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jeff at OUTBAKTech.com Wed Dec 15 22:18:19 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 15 Dec 2004 22:18:19 -0600 Subject: [AccessD] A2003: MYOB Message-ID: <8DA8776D2F418E46A2A464AC6CE6305012E913@outbaksrv1.outbaktech.com> How do we get in on the Beta test? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com -----Original Message----- From: William Hindman [mailto:dejpolsys at hotmail.com] Sent: Wednesday, December 15, 2004 8:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: MYOB ..a side note ...MS just put out a beta of their new Small Business Accounting which looks like they're seriously going after the QB market ..pretty nice integration with Outlook/Office 2003 ...I'm going to give it a spin ...others might want to get in on the beta. William Hindman ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, December 15, 2004 8:27 PM Subject: Re: [AccessD] A2003: MYOB > On 16 Dec 2004 at 11:35, Darren DICK wrote: > >> Hi Guys >> Anyone had any success in 'speaking' to or interacting with MYOB business >> and accounting software?? >> > > Only thing I've done with it is Extract data to text files and then build > import routines to drag them into Access for analysis. If you can build f > > I've given up on trying to keep up with MYOB since they introduced their > idiotic periodic re-activation scheme. (I just stick with MYOB 10) but > apparently the latest versions have OBDC support (at least Read). See > http://www.myob.com.au/about_myob/developer_datafile.shtml > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Wed Dec 15 22:43:28 2004 From: pcs at azizaz.com (Borge Hansen) Date: Thu, 16 Dec 2004 14:43:28 +1000 Subject: [AccessD] A2003: MYOB References: <8DA8776D2F418E46A2A464AC6CE6305012E913@outbaksrv1.outbaktech.com> Message-ID: <047501c4e329$c975a070$fa10a8c0@Albatross> Go to : http://www.microsoft.com/office/editions/prodinfo/smallbusiness/accounting/beta.mspx Borge ----- Original Message ----- From: "Jeff Barrows" To: "Access Developers discussion and problem solving" Sent: Thursday, December 16, 2004 2:18 PM Subject: RE: [AccessD] A2003: MYOB > How do we get in on the Beta test? > > Jeff Barrows > MCP, MCAD, MCSD > > Outbak Technologies, LLC > Racine, WI > jeff at outbaktech.com > -----Original Message----- > From: William Hindman [mailto:dejpolsys at hotmail.com] > Sent: Wednesday, December 15, 2004 8:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003: MYOB > > ..a side note ...MS just put out a beta of their new Small Business > Accounting which looks like they're seriously going after the QB market > ..pretty nice integration with Outlook/Office 2003 ...I'm going to give > it > a spin ...others might want to get in on the beta. > > William Hindman > > > ----- Original Message ----- > From: "Stuart McLachlan" > To: "Access Developers discussion and problemsolving" > > Sent: Wednesday, December 15, 2004 8:27 PM > Subject: Re: [AccessD] A2003: MYOB > > > > On 16 Dec 2004 at 11:35, Darren DICK wrote: > > > >> Hi Guys > >> Anyone had any success in 'speaking' to or interacting with MYOB > business > >> and accounting software?? > >> > > > > Only thing I've done with it is Extract data to text files and then > build > > import routines to drag them into Access for analysis. If you can > build f > > > > I've given up on trying to keep up with MYOB since they introduced > their > > idiotic periodic re-activation scheme. (I just stick with MYOB 10) but > > apparently the latest versions have OBDC support (at least Read). See > > http://www.myob.com.au/about_myob/developer_datafile.shtml > > > > > > > > -- > > Stuart > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 24/11/2004 From andy at minstersystems.co.uk Thu Dec 16 01:39:49 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 16 Dec 2004 07:39:49 -0000 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: Message-ID: <000f01c4e342$6c44a040$b274d0d5@minster33c3r25> On or off-list fire away Darren. Describe where you've got to and what's happening. And were you a good boy and downloaded the manual and followed it? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > William Hindman > Sent: 16 December 2004 02:38 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > > ..why not keep it on list ...others (including myself) may > learn something > from your mistakes :) > > William Hindman > > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Wednesday, December 15, 2004 6:42 PM > Subject: [AccessD] A2003: Calling all Back End Updater Legends > > > > Hi Guys > > Can't get the BEU to work > > I even had a very happy user at my place trying to show me > how to get > > it > > to > > work > > (Hi Deano) - no joy - It works fine on his db's though > > > > Clearly I have omitted some step or not done something right > > > > So.can I start a dialogue offlist with a BEU guru please?? > > > > Many thanks > > > > Darren > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Paul.Rogers at SummitMedia.co.uk Thu Dec 16 02:34:21 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 16 Dec 2004 08:34:21 -0000 Subject: [AccessD] A2003: MYOB Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F439@s003.wolds.summitmedia.co.uk> I did with an early version. It lost all my files and consequentially landed me in a lot of trouble. (Foolishly, I hadn't remembered to back-up first.) I didn't ever discover the fault - I never used it again. But I'm sure recent versions are very different. All the best, Darren. paul -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: 16 December 2004 00:36 To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: MYOB Hi Guys Anyone had any success in 'speaking' to or interacting with MYOB business and accounting software?? Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 06:05:05 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 23:05:05 +1100 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: <000f01c4e342$6c44a040$b274d0d5@minster33c3r25> Message-ID: Hi Guys OK - I have no problem keeping it on list I imported all the objects from the BEU I downloaded from DBA Cool In the BEU main screen I started a 'new version'. Just wanted to add a new field called XX to a table called tblTitles Added the stuff to make it a Number field no decimal places etc etc Then clicked on Accept So now I have pending BE Updates - cool I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the Autoexec Macro Close and reload the dB and I expected to see the form frmDBAupgrading flash up and perform the mod So I went to tblTitles - no new field called XX I went to the table tblDBAModifyDatabaseMods there is an entry in there I went to the table tblDBAModifyDatabase there is an entry in there too But the mods don't actually take place I had a fellow lister at my place the other day and he was raving how good the BEU was and showed me how to use it on one of his dB's. No prob it all went well So I imported all the necessary bits and bobs and he couldn't get it to work on my dB. We even imported HIS BEU objects from one of his dB's and we ran it but still no joy So... Where to from here?? many many thanks in advance Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, 16 December 2004 6:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends On or off-list fire away Darren. Describe where you've got to and what's happening. And were you a good boy and downloaded the manual and followed it? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > William Hindman > Sent: 16 December 2004 02:38 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > > ..why not keep it on list ...others (including myself) may > learn something > from your mistakes :) > > William Hindman > > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Wednesday, December 15, 2004 6:42 PM > Subject: [AccessD] A2003: Calling all Back End Updater Legends > > > > Hi Guys > > Can't get the BEU to work > > I even had a very happy user at my place trying to show me > how to get > > it > > to > > work > > (Hi Deano) - no joy - It works fine on his db's though > > > > Clearly I have omitted some step or not done something right > > > > So.can I start a dialogue offlist with a BEU guru please?? > > > > Many thanks > > > > Darren > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 06:05:12 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 23:05:12 +1100 Subject: [AccessD] A2003: MYOB In-Reply-To: <41C17139.12102.2E4E891B@lexacorp.com.pg> Message-ID: Hmmmm - not looking good -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, 16 December 2004 12:28 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: MYOB On 16 Dec 2004 at 11:35, Darren DICK wrote: > Hi Guys > Anyone had any success in 'speaking' to or interacting with MYOB business > and accounting software?? > Only thing I've done with it is Extract data to text files and then build import routines to drag them into Access for analysis. If you can build f I've given up on trying to keep up with MYOB since they introduced their idiotic periodic re-activation scheme. (I just stick with MYOB 10) but apparently the latest versions have OBDC support (at least Read). See http://www.myob.com.au/about_myob/developer_datafile.shtml -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 06:27:38 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 23:27:38 +1100 Subject: [AccessD] Can someone email me a copy of file vba332.dll please? Message-ID: Email it to d.dick at uws.edu.au Many Many thanks From Chris.Foote at uk.thalesgroup.com Thu Dec 16 06:37:45 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 16 Dec 2004 12:37:45 -0000 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C511@ntscxch1.int.rdel.co.uk> Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From d.dick at uws.edu.au Thu Dec 16 07:12:54 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 00:12:54 +1100 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C511@ntscxch1.int.rdel.co.uk> Message-ID: Hi Chris Can you change the extension from dll to cf for eg? many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris Sent: Thursday, 16 December 2004 11:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From conny at qad.se Thu Dec 16 07:20:20 2004 From: conny at qad.se (Conny Johansson) Date: Thu, 16 Dec 2004 14:20:20 +0100 Subject: SV: [AccessD] Can someone email me a copy of file vba332.dll please? In-Reply-To: Message-ID: <20041216132018.A1DD038015@smtp1-2-sn3.vrr.skanova.net> On its way in zip-format Conny Johansson -----Ursprungligt meddelande----- Fr?n: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] F?r Darren DICK Skickat: den 16 december 2004 13:28 Till: AccessD List ?mne: [AccessD] Can someone email me a copy of file vba332.dll please? Email it to d.dick at uws.edu.au Many Many thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Outbound message clean. Virus Database (VPS): 0451-1, 2004-12-14 Tested on: 2004-12-16 14:20:20 avast! is copyright (c) 2000-2003 ALWIL Software. From andy at minstersystems.co.uk Thu Dec 16 06:22:45 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 16 Dec 2004 13:22:45 +0100 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? Message-ID: <20041216132243.50C3D2746F1@smtp.nildram.co.uk> On its way. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Date: 16/12/04 13:17 > > Hi Chris > Can you change the extension from dll to cf for eg? > many thanks > DD > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris > Sent: Thursday, 16 December 2004 11:38 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll > plea se? > > > Sorry Darren! > > I tried to send it to you but our firewall stopped it getting out. > > Chris Foote > (Expecting a 'phone call from IT Dept. any moment now ;-( > > > > > -----Original Message----- > > From: Darren DICK [mailto:d.dick at uws.edu.au] > > Sent: Thursday, December 16, 2004 12:28 PM > > To: AccessD List > > Subject: [AccessD] Can someone email me a copy of file vba332.dll > > please? > > > > > > Email it to d.dick at uws.edu.au > > > > Many Many thanks > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From cyx5 at cdc.gov Thu Dec 16 07:25:15 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 16 Dec 2004 08:25:15 -0500 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? Message-ID: http://www.dll-files.com/dllindex/dll-files.shtml?vba332 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 8:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Hi Chris Can you change the extension from dll to cf for eg? many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris Sent: Thursday, 16 December 2004 11:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu Dec 16 07:29:01 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 16 Dec 2004 08:29:01 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D294C@TTNEXCHCL2.hshhp.com> I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: Function Exists(strKey As String) As Boolean 'returns true if the key value (not index) exists in the collection Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object On Error GoTo Exists_Err Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object Exists = True Exit_Function: Set objTemp = Nothing Exit Function Exists_Err: If Err.Number = 5 Then Exists = False Else 'further error handling here for other error types MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" End If Resume Exit_Function End Function Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 5:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited This code works for displaying "one" form... but it does not give me a tolorance to opening a 2nd Form... :(, the original code worked fine for many forms... Ideas? it could be the way that I'm calling it, (such as Dim MultiForms As clsMultiInstance If MultiForms Is Nothing Then Set MultiForms = New clsMultiInstance End If MultiForms.Add frm, frm.hWnd, OpenArgs ------------------------------ VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsMultiInstance" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database 'Multi Instance Multiple Forms Dim mForms As Collection Private colForm As Access.Form Private colhWnd As String Private colOpenArgs As String Public Property Let Form(frm As Access.Form) Set colForm = frm End Property Public Property Get Form() As Access.Form Set Form = colForm End Property Public Property Let hWnd(hWnd As String) colhWnd = hWnd End Property Public Property Get strhWnd() As String hWnd = colhWnd End Property Public Property Let OpenArgs(Args As String) colOpenArgs = Args End Property Public Property Get OpenArgs() As String OpenArgs = colOpenArgs End Property Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional Key As Variant) Dim x As clsMultiInstance Set x = New clsMultiInstance x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs x.Form.Visible = True 'On a 2nd call it errors out from here... ----> mForms.Add Item:=x, Key:=CStr(hWnd) End Sub Sub Remove(hWnd As String) 'Purpose: Remove this instance from the collection. Dim obj As Object 'Object in Collection Dim blnRemove As Boolean 'Flag to remove it. 'Check if this instance is in the collection. ' (It won't be if form was opened directly, or code was reset.) For Each obj In mForms If obj.hWnd = hWnd Then blnRemove = True Exit For End If Next 'Deassign the object before removing from collection. Set obj = Nothing If blnRemove Then mForms.Remove CStr(hWnd) End If End Sub Function Count() As Integer mForms.Count End Function Function Item(index As Variant) As clsMultiInstance Set Item = mForms.Item(index) End Function Public Function Term() 'Purpose: Close all instances in the collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = mForms.Count For lngI = 1 To lngKt mForms.Remove 1 Next Set mForms = Nothing End Function Private Sub Class_Initialize() Set mForms = New Collection End Sub ---------------END CLASS---------- On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco wrote: > Makes sense. I was typing from (lack of) memory!! > > Hope it works out. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 4:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Jim that sounds great (re: more code :D), > > I was wondering on this line: > > m_col.add(x,hWnd) > > access complains about an '=' > so I re-wrote it as m_col.add x, hWnd > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > wrote: > > Francisco, > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > First a class to hold the data you're trying to use: > > > > 'MyClass > > > > Public Property Let Form(frm as Access.Form)... > > Public Property Let hWnd(hWnd as String)... > > Public Property Let OpenArgs(Args As String)... > > > > > > > > dim m_col as Collection > > > > 'MyCollectionClass > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > dim x as MyClass > > Sex x = new MyClass > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > m_col.add(x,hWnd) > > End Sub > > > > Function Item(index As Variant) As MyClass > > Set Item = m_col.Item(index) > > End Function > > > > > > Now you've got access in your collection to all the info you need for your form. > > To store the values > > > > Dim MyCol as MyCollectionClass > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > To retrieve them: > > > > Dim MyStringArg As String > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > 'do something with MyStringArg > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > HTH, > > > > Jim DeMarco > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 1:40 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > So I have the following code in a public module.. > > > > the purpose is to have more than one instance of the form where end > > users can start "multiple calls" and then keep starting newer calls. > > > > the following code works really well and in fact I can do what I need > > with it, except passing openargs... I figure I can use a workaround > > unless someone here knows of a better way? > > > > thanks, > > > > ---CODE SNIP------------ > > Option Compare Database > > Option Explicit > > 'Author: Allen J Browne, January 2000 > > 'Email: abrowne at odyssey.apana.org.au > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > Function OpenAClient() > > 'Purpose: Open an independent instance of form frmClient. > > Dim frm As Form > > > > 'Open a new instance, show it, and set a caption. > > Set frm = New Form_frmClient > > frm.Visible = True > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > 'Append it to our collection. > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > Set frm = Nothing > > End Function > > > > Function CloseAllClients() > > 'Purpose: Close all instances in the clnClient collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = clnClient.Count > > For lngI = 1 To lngKt > > clnClient.Remove 1 > > Next > > End Function > > ---END CODE SNIP----------------- > -- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From andy at minstersystems.co.uk Thu Dec 16 06:31:54 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 16 Dec 2004 13:31:54 +0100 Subject: [AccessD] A2003: Calling all Back End Updater Legends Message-ID: <20041216133152.5DD72250F4B@smtp.nildram.co.uk> Hi Dazzler, how ya doin? Have you got tblDBAVersion in your BE? If so, open it and see waht version it's set to. This needs to be less than the new version you're creating. If not the BEU thinks it is up-to-date. Don't know why it wouldn't be right, but have a look. Another thought. The BEU modules, forms etc need to be in an FE (can be in it sown FE like I do, or in with other stuff). The tables it then operates on should be in a linked BE. Is that how you have it? The tblDBAVersion should have been added to the BE. Another thing, BEU (at the mo) only works on a single BE MDB. It looks at the first linked table and takes its lead from that as to what MDB all of your tables are in. Any of that any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Date: 16/12/04 12:09 > > Hi Guys > OK - I have no problem keeping it on list > > I imported all the objects from the BEU I downloaded from DBA > > Cool > In the BEU main screen I started a 'new version'. > Just wanted to add a new field called XX to a table called tblTitles > Added the stuff to make it a Number field no decimal places etc etc > Then clicked on Accept > So now I have pending BE Updates - cool > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > Autoexec Macro > Close and reload the dB and I expected to see the form frmDBAupgrading > flash up and perform the mod > > So I went to tblTitles - no new field called XX > I went to the table tblDBAModifyDatabaseMods there is an entry in there > I went to the table tblDBAModifyDatabase there is an entry in there too > > But the mods don't actually take place > > I had a fellow lister at my place the other day and he was raving how good > the BEU was and > showed me how to use it on one of his dB's. No prob it all went well > > So I imported all the necessary bits and bobs and he couldn't get it to work > on > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > but > still no joy > > So... > > Where to from here?? > > many many thanks in advance > > Darren > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Thursday, 16 December 2004 6:40 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > On or off-list fire away Darren. Describe where you've got to and what's > happening. And were you a good boy and downloaded the manual and followed > it? > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > William Hindman > > Sent: 16 December 2004 02:38 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > ..why not keep it on list ...others (including myself) may > > learn something > > from your mistakes :) > > > > William Hindman > > > > > > ----- Original Message ----- > > From: "Darren DICK" <d.dick at uws.edu.au> > > To: "'Access Developers discussion and problem solving'" > > <accessd at databaseadvisors.com> > > Sent: Wednesday, December 15, 2004 6:42 PM > > Subject: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > > Hi Guys > > > Can't get the BEU to work > > > I even had a very happy user at my place trying to show me > > how to get > > > it > > > to > > > work > > > (Hi Deano) - no joy - It works fine on his db's though > > > > > > Clearly I have omitted some step or not done something right > > > > > > So.can I start a dialogue offlist with a BEU guru please?? > > > > > > Many thanks > > > > > > Darren > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From carbonnb at gmail.com Thu Dec 16 07:33:51 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 16 Dec 2004 08:33:51 -0500 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: References: <000f01c4e342$6c44a040$b274d0d5@minster33c3r25> Message-ID: On Thu, 16 Dec 2004 23:05:05 +1100, Darren DICK wrote: > I imported all the objects from the BEU I downloaded from DBA > > Cool > In the BEU main screen I started a 'new version'. > Just wanted to add a new field called XX to a table called tblTitles > Added the stuff to make it a Number field no decimal places etc etc > Then clicked on Accept > So now I have pending BE Updates - cool > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > Autoexec Macro > Close and reload the dB and I expected to see the form frmDBAupgrading > flash up and perform the mod > > So I went to tblTitles - no new field called XX > I went to the table tblDBAModifyDatabaseMods there is an entry in there > I went to the table tblDBAModifyDatabase there is an entry in there too > > But the mods don't actually take place > > I had a fellow lister at my place the other day and he was raving how good > the BEU was and > showed me how to use it on one of his dB's. No prob it all went well > > So I imported all the necessary bits and bobs and he couldn't get it to work > on > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > but > still no joy > > So... > > Where to from here?? I just tried this using A2K and it worked here, so here are a couple of things to look at/that spring to mind: 1) Does the autoexec macro actually fire? 2) Do you have a reference set to the DAU libraries? The BEU uses DAO. 3) Does the BEU fire with you manually run beudbaisdbuptodate from the VBEs immediate window? 4) In A2K the function name parameter for RunCode is beuDBAIsDBUpToDate () which is missing the = that you have. I've never used A2K3 and I don't have access to it, so I can't do any actual testing :( -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Dec 16 07:34:56 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 16 Dec 2004 08:34:56 -0500 Subject: [AccessD] Can someone email me a copy of file vba332.dll please? In-Reply-To: References: Message-ID: On Thu, 16 Dec 2004 23:27:38 +1100, Darren DICK wrote: > Email it to d.dick at uws.edu.au > > Many Many thanks Don't you need to worry about version numbers of this dll?? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From d.dick at uws.edu.au Thu Dec 16 08:04:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 01:04:31 +1100 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: <20041216133152.5DD72250F4B@smtp.nildram.co.uk> Message-ID: Hi Andy and Bryan Firstly Many thanks to all who emailed the VB dll - works well (it's a TriGeminal Kaplan and Kreft demo i'm playing with) WooHoo re the BEU it was the version table Changed the number in it to be 1 less than the current mod number an viola - away she goes Many thanks Bryan and Andy Hey Andy - See you when you emmigrate - the weather is awesome here as is the lifestyle :-)) Better than PeterBerg (sic) me thinks - The best reds for $8:50 you know :-)) Just got introduced to lawn bowls today - what a hoot - sank a few sherberts afterwards got sunburnt as well 100 degree days here - beautiful - plenty of swimming ahhhhh Any northrn hemisphgere bods coming to Sydney soon?? Feel free to drop me a line OK enough bragging - back to work (whip cracks above evil face) Thanks again to all who responded See y'all Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, 16 December 2004 11:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Hi Dazzler, how ya doin? Have you got tblDBAVersion in your BE? If so, open it and see waht version it's set to. This needs to be less than the new version you're creating. If not the BEU thinks it is up-to-date. Don't know why it wouldn't be right, but have a look. Another thought. The BEU modules, forms etc need to be in an FE (can be in it sown FE like I do, or in with other stuff). The tables it then operates on should be in a linked BE. Is that how you have it? The tblDBAVersion should have been added to the BE. Another thing, BEU (at the mo) only works on a single BE MDB. It looks at the first linked table and takes its lead from that as to what MDB all of your tables are in. Any of that any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Date: 16/12/04 12:09 > > Hi Guys > OK - I have no problem keeping it on list > > I imported all the objects from the BEU I downloaded from DBA > > Cool > In the BEU main screen I started a 'new version'. > Just wanted to add a new field called XX to a table called tblTitles > Added the stuff to make it a Number field no decimal places etc etc > Then clicked on Accept > So now I have pending BE Updates - cool > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > Autoexec Macro > Close and reload the dB and I expected to see the form frmDBAupgrading > flash up and perform the mod > > So I went to tblTitles - no new field called XX > I went to the table tblDBAModifyDatabaseMods there is an entry in there > I went to the table tblDBAModifyDatabase there is an entry in there too > > But the mods don't actually take place > > I had a fellow lister at my place the other day and he was raving how good > the BEU was and > showed me how to use it on one of his dB's. No prob it all went well > > So I imported all the necessary bits and bobs and he couldn't get it to work > on > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > but > still no joy > > So... > > Where to from here?? > > many many thanks in advance > > Darren > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Thursday, 16 December 2004 6:40 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > On or off-list fire away Darren. Describe where you've got to and what's > happening. And were you a good boy and downloaded the manual and followed > it? > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > William Hindman > > Sent: 16 December 2004 02:38 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > ..why not keep it on list ...others (including myself) may > > learn something > > from your mistakes :) > > > > William Hindman > > > > > > ----- Original Message ----- > > From: "Darren DICK" <d.dick at uws.edu.au> > > To: "'Access Developers discussion and problem solving'" > > <accessd at databaseadvisors.com> > > Sent: Wednesday, December 15, 2004 6:42 PM > > Subject: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > > Hi Guys > > > Can't get the BEU to work > > > I even had a very happy user at my place trying to show me > > how to get > > > it > > > to > > > work > > > (Hi Deano) - no joy - It works fine on his db's though > > > > > > Clearly I have omitted some step or not done something right > > > > > > So.can I start a dialogue offlist with a BEU guru please?? > > > > > > Many thanks > > > > > > Darren > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Thu Dec 16 08:07:02 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 16 Dec 2004 09:07:02 -0500 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: Message-ID: And did you make the necessary code additions to your relinking code? Can't remember the process, but this would also cause a problem. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, December 16, 2004 8:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends On Thu, 16 Dec 2004 23:05:05 +1100, Darren DICK wrote: > I imported all the objects from the BEU I downloaded from DBA > > Cool > In the BEU main screen I started a 'new version'. > Just wanted to add a new field called XX to a table called tblTitles > Added the stuff to make it a Number field no decimal places etc etc > Then clicked on Accept > So now I have pending BE Updates - cool > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > Autoexec Macro > Close and reload the dB and I expected to see the form frmDBAupgrading > flash up and perform the mod > > So I went to tblTitles - no new field called XX > I went to the table tblDBAModifyDatabaseMods there is an entry in there > I went to the table tblDBAModifyDatabase there is an entry in there too > > But the mods don't actually take place > > I had a fellow lister at my place the other day and he was raving how good > the BEU was and > showed me how to use it on one of his dB's. No prob it all went well > > So I imported all the necessary bits and bobs and he couldn't get it to work > on > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > but > still no joy > > So... > > Where to from here?? I just tried this using A2K and it worked here, so here are a couple of things to look at/that spring to mind: 1) Does the autoexec macro actually fire? 2) Do you have a reference set to the DAU libraries? The BEU uses DAO. 3) Does the BEU fire with you manually run beudbaisdbuptodate from the VBEs immediate window? 4) In A2K the function name parameter for RunCode is beuDBAIsDBUpToDate () which is missing the = that you have. I've never used A2K3 and I don't have access to it, so I can't do any actual testing :( -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 08:06:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 01:06:45 +1100 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? In-Reply-To: Message-ID: Thanks for the Link Karen The one I usually get 'sent' to wants payment See ya Thanks again DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Friday, 17 December 2004 12:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? http://www.dll-files.com/dllindex/dll-files.shtml?vba332 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 8:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Hi Chris Can you change the extension from dll to cf for eg? many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris Sent: Thursday, 16 December 2004 11:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 16 08:16:06 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 16 Dec 2004 09:16:06 -0500 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? Message-ID: I am cheap. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Thanks for the Link Karen The one I usually get 'sent' to wants payment See ya Thanks again DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Friday, 17 December 2004 12:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? http://www.dll-files.com/dllindex/dll-files.shtml?vba332 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 8:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Hi Chris Can you change the extension from dll to cf for eg? many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris Sent: Thursday, 16 December 2004 11:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Dec 16 07:19:34 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 16 Dec 2004 14:19:34 +0100 Subject: [AccessD] A2003: Calling all Back End Updater Legends Message-ID: <20041216141931.5CF7224E4DF@smtp.nildram.co.uk> :-) Lawn bowls? I'm surprised at you. Game for old men isn't it? Or do you play extreme bowls while bungee jumping? (dons hard hat and heads for shelter) -- Andy Lacey http://www.minstersystems.co.uk PS Sorry about the OT folks. It's the Brit v Aussie competitive thing. --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Date: 16/12/04 14:07 > > Hi Andy and Bryan > Firstly > Many thanks to all who emailed the VB dll - works well > (it's a TriGeminal Kaplan and Kreft demo i'm playing with) > > WooHoo re the BEU it was the version table > Changed the number in it to be 1 less than the current mod number an viola - > away she goes > > Many thanks Bryan and Andy > > Hey Andy - See you when you emmigrate - the weather is awesome here as is > the lifestyle :-)) > Better than PeterBerg (sic) me thinks - The best reds for $8:50 you know > :-)) > Just got introduced to lawn bowls today - what a hoot - sank a few sherberts > afterwards > got sunburnt as well 100 degree days here - beautiful - plenty of swimming > ahhhhh > > Any northrn hemisphgere bods coming to Sydney soon?? > Feel free to drop me a line > > OK enough bragging - back to work (whip cracks above evil face) > > Thanks again to all who responded > > See y'all > > Darren > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Thursday, 16 December 2004 11:32 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > Hi Dazzler, how ya doin? > > Have you got tblDBAVersion in your BE? If so, open it and see waht version > it's set to. This needs to be less than the new version you're creating. If > not the BEU thinks it is up-to-date. Don't know why it wouldn't be right, > but have a look. > > Another thought. The BEU modules, forms etc need to be in an FE (can be in > it sown FE like I do, or in with other stuff). The tables it then operates > on should be in a linked BE. Is that how you have it? The tblDBAVersion > should have been added to the BE. > > Another thing, BEU (at the mo) only works on a single BE MDB. It looks at > the first linked table and takes its lead from that as to what MDB all of > your tables are in. > > Any of that any use? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > Date: 16/12/04 12:09 > > > > > Hi Guys > > OK - I have no problem keeping it on list > > > > I imported all the objects from the BEU I downloaded from DBA > > > > Cool > > In the BEU main screen I started a 'new version'. > > Just wanted to add a new field called XX to a table called tblTitles > > Added the stuff to make it a Number field no decimal places etc etc > > Then clicked on Accept > > So now I have pending BE Updates - cool > > > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > > Autoexec Macro > > Close and reload the dB and I expected to see the form frmDBAupgrading > > flash up and perform the mod > > > > So I went to tblTitles - no new field called XX > > I went to the table tblDBAModifyDatabaseMods there is an entry in there > > I went to the table tblDBAModifyDatabase there is an entry in there too > > > > But the mods don't actually take place > > > > I had a fellow lister at my place the other day and he was raving how good > > the BEU was and > > showed me how to use it on one of his dB's. No prob it all went well > > > > So I imported all the necessary bits and bobs and he couldn't get it to > work > > on > > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > > but > > still no joy > > > > So... > > > > Where to from here?? > > > > many many thanks in advance > > > > Darren > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > > Sent: Thursday, 16 December 2004 6:40 PM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > On or off-list fire away Darren. Describe where you've got to and what's > > happening. And were you a good boy and downloaded the manual and followed > > it? > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > &gt; William Hindman > > &gt; Sent: 16 December 2004 02:38 > > &gt; To: Access Developers discussion and problem solving > > &gt; Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > &gt; > > &gt; > > &gt; ..why not keep it on list ...others (including myself) may > > &gt; learn something > > &gt; from your mistakes :) > > &gt; > > &gt; William Hindman > > &gt; > > &gt; > > &gt; ----- Original Message ----- > > &gt; From: &quot;Darren DICK&quot; &lt;d.dick at uws.edu.au&gt; > > &gt; To: &quot;'Access Developers discussion and problem solving'&quot; > > &gt; &lt;accessd at databaseadvisors.com&gt; > > &gt; Sent: Wednesday, December 15, 2004 6:42 PM > > &gt; Subject: [AccessD] A2003: Calling all Back End Updater Legends > > &gt; > > &gt; > > &gt; &gt; Hi Guys > > &gt; &gt; Can't get the BEU to work > > &gt; &gt; I even had a very happy user at my place trying to show me > > &gt; how to get > > &gt; &gt; it > > &gt; &gt; to > > &gt; &gt; work > > &gt; &gt; (Hi Deano) - no joy - It works fine on his db's though > > &gt; &gt; > > &gt; &gt; Clearly I have omitted some step or not done something right > > &gt; &gt; > > &gt; &gt; So.can I start a dialogue offlist with a BEU guru please?? > > &gt; &gt; > > &gt; &gt; Many thanks > > &gt; &gt; > > &gt; &gt; Darren > > &gt; &gt; > > &gt; &gt; > > &gt; &gt; -- > > &gt; &gt; AccessD mailing list > > &gt; &gt; AccessD at databaseadvisors.com > > &gt; &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; &gt; Website: http://www.databaseadvisors.com > > &gt; &gt; > > &gt; -- > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com > > &gt; > > &gt; > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From cyx5 at cdc.gov Thu Dec 16 08:19:42 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 16 Dec 2004 09:19:42 -0500 Subject: [AccessD] Import XLS File, Add a Field Not in Spreadsheet Message-ID: I am importing named ranges from Excel Spreadsheets into Access and all is well. What I want to do is add a field while doing the import, a status field. Right now I have seven named ranges, one for new, pending, existing, etc. I am putting each into its own table, then updating the status field to N, P, X, etc. Then I have to pump all these into a central table. It would be nice if I could just directly pump each spreadsheet into the final table instead of dancing around. Any ideas? Thanks. From d.dick at uws.edu.au Thu Dec 16 08:30:33 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 01:30:33 +1100 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: <20041216141931.5CF7224E4DF@smtp.nildram.co.uk> Message-ID: Hee Hee Shorts and bare feet - how else?? Even tried a few leg breaks (as in Cricket(the game not the bug)) The oldies were in the airconditioned comfort sipping sherbets I promise this is my last Southern Hemisphere (where the weather is beautiful) spray. By the way it's 1:30am here and I am sitting typing in nothing more than my speedos - but enough of that :-)) it's time for bed See y'all and many thanks to those who have replied tonight Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, 17 December 2004 12:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends :-) Lawn bowls? I'm surprised at you. Game for old men isn't it? Or do you play extreme bowls while bungee jumping? (dons hard hat and heads for shelter) -- Andy Lacey http://www.minstersystems.co.uk PS Sorry about the OT folks. It's the Brit v Aussie competitive thing. --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Date: 16/12/04 14:07 > > Hi Andy and Bryan > Firstly > Many thanks to all who emailed the VB dll - works well > (it's a TriGeminal Kaplan and Kreft demo i'm playing with) > > WooHoo re the BEU it was the version table > Changed the number in it to be 1 less than the current mod number an viola - > away she goes > > Many thanks Bryan and Andy > > Hey Andy - See you when you emmigrate - the weather is awesome here as is > the lifestyle :-)) > Better than PeterBerg (sic) me thinks - The best reds for $8:50 you know > :-)) > Just got introduced to lawn bowls today - what a hoot - sank a few sherberts > afterwards > got sunburnt as well 100 degree days here - beautiful - plenty of swimming > ahhhhh > > Any northrn hemisphgere bods coming to Sydney soon?? > Feel free to drop me a line > > OK enough bragging - back to work (whip cracks above evil face) > > Thanks again to all who responded > > See y'all > > Darren > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Thursday, 16 December 2004 11:32 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > Hi Dazzler, how ya doin? > > Have you got tblDBAVersion in your BE? If so, open it and see waht version > it's set to. This needs to be less than the new version you're creating. If > not the BEU thinks it is up-to-date. Don't know why it wouldn't be right, > but have a look. > > Another thought. The BEU modules, forms etc need to be in an FE (can be in > it sown FE like I do, or in with other stuff). The tables it then operates > on should be in a linked BE. Is that how you have it? The tblDBAVersion > should have been added to the BE. > > Another thing, BEU (at the mo) only works on a single BE MDB. It looks at > the first linked table and takes its lead from that as to what MDB all of > your tables are in. > > Any of that any use? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > Date: 16/12/04 12:09 > > > > > Hi Guys > > OK - I have no problem keeping it on list > > > > I imported all the objects from the BEU I downloaded from DBA > > > > Cool > > In the BEU main screen I started a 'new version'. > > Just wanted to add a new field called XX to a table called tblTitles > > Added the stuff to make it a Number field no decimal places etc etc > > Then clicked on Accept > > So now I have pending BE Updates - cool > > > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > > Autoexec Macro > > Close and reload the dB and I expected to see the form frmDBAupgrading > > flash up and perform the mod > > > > So I went to tblTitles - no new field called XX > > I went to the table tblDBAModifyDatabaseMods there is an entry in there > > I went to the table tblDBAModifyDatabase there is an entry in there too > > > > But the mods don't actually take place > > > > I had a fellow lister at my place the other day and he was raving how good > > the BEU was and > > showed me how to use it on one of his dB's. No prob it all went well > > > > So I imported all the necessary bits and bobs and he couldn't get it to > work > > on > > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > > but > > still no joy > > > > So... > > > > Where to from here?? > > > > many many thanks in advance > > > > Darren > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > > Sent: Thursday, 16 December 2004 6:40 PM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > On or off-list fire away Darren. Describe where you've got to and what's > > happening. And were you a good boy and downloaded the manual and followed > > it? > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > &gt; William Hindman > > &gt; Sent: 16 December 2004 02:38 > > &gt; To: Access Developers discussion and problem solving > > &gt; Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > &gt; > > &gt; > > &gt; ..why not keep it on list ...others (including myself) may > > &gt; learn something > > &gt; from your mistakes :) > > &gt; > > &gt; William Hindman > > &gt; > > &gt; > > &gt; ----- Original Message ----- > > &gt; From: &quot;Darren DICK&quot; &lt;d.dick at uws.edu.au&gt; > > &gt; To: &quot;'Access Developers discussion and problem solving'&quot; > > &gt; &lt;accessd at databaseadvisors.com&gt; > > &gt; Sent: Wednesday, December 15, 2004 6:42 PM > > &gt; Subject: [AccessD] A2003: Calling all Back End Updater Legends > > &gt; > > &gt; > > &gt; &gt; Hi Guys > > &gt; &gt; Can't get the BEU to work > > &gt; &gt; I even had a very happy user at my place trying to show me > > &gt; how to get > > &gt; &gt; it > > &gt; &gt; to > > &gt; &gt; work > > &gt; &gt; (Hi Deano) - no joy - It works fine on his db's though > > &gt; &gt; > > &gt; &gt; Clearly I have omitted some step or not done something right > > &gt; &gt; > > &gt; &gt; So.can I start a dialogue offlist with a BEU guru please?? > > &gt; &gt; > > &gt; &gt; Many thanks > > &gt; &gt; > > &gt; &gt; Darren > > &gt; &gt; > > &gt; &gt; > > &gt; &gt; -- > > &gt; &gt; AccessD mailing list > > &gt; &gt; AccessD at databaseadvisors.com > > &gt; &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; &gt; Website: http://www.databaseadvisors.com > > &gt; &gt; > > &gt; -- > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com > > &gt; > > &gt; > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Thu Dec 16 09:27:36 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 16 Dec 2004 09:27:36 -0600 Subject: [AccessD] Quickbooks to Access Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723372D1@corp-es01.fleetpride.com> Can anyone recommend an ODBC driver to link Quick book tables to Access? I have tried QODBC by Flexquarters.com. It works but is slooow. TIA Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From william.thompson1 at att.net Thu Dec 16 09:48:47 2004 From: william.thompson1 at att.net (William Thompson) Date: Thu, 16 Dec 2004 07:48:47 -0800 Subject: [AccessD] ADODB Set Me.Recordset = rs - keyset Question In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723372D1@corp-es01.fleetpride.com> Message-ID: <200412161548.iBGFmll28066@databaseadvisors.com> Can I change the recordset on-the-fly for a form in an Access project (.adp) using the method described in the kb http://support.microsoft.com/default.aspx?scid=kb;en-us;281998 ? And still be able to assign the rowset to list and combo boxes? It's my understanding that SQL Server will only supply one firehose connection per instance, so I presume that these assigned recordsets, even if assigned to a listbox, would need to be keyset cursors. I was wondering if I could re-use connections in a way where, instead of setting the recordset in the open property of the form, somehow requery the form with Dim cn As ADODB.Connection Dim rs As ADODB.Recordset 'Use the ADO connection that Access uses Set cn = CurrentProject.AccessConnection 'Create an instance of the ADO Recordset class, and 'set its properties Set rs = New ADODB.Recordset With rs Set .ActiveConnection = cn .Source = "SELECT * FROM Customers" .LockType = adLockOptimistic .CursorType = adOpenKeyset .Open End With 'Set the form's Recordset property to the ADO recordset Set Me.Recordset = rs Set rs = Nothing Set cn = Nothing Could I synchronize updateable subforms using the Mirror method in the ADH? Any comments, suggestions appreciated, Bill Thompson Washington State From Gustav at cactus.dk Thu Dec 16 12:42:37 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Dec 2004 19:42:37 +0100 Subject: [AccessD] Import XLS File, Add a Field Not in Spreadsheet Message-ID: Hi 65 You can link the Named Range into a query directly. Here is for a select query which you easily can modify for a create table or append query: SELECT *, 'X' AS Status FROM [SomeNamedRange] AS xlsRange IN '' [Excel 5.0;HDR=YES;IMEX=2;DATABASE=d:\path\yourworkbook.xls;]; Adjust HDR to NO if no headers. Append a $ sign to a worksheet name if not using a Named Range: FROM [SomeWorkSheet$] AS xlsSheet /gustav >>> cyx5 at cdc.gov 16-12-2004 15:19:42 >>> I am importing named ranges from Excel Spreadsheets into Access and all is well. What I want to do is add a field while doing the import, a status field. Right now I have seven named ranges, one for new, pending, existing, etc. I am putting each into its own table, then updating the status field to N, P, X, etc. Then I have to pump all these into a central table. It would be nice if I could just directly pump each spreadsheet into the final table instead of dancing around. From fhtapia at gmail.com Thu Dec 16 14:09:58 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 16 Dec 2004 12:09:58 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D294C@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D294C@TTNEXCHCL2.hshhp.com> Message-ID: Thanks for all the help you've been giving me... I split my class in to 2, the MultiForms class has the Form object along w/ the OpenArgs, this is where I'll add the On Close Event so it removes the form from the collection as well please explain the name for BaseClassName? since the i've split the classes I have clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) then the clsMultiInstance (which contains the collection) and I created a Public Variable on the module as well I thought the hWnd was diffrent on each call... maybenot? On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco wrote: > I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). > > Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. > > BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: > > Function Exists(strKey As String) As Boolean > 'returns true if the key value (not index) exists in the collection > Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object > > On Error GoTo Exists_Err > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > Exists = True > > Exit_Function: > Set objTemp = Nothing > Exit Function > > Exists_Err: > If Err.Number = 5 Then > Exists = False > Else > 'further error handling here for other error types > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > End If > Resume Exit_Function > End Function > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 5:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) > Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > dim x as MyClass > > > Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > To store the values > > > > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where end > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > the following code works really well and in fact I can do what I need > > > with it, except passing openargs... I figure I can use a workaround > > > unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From lists at theopg.com Thu Dec 16 14:20:36 2004 From: lists at theopg.com (MarkH) Date: Thu, 16 Dec 2004 20:20:36 -0000 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: Message-ID: <005301c4e3ac$b5104940$c639fc3e@netboxxp> The hwnd is different on each call... I have been using multiple instances with the code assuming hwnd to be unique without any issue for a couple of years. Is there something I should know perhaps??? Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: 16 December 2004 20:10 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited Thanks for all the help you've been giving me... I split my class in to 2, the MultiForms class has the Form object along w/ the OpenArgs, this is where I'll add the On Close Event so it removes the form from the collection as well please explain the name for BaseClassName? since the i've split the classes I have clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) then the clsMultiInstance (which contains the collection) and I created a Public Variable on the module as well I thought the hWnd was diffrent on each call... maybenot? On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco wrote: > I don't see anything wrong with your call (I did see that someone > correctly suggested a public or module level variable to hold your > collection class object). Could it have anything to do with you > instantiating an instance of your class from within itself (your Add > method creates an object of the class type of which it is a member)? > I normally do this using two classes to keep the functionality > separate, in this case one for the form object and its properties, > another to handle collection duties (remember polymorphism and > encapsulation?). > > Your problem seems to be a duplicate key though. Your original code > appended a timestamp to the hwnd for use in the form's caption. Maybe > you should include that in the key as well to absolutely prevent a > duplicate value. > > BTW, it's also a good idea to add an Exists method to your collection > class to avoid erroring out on duplicate keys: > > Function Exists(strKey As String) As Boolean > 'returns true if the key value (not index) exists in the collection > Dim objTemp As BaseClassName 'if you use my original technique this > would be your base clas object > > On Error GoTo Exists_Err > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > Exists = True > > Exit_Function: > Set objTemp = Nothing > Exit Function > > Exists_Err: > If Err.Number = 5 Then > Exists = False > Else > 'further error handling here for other error types > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > End If > Resume Exit_Function > End Function > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 5:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml > > > file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class > > > that is similar to the one you have here but it would hold the > > > form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need > > > for your form. To store the values > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more > > > info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > Francisco Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where > > > end users can start "multiple calls" and then keep starting newer > > > calls. > > > > > > the following code works really well and in fact I can do what I > > > need with it, except passing openargs... I figure I can use a > > > workaround unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ********************************************************************** > ************* > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > ************************************************************************ *********** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.805 / Virus Database: 547 - Release Date: 03/12/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.805 / Virus Database: 547 - Release Date: 03/12/2004 From Jdemarco at hudsonhealthplan.org Thu Dec 16 14:53:52 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 16 Dec 2004 15:53:52 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2965@TTNEXCHCL2.hshhp.com> Change BaseClassName to clsMultiForms (if my memory is correct). The name of the class you're storing in the collection. I believe Hwnd is unique as well. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Thursday, December 16, 2004 3:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited Thanks for all the help you've been giving me... I split my class in to 2, the MultiForms class has the Form object along w/ the OpenArgs, this is where I'll add the On Close Event so it removes the form from the collection as well please explain the name for BaseClassName? since the i've split the classes I have clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) then the clsMultiInstance (which contains the collection) and I created a Public Variable on the module as well I thought the hWnd was diffrent on each call... maybenot? On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco wrote: > I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). > > Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. > > BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: > > Function Exists(strKey As String) As Boolean > 'returns true if the key value (not index) exists in the collection > Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object > > On Error GoTo Exists_Err > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > Exists = True > > Exit_Function: > Set objTemp = Nothing > Exit Function > > Exists_Err: > If Err.Number = 5 Then > Exists = False > Else > 'further error handling here for other error types > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > End If > Resume Exit_Function > End Function > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 5:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) > Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > dim x as MyClass > > > Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > To store the values > > > > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where end > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > the following code works really well and in fact I can do what I need > > > with it, except passing openargs... I figure I can use a workaround > > > unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From fhtapia at gmail.com Thu Dec 16 15:28:49 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 16 Dec 2004 13:28:49 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2965@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2965@TTNEXCHCL2.hshhp.com> Message-ID: ok I fixed the problems.. I had to make the initial call to the function call the new form as such: Dim frm As Access.Form 20 Set frm = New Form_frm_004C_MyMultiFORM 30 OpenMultiForm frm, "1|" this yields a new hWnd othewisie the previous code: 30 OpenMultiForm Form_frm_004C_MyMultiFORM, "1|" yields the same hWnd everytime... now for part 2 of the problem... when the form loads it calls it's Load Event, but since the open args are null, how do I pass them back?... or do I need to rewrite the onload procedure again? Thanks, On Thu, 16 Dec 2004 15:53:52 -0500, Jim DeMarco wrote: > Change BaseClassName to clsMultiForms (if my memory is correct). The name of the class you're storing in the collection. > > I believe Hwnd is unique as well. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Thursday, December 16, 2004 3:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Thanks for all the help you've been giving me... I split my class in > to 2, the MultiForms class has the Form object along w/ the OpenArgs, > this is where I'll add the On Close Event so it removes the form from > the collection as well > > please explain the name for BaseClassName? > > since the i've split the classes I have > > clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) > then the clsMultiInstance (which contains the collection) > > and I created a Public Variable on the module as well > > I thought the hWnd was diffrent on each call... maybenot? > > On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco > wrote: > > I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). > > > > Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. > > > > BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: > > > > Function Exists(strKey As String) As Boolean > > 'returns true if the key value (not index) exists in the collection > > Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object > > > > On Error GoTo Exists_Err > > > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > > Exists = True > > > > Exit_Function: > > Set objTemp = Nothing > > Exit Function > > > > Exists_Err: > > If Err.Number = 5 Then > > Exists = False > > Else > > 'further error handling here for other error types > > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > > End If > > Resume Exit_Function > > End Function > > > > Jim D. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 5:47 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > This code works for displaying "one" form... but it does not give me a > > tolorance to opening a 2nd Form... :(, the original code worked fine > > for many forms... Ideas? > > > > it could be the way that I'm calling it, (such as > > > > Dim MultiForms As clsMultiInstance > > > > If MultiForms Is Nothing Then > > Set MultiForms = New clsMultiInstance > > End If > > MultiForms.Add frm, frm.hWnd, OpenArgs > > > > ------------------------------ > > VERSION 1.0 CLASS > > BEGIN > > MultiUse = -1 'True > > END > > Attribute VB_Name = "clsMultiInstance" > > Attribute VB_GlobalNameSpace = False > > Attribute VB_Creatable = False > > Attribute VB_PredeclaredId = False > > Attribute VB_Exposed = False > > Option Compare Database > > 'Multi Instance Multiple Forms > > > > Dim mForms As Collection > > Private colForm As Access.Form > > Private colhWnd As String > > Private colOpenArgs As String > > Public Property Let Form(frm As Access.Form) > > Set colForm = frm > > End Property > > Public Property Get Form() As Access.Form > > Set Form = colForm > > End Property > > Public Property Let hWnd(hWnd As String) > > colhWnd = hWnd > > End Property > > Public Property Get strhWnd() As String > > hWnd = colhWnd > > End Property > > Public Property Let OpenArgs(Args As String) > > colOpenArgs = Args > > End Property > > Public Property Get OpenArgs() As String > > OpenArgs = colOpenArgs > > End Property > > > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > > Optional Key As Variant) > > Dim x As clsMultiInstance > > Set x = New clsMultiInstance > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > x.Form.Visible = True > > > > 'On a 2nd call it errors out from here... > > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > > > End Sub > > Sub Remove(hWnd As String) > > 'Purpose: Remove this instance from the collection. > > Dim obj As Object 'Object in Collection > > Dim blnRemove As Boolean 'Flag to remove it. > > > > 'Check if this instance is in the collection. > > ' (It won't be if form was opened directly, or code was reset.) > > For Each obj In mForms > > If obj.hWnd = hWnd Then > > blnRemove = True > > Exit For > > End If > > Next > > 'Deassign the object before removing from collection. > > Set obj = Nothing > > If blnRemove Then > > mForms.Remove CStr(hWnd) > > End If > > End Sub > > Function Count() As Integer > > mForms.Count > > End Function > > Function Item(index As Variant) As clsMultiInstance > > Set Item = mForms.Item(index) > > End Function > > Public Function Term() > > 'Purpose: Close all instances in the collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = mForms.Count > > For lngI = 1 To lngKt > > mForms.Remove 1 > > Next > > Set mForms = Nothing > > End Function > > > > Private Sub Class_Initialize() > > Set mForms = New Collection > > End Sub > > > > ---------------END CLASS---------- > > > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > > wrote: > > > Makes sense. I was typing from (lack of) memory!! > > > > > > Hope it works out. > > > > > > Jim > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 4:03 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > > > Jim that sounds great (re: more code :D), > > > > > > I was wondering on this line: > > > > > > m_col.add(x,hWnd) > > > > > > access complains about an '=' > > > so I re-wrote it as m_col.add x, hWnd > > > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > > wrote: > > > > Francisco, > > > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > > > First a class to hold the data you're trying to use: > > > > > > > > 'MyClass > > > > > > > > Public Property Let Form(frm as Access.Form)... > > > > Public Property Let hWnd(hWnd as String)... > > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > > > > > dim m_col as Collection > > > > > > > > 'MyCollectionClass > > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > > dim x as MyClass > > > > Sex x = new MyClass > > > > x.Form = frm > > > > x.hWnd = hWnd > > > > x.OpenArgs = OpenArgs > > > > m_col.add(x,hWnd) > > > > End Sub > > > > > > > > Function Item(index As Variant) As MyClass > > > > Set Item = m_col.Item(index) > > > > End Function > > > > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > > To store the values > > > > > > > > Dim MyCol as MyCollectionClass > > > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > > > > To retrieve them: > > > > > > > > Dim MyStringArg As String > > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > > 'do something with MyStringArg > > > > > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > > > HTH, > > > > > > > > Jim DeMarco > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > > Tapia > > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > > To: Access Developers discussion and problem solving > > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > > > So I have the following code in a public module.. > > > > > > > > the purpose is to have more than one instance of the form where end > > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > > > the following code works really well and in fact I can do what I need > > > > with it, except passing openargs... I figure I can use a workaround > > > > unless someone here knows of a better way? > > > > > > > > thanks, > > > > > > > > ---CODE SNIP------------ > > > > Option Compare Database > > > > Option Explicit > > > > 'Author: Allen J Browne, January 2000 > > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > > > Function OpenAClient() > > > > 'Purpose: Open an independent instance of form frmClient. > > > > Dim frm As Form > > > > > > > > 'Open a new instance, show it, and set a caption. > > > > Set frm = New Form_frmClient > > > > frm.Visible = True > > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > > > 'Append it to our collection. > > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > > Set frm = Nothing > > > > End Function > > > > > > > > Function CloseAllClients() > > > > 'Purpose: Close all instances in the clnClient collection. > > > > 'Note: Leaves the copy opened directly from database window. > > > > Dim lngKt As Long > > > > Dim lngI As Long > > > > > > > > lngKt = clnClient.Count > > > > For lngI = 1 To lngKt > > > > clnClient.Remove 1 > > > > Next > > > > End Function > > > > ---END CODE SNIP----------------- > > > -- > > -- > > -Francisco > > http://pcthis.blogspot.com | PC news with out the jargon! > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > *********************************************************************************** > > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > > *********************************************************************************** > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From d.dick at uws.edu.au Thu Dec 16 19:40:26 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 12:40:26 +1100 Subject: [AccessD] A2003: rename a file via vba Message-ID: <200412170140.iBH1eXRl016183@cooper.uws.edu.au> Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren From dwaters at usinternet.com Thu Dec 16 20:22:01 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 16 Dec 2004 20:22:01 -0600 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <16776116.1103248017070.JavaMail.root@sniper19.securence.com> Message-ID: <004001c4e3df$31a97da0$de1811d8@danwaters> Darren, Look up 'Rename' in help. This is the example they give: DoCmd.Rename "Old Employees Table", acTable, "Employees" HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 7:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: rename a file via vba Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Dec 16 20:42:01 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Dec 2004 12:42:01 +1000 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <200412170140.iBH1eXRl016183@cooper.uws.edu.au> Message-ID: <41C2D419.17783.2B2E81@lexacorp.com.pg> On 17 Dec 2004 at 12:40, Darren DICK wrote: > Hello all > Any suggestion on renaming a file via code > PSEUDO CODE EXAMPLE > > Some thing like > Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & > ".mdb" > The "Name" command has been part of VBA since the year dot and was part of most flavours of Basic since the very early days. Just use: Name "C:\mydB.mdb" "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" -- Stuart From dwaters at usinternet.com Thu Dec 16 20:44:15 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 16 Dec 2004 20:44:15 -0600 Subject: [AccessD] Reports, Forms, Queries, and Links in Library DB Message-ID: <004101c4e3e2$4c8adee0$de1811d8@danwaters> I've just been testing to see if I could put a form, report, query, or table link into a referenced library mdb. And, it works. In a standard module in the library database I put a procedure which accepts the name of the appropriate object as an argument, then call that procedure from the main mdb. For example: Call OpenLibraryForm("frmTestForm") In the library database is the procedure: Public Sub OpenLibraryForm(stgFormName As String) DoCmd.OpenForm stgFormName End Sub The form/report/query will open fine, just as if it was in the main mdb. I did put a table link into the library mdb so that the objects had a data source. So - does anyone have experience with this practice? Any pros/cons/gotchas? Thanks, Dan Waters ProMation Systems From d.dick at uws.edu.au Thu Dec 16 20:54:24 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 13:54:24 +1100 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <004001c4e3df$31a97da0$de1811d8@danwaters> Message-ID: <200412170254.iBH2sURl010165@cooper.uws.edu.au> Sorry Dan Iwant to rename a file - outside of the db Not a db Object Many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, 17 December 2004 1:22 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: rename a file via vba Darren, Look up 'Rename' in help. This is the example they give: DoCmd.Rename "Old Employees Table", acTable, "Employees" HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 7:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: rename a file via vba Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Dec 16 21:07:58 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 16 Dec 2004 19:07:58 -0800 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <200412170140.iBH1eXRl016183@cooper.uws.edu.au> Message-ID: this is what I do when exporting a query to Excel (The same would apply to renaming an mdb. Dim Path As String Dim stDocName As String Dim FileName As String Path = "C:\YourPathHere\" stDocName = "qryYourQueryNameHere" FileName = Format(Forms![MonthlyReport]![StartDate], "yyyymmdd") & "MonthlyReport.xls" If PathExists(Path) = False Then MkDir Path DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, Path & FileName You could also use now if you want to use the current date instead of selecting a date from a form: FileName = Format(Now(), "yyyymmdd") & "MonthlyReport.xls" HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 5:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: rename a file via vba Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 21:09:59 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 14:09:59 +1100 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <41C2D419.17783.2B2E81@lexacorp.com.pg> Message-ID: <200412170310.iBH3A6Rl021139@cooper.uws.edu.au> Hi Stuart Many thanks When I copy and paste the line below it errors, then goes red and tells me it is expecting Compile Error: Expected: As The Compiler then goes to the space after the first "C:\mydB.mdb" Any thoughts?? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 17 December 2004 1:42 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: rename a file via vba On 17 Dec 2004 at 12:40, Darren DICK wrote: > Hello all > Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE > > Some thing like > Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") > & ".mdb" > The "Name" command has been part of VBA since the year dot and was part of most flavours of Basic since the very early days. Just use: Name "C:\mydB.mdb" "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Dec 16 21:13:42 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Dec 2004 13:13:42 +1000 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <200412170310.iBH3A6Rl021139@cooper.uws.edu.au> References: <41C2D419.17783.2B2E81@lexacorp.com.pg> Message-ID: <41C2DB86.6254.483308@lexacorp.com.pg> On 17 Dec 2004 at 14:09, Darren DICK wrote: > > Hi Stuart > Many thanks > When I copy and paste the line below it errors, then goes red and tells me > it is expecting > Compile Error: Expected: As > The Compiler then goes to the space after the first "C:\mydB.mdb" > > Any thoughts?? > That's what you get when you do things from memory :-( It should indeed be: Name "C:\mydB.mdb" As "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" -- Stuart From d.dick at uws.edu.au Thu Dec 16 21:19:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 14:19:31 +1100 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: Message-ID: <200412170319.iBH3JcRl027910@cooper.uws.edu.au> Thanks David But I am not dealing with any dB objects at all In the old days of dos I would type ren c:\autoexec.bat autoexec.bak To rename the Autoexec to a backup file name Nothing to do with Access objects ieTables, forms, module etc. Any suggestions?? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Friday, 17 December 2004 2:08 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: rename a file via vba this is what I do when exporting a query to Excel (The same would apply to renaming an mdb. Dim Path As String Dim stDocName As String Dim FileName As String Path = "C:\YourPathHere\" stDocName = "qryYourQueryNameHere" FileName = Format(Forms![MonthlyReport]![StartDate], "yyyymmdd") & "MonthlyReport.xls" If PathExists(Path) = False Then MkDir Path DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, Path & FileName You could also use now if you want to use the current date instead of selecting a date from a form: FileName = Format(Now(), "yyyymmdd") & "MonthlyReport.xls" HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 5:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: rename a file via vba Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 21:35:48 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 14:35:48 +1100 Subject: [AccessD] A2003:Connect to a text file at a web address Message-ID: <200412170335.iBH3ZtRl008743@cooper.uws.edu.au> Hello all I have a text file on my website Very vary small It has one line in it similar to... 5.50,True I want to connect to it via link tables When I type in the web address I get a small dialogue saying Connecting to web server.. Then I get an error of LINK TEXT WIZARD: Internet Login Failure Any one know how to pass my logon name and password in this situation? Or if anyone knows of a better situation? Many thanks Darren From stuart at lexacorp.com.pg Thu Dec 16 22:04:17 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Dec 2004 14:04:17 +1000 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <200412170335.iBH3ZtRl008743@cooper.uws.edu.au> Message-ID: <41C2E761.28201.768270@lexacorp.com.pg> On 17 Dec 2004 at 14:35, Darren DICK wrote: > Hello all > I have a text file on my website > Very vary small > It has one line in it similar to... > > 5.50,True > > I want to connect to it via link tables > When I type in the web address I get a small dialogue saying Connecting to > web server.. > Then I get an error of LINK TEXT WIZARD: Internet Login Failure > > Any one know how to pass my logon name and password in this situation? > > Or if anyone knows of a better situation? > I don't know about A2003, but according to A2K Help: "You cannot import from or link to a Microsoft Access database, a text file, or an ODBC data source when importing or linking to an FTP or HTTP server." I'd probably GET the file using FTP and then link to the local copy. -- Stuart From d.dick at uws.edu.au Thu Dec 16 22:16:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 15:16:56 +1100 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C2E761.28201.768270@lexacorp.com.pg> Message-ID: <200412170417.iBH4H2Rl008143@cooper.uws.edu.au> OK Thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 17 December 2004 3:04 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003:Connect to a text file at a web address On 17 Dec 2004 at 14:35, Darren DICK wrote: > Hello all > I have a text file on my website > Very vary small > It has one line in it similar to... > > 5.50,True > > I want to connect to it via link tables When I type in the web address > I get a small dialogue saying Connecting to web server.. > Then I get an error of LINK TEXT WIZARD: Internet Login Failure > > Any one know how to pass my logon name and password in this situation? > > Or if anyone knows of a better situation? > I don't know about A2003, but according to A2K Help: "You cannot import from or link to a Microsoft Access database, a text file, or an ODBC data source when importing or linking to an FTP or HTTP server." I'd probably GET the file using FTP and then link to the local copy. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Dec 17 03:14:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 10:14:50 +0100 Subject: [AccessD] A2003:Connect to a text file at a web address Message-ID: Hi Darren If you have access to this file with no password, you can download it via HTTP: Option Compare Database Option Explicit Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function DownloadFile( _ ByVal strURL As String, _ ByVal strLocalFilename As String) _ As Long ' Download file or page with public access from the web. ' 2004-12-17. Cactus Data ApS, CPH. ' Usage, download a file: ' lngRet = DownloadFile("http://www.databaseadvisors.com/Graphics/conf2002/2002ConferencePicsbySmolin/images/dba02smolin27.jpg", "c:\happybassett.jpg") ' ' Usage, download a page: ' lngRet = DownloadFile("http://www.databaseadvisors.com/conf2002/conf200202.htm", "c:\dbaconference.htm") ' Returns 0 if success, error code if not. ' Error codes: ' -2146697210 "file not found". ' -2146697211 "domain not found". ' Limitation. ' Does not check if local file was created successfully. Dim lngRetVal As Long lngRetVal = URLDownloadToFile(0, strURL & vbNullChar, strLocalFilename & vbNullChar, 0, 0) DownloadFile = lngRetVal End Function Beware of line breaks. /gustav >>> d.dick at uws.edu.au 17-12-2004 04:35:48 >>> Hello all I have a text file on my website Very vary small It has one line in it similar to... 5.50,True I want to connect to it via link tables When I type in the web address I get a small dialogue saying Connecting to web server.. Then I get an error of LINK TEXT WIZARD: Internet Login Failure Any one know how to pass my logon name and password in this situation? Or if anyone knows of a better situation? From pedro at plex.nl Fri Dec 17 11:22:30 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 17 Dec 2004 11:22:30 (MET) Subject: [AccessD] still troubles with IsLoaded Message-ID: <200412171022.iBHAMUWG015811@mailhostC.plex.net> Hello Group, i keeping getting an error on the IsLoaded. "Sub or function not defined" This was working in A97, but in 2003 it is giving me troubles. i tried to Dim al objects, with no result. I can't figure out why Please help Pedro Janssen Private Sub pl_Form_Current() On Error GoTo Err_Form_Current Dim strDocNaam As String Dim Koppelcriterium As String strDocNaam = "Produktenlijst" Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" If IsNull(Me![LEVNAAM]) Then Exit Sub ElseIf IsLoaded("Produktenlijst") Then DoCmd.OpenForm strDocNaam, , , Koppelcriterium End If Exit_Form_Current: Exit Sub Err_Form_Current: MsgBox Err.Description Resume Exit_Form_Current End Sub From Gustav at cactus.dk Fri Dec 17 04:52:26 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 11:52:26 +0100 Subject: [AccessD] still troubles with IsLoaded Message-ID: Hi Pedro IsLoaded() is not an internal function but a custom function. You have to copy it from the old A97 base to a module in the new database. Also, this should read: ElseIf IsLoaded(strDocNaam) Then DoCmd.OpenForm strDocNaam, , , Koppelcriterium /gustav >>> pedro at plex.nl 17-12-2004 11:22:30 >>> Hello Group, i keeping getting an error on the IsLoaded. "Sub or function not defined" This was working in A97, but in 2003 it is giving me troubles. i tried to Dim al objects, with no result. I can't figure out why Please help Pedro Janssen Private Sub pl_Form_Current() On Error GoTo Err_Form_Current Dim strDocNaam As String Dim Koppelcriterium As String strDocNaam = "Produktenlijst" Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" If IsNull(Me![LEVNAAM]) Then Exit Sub ElseIf IsLoaded("Produktenlijst") Then DoCmd.OpenForm strDocNaam, , , Koppelcriterium End If Exit_Form_Current: Exit Sub Err_Form_Current: MsgBox Err.Description Resume Exit_Form_Current End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jarus at amerinet-gpo.com Fri Dec 17 07:33:59 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Fri, 17 Dec 2004 07:33:59 -0600 Subject: [AccessD] AXP to Oracle 9i Message-ID: My IT department has been trying to get me connected via ODBC to an Oracle-hosted environment. Using the Microsoft ODBC for Oracle driver, we have been unable to make a connection. The error message(s) we get: ORA-12154: TNS: could not resolve service name; Driver's SQLSetConnectAttr Failed IM006 0. I am using AXP and Oracle 9i - anyone have suggestions? Thanks so much for any help. Terri Jarus Vice President, Contract Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. From Gustav at cactus.dk Fri Dec 17 08:03:51 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 15:03:51 +0100 Subject: [AccessD] AXP to Oracle 9i Message-ID: Hi Terri You may be better off using the Oracle ODBC driver: http://www.oracle.com/technology/software/tech/windows/odbc/index.html /gustav >>> jarus at amerinet-gpo.com 17-12-2004 14:33:59 >>> My IT department has been trying to get me connected via ODBC to an Oracle-hosted environment. Using the Microsoft ODBC for Oracle driver, we have been unable to make a connection. The error message(s) we get: ORA-12154: TNS: could not resolve service name; Driver's SQLSetConnectAttr Failed IM006 0. I am using AXP and Oracle 9i - anyone have suggestions? Thanks so much for any help. Terri Jarus Vice President, Contract Services jarus at amerinet-gpo.com 314-542-1902 From Gustav at cactus.dk Fri Dec 17 08:37:13 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 15:37:13 +0100 Subject: [AccessD] Looking for TWAIN ocx Message-ID: Neal, did you decide for a tool? /gustav >>> Gustav at cactus.dk 30-11-2004 12:18:11 >>> Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From nkling at co.montgomery.ny.us Fri Dec 17 08:39:58 2004 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Fri, 17 Dec 2004 09:39:58 -0500 Subject: [AccessD] Looking for TWAIN ocx Message-ID: <30BC111F638EB54082001A7E7282FE41114CCE@elmo.co.montgomery.ny.us> I'm going to be experimenting with the Kodak Image Scan Control. Access is not my primary job these days so I'll end up working on this "as time permits". I'll report back here with my results in a month or two. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, December 17, 2004 9:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Looking for TWAIN ocx Neal, did you decide for a tool? /gustav >>> Gustav at cactus.dk 30-11-2004 12:18:11 >>> Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Dec 17 08:42:49 2004 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 17 Dec 2004 08:42:49 -0600 Subject: [AccessD] AXP to Oracle 9i In-Reply-To: References: Message-ID: Hi Terri, You need to have a file on your system called TNSNAMES.ORA This file tells the ODBC driver where the Oracle database lives. It's possible that you have one on your system already but perhaps it doesn't contain the proper entry for the particular instance of the Oracle database that you are attempting to access. Your Oracle DBA's should be able to provide this TNSNAMES.ORA file to you. It could be possible that you have the TNSNAMES.ORA file already but it is not in the proper location too. Mine lives in the folder; C:\Oracle\Ora8i\network\ADMIN although doing a search I see I also have one in the C:\orant\net80\admin folder - both appear to be the current version of the file. so I'm maybe not sure which one is the right place for it to be. I do ODBC to Oracle pretty much every day, both to 8i and 9i databases. I use both Oracle and Microsoft drivers. At one point the Microsoft driver seemed to work better but we have been starting to use the Oracle driver recently as it provides the ability to update the password whereas the Microsoft one does not. I have had pretty good luck in googling on Oracle error numbers too - for example if you google on your error message, this is the first link that comes up http://ora-12154.ora-code.com/ This one is a little further down. http://www.orafaq.com/msgboard/sqlnet/messages/2544.htm I guess there is also another .ORA file you need called SQLNET.ORA that points to the TNSNAMES.ORA file. You may also need to run at least part of the Oracle Client Install in order to get SQLNET installed on your machine that is used in the background. Do a search on your system for ".ORA" files and see what you see. If you don't find any, I would say you need to do the Oracle Client Install in order to get them set up. Once you have a TNSNAMES.ORA file on your system, you will need to verify that it contains the info that points to your Oracle databases. Your dba's will need to provide you with this file. This file is used for other tools too so they should definately be familiar with it. Good luck! On Fri, 17 Dec 2004 07:33:59 -0600, Terri Jarus wrote: > My IT department has been trying to get me connected via ODBC to an > Oracle-hosted environment. Using the Microsoft ODBC for Oracle driver, > we have been unable to make a connection. The error message(s) we get: > ORA-12154: TNS: could not resolve service name; Driver's > SQLSetConnectAttr Failed IM006 0. > > I am using AXP and Oracle 9i - anyone have suggestions? > > Thanks so much for any help. > > Terri Jarus > Vice President, Contract Services > jarus at amerinet-gpo.com > 314-542-1902 > > --------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individuals or entities to whom they > are addressed. If you have received this email in error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From Gustav at cactus.dk Fri Dec 17 09:13:19 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 16:13:19 +0100 Subject: [AccessD] Looking for TWAIN ocx Message-ID: Hi Neal OK. Problem is that I may have a need with a closer deadline, so I hoped you had had some early experiences ... /gustav >>> nkling at co.montgomery.ny.us 17-12-2004 15:39:58 >>> I'm going to be experimenting with the Kodak Image Scan Control. Access is not my primary job these days so I'll end up working on this "as time permits". I'll report back here with my results in a month or two. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, December 17, 2004 9:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Looking for TWAIN ocx Neal, did you decide for a tool? /gustav >>> Gustav at cactus.dk 30-11-2004 12:18:11 >>> Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From Mark.Mitsules at ngc.com Fri Dec 17 09:14:49 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 17 Dec 2004 10:14:49 -0500 Subject: [AccessD] FW: [dba-OT] Returning The Favor Message-ID: One more available... Mark -----Original Message----- From: Mitsules, Mark Sent: Friday, December 17, 2004 8:41 AM To: dba-OT at databaseadvisors.com Subject: [dba-OT] Returning The Favor With my thanks to Jon Tydda, for the initial invite, I am pleased to return the favor to the list and offer 2 Gmail invites to the first responders. I will apologize ahead of time to anyone who is slighted because of internet traffic. Mark _______________________________________________ dba-OT mailing list dba-OT at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-ot Website: http://www.databaseadvisors.com From mgauk at btconnect.com Fri Dec 17 09:29:06 2004 From: mgauk at btconnect.com (Max Wanadoo) Date: Fri, 17 Dec 2004 15:29:06 -0000 Subject: [AccessD] FW: [dba-OT] Returning The Favor In-Reply-To: Message-ID: <200412171529.iBHFTXl23635@databaseadvisors.com> Yes Please Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 17 December 2004 15:15 To: [AccessD] Subject: [AccessD] FW: [dba-OT] Returning The Favor One more available... Mark -----Original Message----- From: Mitsules, Mark Sent: Friday, December 17, 2004 8:41 AM To: dba-OT at databaseadvisors.com Subject: [dba-OT] Returning The Favor With my thanks to Jon Tydda, for the initial invite, I am pleased to return the favor to the list and offer 2 Gmail invites to the first responders. I will apologize ahead of time to anyone who is slighted because of internet traffic. Mark _______________________________________________ dba-OT mailing list dba-OT at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-ot Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.816 / Virus Database: 554 - Release Date: 14/12/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.816 / Virus Database: 554 - Release Date: 14/12/2004 From alan.lawhon at us.army.mil Fri Dec 17 10:38:50 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Fri, 17 Dec 2004 10:38:50 -0600 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB0C3@redstone819.ad.redstone.army.mil> I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. In the "Introduction" (page "xx") under "System Requirements," Rick states that you need a copy of "Microsoft Visual Studio .NET Version 2002" installed on your machine in order to run the sample code from the book. (Rick used the "Enterprise Developer" edition, but he says that the "Professional" edition will also work.) I would like to obtain a (relatively inexpensive) copy - if possible - of Visual Studio, install it on my home computer, and start "playing around" with VB.NET - and working my way thru the examples in Rick's book. Since I am not a "professional" developer, I don't have an MSDN subscription, so I can't get a "free copy" of Visual Studio [from Microsoft] via that route. I've been to Amazon.com's web site (where I buy all my books). I can get a fresh [brand new] copy of "Microsoft Visual Studio .NET 2003 Professional Special Edition" for $699.00 - which is kind of steep for me ... (In fact, there's NO WAY I'm going to pay $700.00 out of my own pocket for a piece of software that I'll basically be using for training purposes.) I have heard that Microsoft passes out free copies of Visual Studio if you can trick your customer into sending you to one of Microsoft's week-long development seminars. I have a feeling we won't be very successful with that option either. (Our customer got "burned" once before by a previous crew of "developers" who hornswaggled their way into a bunch of very expensive Oracle training. After the training, they spruced up their resumes and immediately left for jobs elsewhere with the result that our customer received no return for their "training investment". They are now very wary about paying for any kind of "professional development" or IT training. We are basically expected to either already know what we need to know, or pick it up on our own - which is no big problem for me. My problem is that I'm hoping there is some way I can obtain a (relatively inexpensive) copy of "Visual Studio .NET Version 2002" for (maybe) a couple of hundred bucks - $250.00 at most - if that is reasonable for a new "authentic" unopened box. I've run across some private sellers on the internet who are offering "used" copies of Visual Studio at various prices, but I'm not sure I want to go that route - mainly due to uncertainty about what I might actually be getting - and questions about whether or not Microsoft will support my purchase. (I've always bought "full up" brand new copies of Microsoft software just to avoid legal hassles. I know ... that makes me a sap, but I'll never be arrested by the FBI or carted off to prison for piracy, so it all works out in the long run.) If any of you have an idea or suggestion, I will be very grateful for your advice. I may go ahead and split for the $699.00 copy from Amazon.com, but only as a last resort ... (I'm looking for the cheapest "legal" copy of Visual Studio that I can get.) Alan C. Lawhon From david.powell at kcl.ac.uk Fri Dec 17 10:57:51 2004 From: david.powell at kcl.ac.uk (david Powell) Date: Fri, 17 Dec 2004 16:57:51 -0000 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB0C3@redstone819.ad.redstone.army.mil> Message-ID: <200412171659.iBHGxbl14606@databaseadvisors.com> On the MSDN web site the Express versions of the VS 2005 beta are currently free to download. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 17 December 2004 16:39 To: accessd at databaseadvisors.com Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. From alan.lawhon at us.army.mil Fri Dec 17 11:12:18 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Fri, 17 Dec 2004 11:12:18 -0600 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB0C6@redstone819.ad.redstone.army.mil> David: Thanks for the info! I'll (definitely) check this out ... Alan C. Lawhon -----Original Message----- From: david Powell [mailto:david.powell at kcl.ac.uk] Sent: Friday, December 17, 2004 10:58 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? On the MSDN web site the Express versions of the VS 2005 beta are currently free to download. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 17 December 2004 16:39 To: accessd at databaseadvisors.com Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Dec 17 11:25:26 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 17 Dec 2004 09:25:26 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address References: <200412170417.iBH4H2Rl008143@cooper.uws.edu.au> Message-ID: <41C31686.40705@shaw.ca> You can also use this on Win2000 and higher This works for me using WinHttp when the site uses basic authentication: There are some other winhttp methods you can use to get around server proxies etc. Dim objWinHttp as object Dim strURL as string Dim strHTML as string 'your returned file strURL = "http://somesite.com" Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") objWinHttp.Open "GET", strURL objWinHttp.SetCredentials "mylogin", "mypasswd", 0 objWinHttp.Send strHTML = objWinHttp.ResponseText Set objWinHttp = Nothing Darren DICK wrote: >OK Thanks > >DD > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan >Sent: Friday, 17 December 2004 3:04 PM >To: Access Developers discussion and problemsolving >Subject: Re: [AccessD] A2003:Connect to a text file at a web address > >On 17 Dec 2004 at 14:35, Darren DICK wrote: > > > >>Hello all >>I have a text file on my website >>Very vary small >>It has one line in it similar to... >> >>5.50,True >> >>I want to connect to it via link tables When I type in the web address >>I get a small dialogue saying Connecting to web server.. >>Then I get an error of LINK TEXT WIZARD: Internet Login Failure >> >>Any one know how to pass my logon name and password in this situation? >> >>Or if anyone knows of a better situation? >> >> >> > >I don't know about A2003, but according to A2K Help: >"You cannot import from or link to a Microsoft Access database, a text file, >or an ODBC data source when importing or linking to an FTP or HTTP server." > > >I'd probably GET the file using FTP and then link to the local copy. > > > >-- >Stuart > > > > -- Marty Connelly Victoria, B.C. Canada From KIsmert at TexasSystems.com Fri Dec 17 11:31:49 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 17 Dec 2004 11:31:49 -0600 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2965@TTNEXCHCL2.hshhp.com> Message-ID: <003b01c4e45e$4ac4b280$2a3ca8c0@TEXASSYSTEMS.COM> Jim, Mark, Francisco, >I believe Hwnd is unique as well. > >Jim See the Note in "hWnd Property", http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vb98/html/v bprohwnd.asp What Microsoft is saying in this topic, and the Access Help topic, is that while the hWnd for a window will be unique, you can't count on it to keep the same value over time. So, if you key your form collection using hWnd, any function tries to find the form instance in the collection based on the current hWnd is not guaranteed to work. The hWnd will still be unique, it just may not be the same value you stored when you added the form to the collection. In one of my object form managers, I use a class module-level variable to guarantee a unique, stable ID: Private lIDCounter As Long Public Sub AddForm(rFrm As Access.Form) Dim sID As String lIDCounter = lIDCounter + 1 sID = CStr(lIDCounter) colForms.Add rFrm, sID rFrm.SetInstanceID sID End Sub Of course, each form participating in this scheme now needs to have a SetInstanceID method: Private sInstanceID As String Public Sub SetInstanceID(sID As String) sInstanceID = sID End Sub Now the form, when it is calling back to the managing object, can use its sInstanceID to identify itself. This is extra work, but do you want to be 99% sure your Form ID solution will work, or 100%? -Ken From Gustav at cactus.dk Fri Dec 17 11:54:40 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 18:54:40 +0100 Subject: [AccessD] Looking for TWAIN ocx Message-ID: Hi all If someone else should be working with this topic and wonder where the Wang/Kodak imaging controls went with Windows XP, this page may be of interest: http://www.parkenet.com/apl/ImageEditor.htm /gustav >>> nkling at co.montgomery.ny.us 17-12-2004 15:39:58 >>> I'm going to be experimenting with the Kodak Image Scan Control. Access is not my primary job these days so I'll end up working on this "as time permits". I'll report back here with my results in a month or two. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, December 17, 2004 9:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Looking for TWAIN ocx Neal, did you decide for a tool? /gustav >>> Gustav at cactus.dk 30-11-2004 12:18:11 >>> Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From martyconnelly at shaw.ca Fri Dec 17 12:30:56 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 17 Dec 2004 10:30:56 -0800 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? References: <200412171659.iBHGxbl14606@databaseadvisors.com> Message-ID: <41C325E0.5060101@shaw.ca> Don't forget to read the MSDN blogs and updates on this. For example here are the links for the download and white papers on SQL Server 2005 Express Manager - A new lightweight and easy to use tool for managing SQL Server It is a replacement for Enterprise Manger. There are problems using both simultaneously as DMO has been replace by SMO Remember this is a Beta and bad things can happen. http://blogs.msdn.com/sqlexpress/archive/2004/12/03/274429.aspx david Powell wrote: >On the MSDN web site the Express versions of the VS 2005 beta are currently >free to download. > >David > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C >Contractor/Morgan Research >Sent: 17 December 2004 16:39 >To: accessd at databaseadvisors.com >Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? > >I have recently bought a copy of Rick Dobson's book: "Programming Microsoft >Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a >treasure trove full of valuable information that will help us "web enable" >an environmental database application here at work. > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Dec 17 12:39:02 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 17 Dec 2004 10:39:02 -0800 Subject: [AccessD] still troubles with IsLoaded References: <200412171022.iBHAMUWG015811@mailhostC.plex.net> Message-ID: <41C327C6.1060806@shaw.ca> Here is the IsLoaded function that used to be in utility.mda that was an automatic addin for Access 97 This is a copy of routine from northwind.mbd Function IsLoaded(ByVal strFormName As String) As Boolean ' Returns True if the specified form is open in Form view or Datasheet view. Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then If Forms(strFormName).CurrentView <> conDesignView Then IsLoaded = True End If End If End Function pedro at plex.nl wrote: >Hello Group, > >i keeping getting an error on the IsLoaded. "Sub or function not defined" >This was working in A97, but in 2003 it is giving me troubles. > >i tried to Dim al objects, with no result. > >I can't figure out why > >Please help > >Pedro Janssen > > > >Private Sub pl_Form_Current() >On Error GoTo Err_Form_Current > > Dim strDocNaam As String > Dim Koppelcriterium As String > > strDocNaam = "Produktenlijst" > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > If IsNull(Me![LEVNAAM]) Then > Exit Sub > ElseIf IsLoaded("Produktenlijst") Then > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > End If > >Exit_Form_Current: > Exit Sub > >Err_Form_Current: > MsgBox Err.Description > Resume Exit_Form_Current > >End Sub > > -- Marty Connelly Victoria, B.C. Canada From cyx5 at cdc.gov Fri Dec 17 12:50:15 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 17 Dec 2004 13:50:15 -0500 Subject: [AccessD] still troubles with IsLoaded Message-ID: I hear that there is an isloaded function that is new to Access 2003. The syntax would be: If CurrentProject.AllForms("frmVestigingenForm").IsLoaded -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, December 17, 2004 1:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] still troubles with IsLoaded Here is the IsLoaded function that used to be in utility.mda that was an automatic addin for Access 97 This is a copy of routine from northwind.mbd Function IsLoaded(ByVal strFormName As String) As Boolean ' Returns True if the specified form is open in Form view or Datasheet view. Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then If Forms(strFormName).CurrentView <> conDesignView Then IsLoaded = True End If End If End Function pedro at plex.nl wrote: >Hello Group, > >i keeping getting an error on the IsLoaded. "Sub or function not defined" >This was working in A97, but in 2003 it is giving me troubles. > >i tried to Dim al objects, with no result. > >I can't figure out why > >Please help > >Pedro Janssen > > > >Private Sub pl_Form_Current() >On Error GoTo Err_Form_Current > > Dim strDocNaam As String > Dim Koppelcriterium As String > > strDocNaam = "Produktenlijst" > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > If IsNull(Me![LEVNAAM]) Then > Exit Sub > ElseIf IsLoaded("Produktenlijst") Then > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > End If > >Exit_Form_Current: > Exit Sub > >Err_Form_Current: > MsgBox Err.Description > Resume Exit_Form_Current > >End Sub > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Dec 17 13:26:49 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 20:26:49 +0100 Subject: [AccessD] still troubles with IsLoaded Message-ID: Hi Pedro That (see below) is your explanation. You have probably used utility.mda with A97 (I don't, that's why I couldn't find it), while you would do it differently in newer versions of Access. This: booOpen = CurrentProject.AllForms("frmVestigingenForm").IsLoaded works in Access XP/2002 as well; don't know about Access 2000. It behaves, though, somewhat differently than IsLoaded() because it throws an error if the form doesn't exist at all. /gustav >>> cyx5 at cdc.gov 17-12-2004 19:50:15 >>> I hear that there is an isloaded function that is new to Access 2003. The syntax would be: If CurrentProject.AllForms("frmVestigingenForm").IsLoaded -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, December 17, 2004 1:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] still troubles with IsLoaded Here is the IsLoaded function that used to be in utility.mda that was an automatic addin for Access 97 This is a copy of routine from northwind.mbd Function IsLoaded(ByVal strFormName As String) As Boolean ' Returns True if the specified form is open in Form view or Datasheet view. Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then If Forms(strFormName).CurrentView <> conDesignView Then IsLoaded = True End If End If End Function pedro at plex.nl wrote: >Hello Group, > >i keeping getting an error on the IsLoaded. "Sub or function not defined" >This was working in A97, but in 2003 it is giving me troubles. > >i tried to Dim al objects, with no result. > >I can't figure out why > >Please help > >Pedro Janssen > > > >Private Sub pl_Form_Current() >On Error GoTo Err_Form_Current > > Dim strDocNaam As String > Dim Koppelcriterium As String > > strDocNaam = "Produktenlijst" > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > If IsNull(Me![LEVNAAM]) Then > Exit Sub > ElseIf IsLoaded("Produktenlijst") Then > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > End If > >Exit_Form_Current: > Exit Sub > >Err_Form_Current: > MsgBox Err.Description > Resume Exit_Form_Current > >End Sub From Lambert.Heenan at AIG.com Fri Dec 17 13:44:04 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 17 Dec 2004 14:44:04 -0500 Subject: [AccessD] still troubles with IsLoaded Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A29B1@xlivmbx21.aig.com> IsLoaded is built in from at least Access 2002. It syntax is Dim boolResult as Boolean boolResult = expression.IsLoaded where "expression" is any Access object. The IsLoaded() function from Access 97 Northwind is simply a hand rolled VBA function (not a part of Utility.mda) and it works only with forms, though could be modified for other objects. I find that the old IsLoaded function coexists happily with the built-in IsLoaded Property in Access 2002. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Friday, December 17, 2004 1:50 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] still troubles with IsLoaded > > I hear that there is an isloaded function that is new to Access 2003. > The syntax would be: > If CurrentProject.AllForms("frmVestigingenForm").IsLoaded > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Friday, December 17, 2004 1:39 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] still troubles with IsLoaded > > > Here is the IsLoaded function that used to be in utility.mda that was an > > automatic addin for Access 97 > This is a copy of routine from northwind.mbd > > Function IsLoaded(ByVal strFormName As String) As Boolean > ' Returns True if the specified form is open in Form view or Datasheet > view. > > Const conObjStateClosed = 0 > Const conDesignView = 0 > > If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> > conObjStateClosed Then > If Forms(strFormName).CurrentView <> conDesignView Then > IsLoaded = True > End If > End If > > End Function > > > pedro at plex.nl wrote: > > >Hello Group, > > > >i keeping getting an error on the IsLoaded. "Sub or function not > defined" > >This was working in A97, but in 2003 it is giving me troubles. > > > >i tried to Dim al objects, with no result. > > > >I can't figure out why > > > >Please help > > > >Pedro Janssen > > > > > > > >Private Sub pl_Form_Current() > >On Error GoTo Err_Form_Current > > > > Dim strDocNaam As String > > Dim Koppelcriterium As String > > > > strDocNaam = "Produktenlijst" > > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > > > If IsNull(Me![LEVNAAM]) Then > > Exit Sub > > ElseIf IsLoaded("Produktenlijst") Then > > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > > End If > > > >Exit_Form_Current: > > Exit Sub > > > >Err_Form_Current: > > MsgBox Err.Description > > Resume Exit_Form_Current > > > >End Sub > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From lists at theopg.com Fri Dec 17 14:19:38 2004 From: lists at theopg.com (MarkH) Date: Fri, 17 Dec 2004 20:19:38 -0000 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <003b01c4e45e$4ac4b280$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <000401c4e475$bd095af0$c639fc3e@netboxxp> Excellent... Thanks for that, so far I have not experienced any problems but I don't think I'll wait for something to go wrong... Thanks again Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: 17 December 2004 17:32 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Multi-Instance Forms re-visited Jim, Mark, Francisco, >I believe Hwnd is unique as well. > >Jim See the Note in "hWnd Property", http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vb98/ht ml/v bprohwnd.asp What Microsoft is saying in this topic, and the Access Help topic, is that while the hWnd for a window will be unique, you can't count on it to keep the same value over time. So, if you key your form collection using hWnd, any function tries to find the form instance in the collection based on the current hWnd is not guaranteed to work. The hWnd will still be unique, it just may not be the same value you stored when you added the form to the collection. In one of my object form managers, I use a class module-level variable to guarantee a unique, stable ID: Private lIDCounter As Long Public Sub AddForm(rFrm As Access.Form) Dim sID As String lIDCounter = lIDCounter + 1 sID = CStr(lIDCounter) colForms.Add rFrm, sID rFrm.SetInstanceID sID End Sub Of course, each form participating in this scheme now needs to have a SetInstanceID method: Private sInstanceID As String Public Sub SetInstanceID(sID As String) sInstanceID = sID End Sub Now the form, when it is calling back to the managing object, can use its sInstanceID to identify itself. This is extra work, but do you want to be 99% sure your Form ID solution will work, or 100%? -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.805 / Virus Database: 547 - Release Date: 03/12/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.805 / Virus Database: 547 - Release Date: 03/12/2004 From stuart at lexacorp.com.pg Fri Dec 17 17:11:27 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 18 Dec 2004 09:11:27 +1000 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C31686.40705@shaw.ca> Message-ID: <41C3F43F.3393.490C4B6@lexacorp.com.pg> On 17 Dec 2004 at 9:25, MartyConnelly wrote: > You can also use this on Win2000 and higher > This works for me using WinHttp when the site uses basic authentication: > There are some other winhttp methods you can use to get around server > proxies etc. > > Dim objWinHttp as object > Dim strURL as string > Dim strHTML as string 'your returned file > > > strURL = "http://somesite.com" > Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") > You have to be a bit careful here and it's not redistributable because there are different versiosn of WinHttp out there. Any of the following may be required on W2K/XP systems ...Request.5 ...Request.5.1 or Request.5.1.1 you need to look at the exact version number when you create the reference. -- Stuart From BarbaraRyan at cox.net Fri Dec 17 19:37:36 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 17 Dec 2004 20:37:36 -0500 Subject: [AccessD] Closing a form from a module procedure Message-ID: <001701c4e4a2$27a0c8e0$0a00a8c0@cx470148a> Simply put, in an Access 97 application I have Form1 and Module1. A pushbutton on Form1 executes a procedure in Module1 which closes Form1 (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does not appear to be working --- I receive an error on the DeleteObject command, saying that Form1 is still open. Yet when I run the following IsLoaded function after the Close command, it returns false (i.e., Form1 is NOT open). Any ideas? Thanks, Barb Ryan Public Function IsLoaded(frmName As String) As Boolean 'checks if a particular form is open Dim frm As Integer IsLoaded = False For frm = 0 To Forms.Count - 1 If Forms(frm).Name = frmName Then IsLoaded = True Exit For End If Next frm End Function From stuart at lexacorp.com.pg Fri Dec 17 19:53:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 18 Dec 2004 11:53:45 +1000 Subject: [AccessD] Closing a form from a module procedure In-Reply-To: <001701c4e4a2$27a0c8e0$0a00a8c0@cx470148a> Message-ID: <41C41A49.15767.5255A20@lexacorp.com.pg> On 17 Dec 2004 at 20:37, Barbara Ryan wrote: > Simply put, in an Access 97 application I have Form1 and Module1. A > pushbutton on Form1 executes a procedure in Module1 which closes Form1 > (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 > (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does not > appear to be working --- I receive an error on the DeleteObject command, > saying that Form1 is still open. Yet when I run the following IsLoaded > function after the Close command, it returns false (i.e., Form1 is NOT > open). Trying to explain it simply without getting into details about stacks, pointers, calls etc: While running the module procedure, a pointer will still be open saying where to return execution to once the procedure is over. SInce that pointer is to a a procedure in the form, the system cannot "completely close" the form at that stage. It can remove the name from the Forms collection, but it can't clean up and get all traces of the form out of memory until the pointer has been used and removed. Even though the actual delete command is not in the form's module, what you are doing is effectively the same as trying to delete the form from code within the form. -- Stuart From jmoss111 at bellsouth.net Fri Dec 17 20:46:24 2004 From: jmoss111 at bellsouth.net (James Moss) Date: Fri, 17 Dec 2004 20:46:24 -0600 Subject: [AccessD] (no subject) Message-ID: <20041218024625.MWIV2443.imf18aec.mail.bellsouth.net@jmoss3> Alan, I purchased from this seller the same item listed for sale a couple of months ago, and all I know is that it works and registered with M$ without a hitch, see link below http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&category=46327&item=7121978364 &rd=1&ssPageName=WDVW Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Friday, December 17, 2004 10:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. In the "Introduction" (page "xx") under "System Requirements," Rick states that you need a copy of "Microsoft Visual Studio .NET Version 2002" installed on your machine in order to run the sample code from the book. (Rick used the "Enterprise Developer" edition, but he says that the "Professional" edition will also work.) I would like to obtain a (relatively inexpensive) copy - if possible - of Visual Studio, install it on my home computer, and start "playing around" with VB.NET - and working my way thru the examples in Rick's book. Since I am not a "professional" developer, I don't have an MSDN subscription, so I can't get a "free copy" of Visual Studio [from Microsoft] via that route. I've been to Amazon.com's web site (where I buy all my books). I can get a fresh [brand new] copy of "Microsoft Visual Studio .NET 2003 Professional Special Edition" for $699.00 - which is kind of steep for me ... (In fact, there's NO WAY I'm going to pay $700.00 out of my own pocket for a piece of software that I'll basically be using for training purposes.) I have heard that Microsoft passes out free copies of Visual Studio if you can trick your customer into sending you to one of Microsoft's week-long development seminars. I have a feeling we won't be very successful with that option either. (Our customer got "burned" once before by a previous crew of "developers" who hornswaggled their way into a bunch of very expensive Oracle training. After the training, they spruced up their resumes and immediately left for jobs elsewhere with the result that our customer received no return for their "training investment". They are now very wary about paying for any kind of "professional development" or IT training. We are basically expected to either already know what we need to know, or pick it up on our own - which is no big problem for me. My problem is that I'm hoping there is some way I can obtain a (relatively inexpensive) copy of "Visual Studio .NET Version 2002" for (maybe) a couple of hundred bucks - $250.00 at most - if th! at is reasonable for a new "authentic" unopened box. I've run across some private sellers on the internet who are offering "used" copies of Visual Studio at various prices, but I'm not sure I want to go that route - mainly due to uncertainty about what I might actually be getting - and questions about whether or not Microsoft will support my purchase. (I've always bought "full up" brand new copies of Microsoft software just to avoid legal hassles. I know ... that makes me a sap, but I'll never be arrested by the FBI or carted off to prison for piracy, so it all works out in the long run.) If any of you have an idea or suggestion, I will be very grateful for your advice. I may go ahead and split for the $699.00 copy from Amazon.com, but only as a last resort ... (I'm looking for the cheapest "legal" copy of Visual Studio that I can get.) Alan C. Lawhon -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 17 21:07:44 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 17 Dec 2004 22:07:44 -0500 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB0C3@redstone819.ad.redstone.army.mil> Message-ID: <001001c4e4ae$be6a0c80$e8dafea9@ColbyM6805> If you are a student (or a teacher if I'm not mistaken) at a school you can get a student edition for about $99. That's what I did - you just have to fax your student ID to the store you buy from. The deal then is that the license says you cannot develop professionally using that copy, which really shouldn't be an issue since once you start earning money for using .net you can then afford to buy it. AFAICT the student edition is the whole enchilada with a limited license. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Friday, December 17, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. In the "Introduction" (page "xx") under "System Requirements," Rick states that you need a copy of "Microsoft Visual Studio .NET Version 2002" installed on your machine in order to run the sample code from the book. (Rick used the "Enterprise Developer" edition, but he says that the "Professional" edition will also work.) I would like to obtain a (relatively inexpensive) copy - if possible - of Visual Studio, install it on my home computer, and start "playing around" with VB.NET - and working my way thru the examples in Rick's book. Since I am not a "professional" developer, I don't have an MSDN subscription, so I can't get a "free copy" of Visual Studio [from Microsoft] via that route. I've been to Amazon.com's web site (where I buy all my books). I can get a fresh [brand new] copy of "Microsoft Visual Studio .NET 2003 Professional Special Edition" for $699.00 - which is kind of steep for me ... (In fact, there's NO WAY I'm going to pay $700.00 out of my own pocket for a piece of software that I'll basically be using for training purposes.) I have heard that Microsoft passes out free copies of Visual Studio if you can trick your customer into sending you to one of Microsoft's week-long development seminars. I have a feeling we won't be very successful with that option either. (Our customer got "burned" once before by a previous crew of "developers" who hornswaggled their way into a bunch of very expensive Oracle training. After the training, they spruced up their resumes and immediately left for jobs elsewhere with the result that our customer received no return for their "training investment". They are now very wary about paying for any kind of "professional development" or IT training. We are basically expected to either already know what we need to know, or pick it up on our own - which is no big problem for me. My problem is that I'm hoping there is some way I can obtain a (relatively inexpensive) copy of "Visual Studio .NET Version 2002" for (maybe) a couple of hundred bucks - $250.00 at most - if th! at is reasonable for a new "authentic" unopened box. I've run across some private sellers on the internet who are offering "used" copies of Visual Studio at various prices, but I'm not sure I want to go that route - mainly due to uncertainty about what I might actually be getting - and questions about whether or not Microsoft will support my purchase. (I've always bought "full up" brand new copies of Microsoft software just to avoid legal hassles. I know ... that makes me a sap, but I'll never be arrested by the FBI or carted off to prison for piracy, so it all works out in the long run.) If any of you have an idea or suggestion, I will be very grateful for your advice. I may go ahead and split for the $699.00 copy from Amazon.com, but only as a last resort ... (I'm looking for the cheapest "legal" copy of Visual Studio that I can get.) Alan C. Lawhon -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Sat Dec 18 02:38:51 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 18 Dec 2004 09:38:51 +0100 Subject: [AccessD] still troubles with IsLoaded References: <1D7828CDB8350747AFE9D69E0E90DA1F073A29B1@xlivmbx21.aig.com> Message-ID: <001d01c4e4dd$01790430$f2c581d5@pedro> Hello All, thanks for the help. All this must leed to a function that is working. Pedro Janssen ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" ; "'Nicholson, Karen'" Sent: Friday, December 17, 2004 8:44 PM Subject: RE: [AccessD] still troubles with IsLoaded > IsLoaded is built in from at least Access 2002. It syntax is > > Dim boolResult as Boolean > > boolResult = expression.IsLoaded > > where "expression" is any Access object. > > The IsLoaded() function from Access 97 Northwind is simply a hand rolled VBA > function (not a part of Utility.mda) and it works only with forms, though > could be modified for other objects. > > I find that the old IsLoaded function coexists happily with the built-in > IsLoaded Property in Access 2002. > > Lambert > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > > Sent: Friday, December 17, 2004 1:50 PM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] still troubles with IsLoaded > > > > I hear that there is an isloaded function that is new to Access 2003. > > The syntax would be: > > If CurrentProject.AllForms("frmVestigingenForm").IsLoaded > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > > Sent: Friday, December 17, 2004 1:39 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] still troubles with IsLoaded > > > > > > Here is the IsLoaded function that used to be in utility.mda that was an > > > > automatic addin for Access 97 > > This is a copy of routine from northwind.mbd > > > > Function IsLoaded(ByVal strFormName As String) As Boolean > > ' Returns True if the specified form is open in Form view or Datasheet > > view. > > > > Const conObjStateClosed = 0 > > Const conDesignView = 0 > > > > If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> > > conObjStateClosed Then > > If Forms(strFormName).CurrentView <> conDesignView Then > > IsLoaded = True > > End If > > End If > > > > End Function > > > > > > pedro at plex.nl wrote: > > > > >Hello Group, > > > > > >i keeping getting an error on the IsLoaded. "Sub or function not > > defined" > > >This was working in A97, but in 2003 it is giving me troubles. > > > > > >i tried to Dim al objects, with no result. > > > > > >I can't figure out why > > > > > >Please help > > > > > >Pedro Janssen > > > > > > > > > > > >Private Sub pl_Form_Current() > > >On Error GoTo Err_Form_Current > > > > > > Dim strDocNaam As String > > > Dim Koppelcriterium As String > > > > > > strDocNaam = "Produktenlijst" > > > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > > > > > If IsNull(Me![LEVNAAM]) Then > > > Exit Sub > > > ElseIf IsLoaded("Produktenlijst") Then > > > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > > > End If > > > > > >Exit_Form_Current: > > > Exit Sub > > > > > >Err_Form_Current: > > > MsgBox Err.Description > > > Resume Exit_Form_Current > > > > > >End Sub > > > > > > > > > > -- > > Marty Connelly > > Victoria, B.C. > > Canada > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Sat Dec 18 04:39:52 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 18 Dec 2004 11:39:52 +0100 Subject: [AccessD] Closing a form from a module procedure Message-ID: Hi Barbara Further to Stuart's explanation, why are you deleting the form? Never heard of that before within an application - why don't you just leave it? /gustav >>> BarbaraRyan at cox.net 18-12-2004 02:37:36 >>> Simply put, in an Access 97 application I have Form1 and Module1. A pushbutton on Form1 executes a procedure in Module1 which closes Form1 (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does not appear to be working --- I receive an error on the DeleteObject command, saying that Form1 is still open. Yet when I run the following IsLoaded function after the Close command, it returns false (i.e., Form1 is NOT open). From BarbaraRyan at cox.net Sat Dec 18 07:26:02 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Sat, 18 Dec 2004 08:26:02 -0500 Subject: [AccessD] Closing a form from a module procedure References: Message-ID: <002501c4e505$1f078440$0a00a8c0@cx470148a> The procedure that is executed replaces objects (i.e., deletes, then imports) from the user's front-end database with objects from a database that I email to them. It works great unless I need to replace "Form1" (the form that contains the pushbutton to execute this procedure). Any ideas on how to accomplish this? Thanks, Barb Ryan ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 18, 2004 5:39 AM Subject: Re: [AccessD] Closing a form from a module procedure > Hi Barbara > > Further to Stuart's explanation, why are you deleting the form? Never > heard of that before within an application - why don't you just leave > it? > > /gustav > > >>> BarbaraRyan at cox.net 18-12-2004 02:37:36 >>> > Simply put, in an Access 97 application I have Form1 and Module1. A > pushbutton on Form1 executes a procedure in Module1 which closes Form1 > (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 > (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does > not appear to be working --- I receive an error on the DeleteObject > command, saying that Form1 is still open. Yet when I run the following > IsLoaded function after the Close command, it returns false (i.e., Form1 > is NOT open). > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Dec 18 07:38:24 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 18 Dec 2004 14:38:24 +0100 Subject: [AccessD] Closing a form from a module procedure Message-ID: Hi Barbara Open another (temporary) form and kill form1 from that. Then copy the new form1, open form1, close the temp form. /gustav >>> BarbaraRyan at cox.net 18-12-2004 14:26:02 >>> The procedure that is executed replaces objects (i.e., deletes, then imports) from the user's front-end database with objects from a database that I email to them. It works great unless I need to replace "Form1" (the form that contains the pushbutton to execute this procedure). Any ideas on how to accomplish this? Thanks, Barb Ryan ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 18, 2004 5:39 AM Subject: Re: [AccessD] Closing a form from a module procedure > Hi Barbara > > Further to Stuart's explanation, why are you deleting the form? Never > heard of that before within an application - why don't you just leave > it? > > /gustav > > >>> BarbaraRyan at cox.net 18-12-2004 02:37:36 >>> > Simply put, in an Access 97 application I have Form1 and Module1. A > pushbutton on Form1 executes a procedure in Module1 which closes Form1 > (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 > (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does > not appear to be working --- I receive an error on the DeleteObject > command, saying that Form1 is still open. Yet when I run the following > IsLoaded function after the Close command, it returns false (i.e., Form1 > is NOT open). From BarbaraRyan at cox.net Sat Dec 18 08:12:20 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Sat, 18 Dec 2004 09:12:20 -0500 Subject: [AccessD] Closing a form from a module procedure References: Message-ID: <002e01c4e50b$96a03820$0a00a8c0@cx470148a> Thanks, Gustav..... and why couldn't I think of that?!!.....Barb ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 18, 2004 8:38 AM Subject: Re: [AccessD] Closing a form from a module procedure > Hi Barbara > > Open another (temporary) form and kill form1 from that. Then copy the > new form1, open form1, close the temp form. > > /gustav > > >>> BarbaraRyan at cox.net 18-12-2004 14:26:02 >>> > The procedure that is executed replaces objects (i.e., deletes, then > imports) from the user's front-end database with objects from a > database > that I email to them. It works great unless I need to replace "Form1" > (the > form that contains the pushbutton to execute this procedure). Any > ideas on > how to accomplish this? > > Thanks, > Barb Ryan > > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Saturday, December 18, 2004 5:39 AM > Subject: Re: [AccessD] Closing a form from a module procedure > > > > Hi Barbara > > > > Further to Stuart's explanation, why are you deleting the form? > Never > > heard of that before within an application - why don't you just > leave > > it? > > > > /gustav > > > > >>> BarbaraRyan at cox.net 18-12-2004 02:37:36 >>> > > Simply put, in an Access 97 application I have Form1 and Module1. A > > pushbutton on Form1 executes a procedure in Module1 which closes > Form1 > > (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 > > (DoCmd.DeleteObject acForm, "Form1"). However, the Close command > does > > not appear to be working --- I receive an error on the DeleteObject > > command, saying that Form1 is still open. Yet when I run the > following > > IsLoaded function after the Close command, it returns false (i.e., > Form1 > > is NOT open). > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Dec 18 08:16:05 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 18 Dec 2004 09:16:05 -0500 Subject: [AccessD] OT a bit Message-ID: <20041218141607.RDEA2421.imf24aec.mail.bellsouth.net@SUSANONE> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/olintapi/ht ml/WelcomeOlintapi_HV01155855.asp Found this on Mike G's blog -- I haven't read it yet, but promises to be helpful. Unfortunately, it's got a rating of 1, which makes me gasp. But, doing this for a living, I know that often, the content is good, it just isn't what the reader needed... but wanted to warn you since I haven't had a chance to actually review it for myself yet. Susan H. From martyconnelly at shaw.ca Sat Dec 18 10:41:21 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 18 Dec 2004 08:41:21 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address References: <41C3F43F.3393.490C4B6@lexacorp.com.pg> Message-ID: <41C45DB1.6070800@shaw.ca> Sob. But Microsoft initially said it was redistributable. But then I didn't look for awhile, I have WinXP SP1 installed and the two versions WinHttp 5.0 and 5.1 coexist side by side WinXP SP2 has another version. For all the gory details http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/what_s_new_in_winhttp_5_1.asp Stuart McLachlan wrote: >On 17 Dec 2004 at 9:25, MartyConnelly wrote: > > > >>You can also use this on Win2000 and higher >>This works for me using WinHttp when the site uses basic authentication: >>There are some other winhttp methods you can use to get around server >>proxies etc. >> >> Dim objWinHttp as object >> Dim strURL as string >> Dim strHTML as string 'your returned file >> >> >> strURL = "http://somesite.com" >> Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") >> >> >> > >You have to be a bit careful here and it's not redistributable because >there are different versiosn of WinHttp out there. Any of the following may >be required on W2K/XP systems ...Request.5 ...Request.5.1 or Request.5.1.1 >you need to look at the exact version number when you create the reference. > > > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Sat Dec 18 17:01:23 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 19 Dec 2004 09:01:23 +1000 Subject: [AccessD] OT a bit In-Reply-To: <20041218141607.RDEA2421.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <41C54363.27659.9ADE7B0@lexacorp.com.pg> On 18 Dec 2004 at 9:16, Susan Harkins wrote: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/olintapi/ht > ml/WelcomeOlintapi_HV01155855.asp > > Found this on Mike G's blog -- I haven't read it yet, but promises to be > helpful. Unfortunately, it's got a rating of 1, which makes me gasp. But, > doing this for a living, I know that often, the content is good, it just > isn't what the reader needed... but wanted to warn you since I haven't had a > chance to actually review it for myself yet. > I'd probably rate the page a 1 myself. (the page, not the actual downloadable API reference). It really doesn't provide any value if you are looking for info on the API. It just says that an API reference is available and links to another page which says the same thing and also provides the download link :-) -- Stuart From Gustav at cactus.dk Sun Dec 19 15:10:39 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Dec 2004 22:10:39 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From d.dick at uws.edu.au Sun Dec 19 20:42:26 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 20 Dec 2004 13:42:26 +1100 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C45DB1.6070800@shaw.ca> Message-ID: <200412200242.iBK2gXRl018118@cooper.uws.edu.au> Thanks to all who responded I will keep away from the WinHTTP object Some of my clients are still using Win 98 (And it's not even Second Edition) Here is the scenario All I have is a text file that has a version number of that particular app. I want my apps to look for this text file - read the contents and see it says 6.00 Now, if the current version of the app that is looking at this text file happens to be version 5.95 - a download of a new version should occur. I just wanted to put this text file in a public place eg a web site I actually don't wanna download the text file - just read from it Simple right?? Anyway back to the drawing board Again many thanks to those who responded I will be using the download code from Gustav - it looks cool Thanks Gustav See y'all Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, 19 December 2004 3:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Connect to a text file at a web address Sob. But Microsoft initially said it was redistributable. But then I didn't look for awhile, I have WinXP SP1 installed and the two versions WinHttp 5.0 and 5.1 coexist side by side WinXP SP2 has another version. For all the gory details http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/htt p/what_s_new_in_winhttp_5_1.asp Stuart McLachlan wrote: >On 17 Dec 2004 at 9:25, MartyConnelly wrote: > > > >>You can also use this on Win2000 and higher This works for me using >>WinHttp when the site uses basic authentication: >>There are some other winhttp methods you can use to get around server >>proxies etc. >> >> Dim objWinHttp as object >> Dim strURL as string >> Dim strHTML as string 'your returned file >> >> >> strURL = "http://somesite.com" >> Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") >> >> >> > >You have to be a bit careful here and it's not redistributable because >there are different versiosn of WinHttp out there. Any of the following >may be required on W2K/XP systems ...Request.5 ...Request.5.1 or >Request.5.1.1 you need to look at the exact version number when you create the reference. > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Dec 20 01:16:59 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 19 Dec 2004 23:16:59 -0800 Subject: [AccessD] OT: The Polar Express References: Message-ID: <41C67C6B.5050801@shaw.ca> If you are a train fan this one runs bi weekly every summer. I thought of it when I saw the movie trailers. Polar Bear Express from Cochrane to Mooseonee. http://www.polarbearexpress.ca/ Not many polar bears there, as they are generally around Churchill 500 further west Rode the train years ago one way, as we canoed up the Missinaibi river, took the train back. Don't do this route without a guide, unless you have done a lot of wilderness routes Portages around Thunderhouse falls are not marked correctly on topo maps and can kill you. When we did it in the early 70's, we were working off hand written notes by a previous canoeist. It is better marked now. http://www.myccr.com/canoedb/routeDetails.php?routeid=197 http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html At the bottom of page is a picture of one the scenic spots Conjuring House Falls on the Missinaibi http://travel.canoe.ca/che-mun/99list2.html Gustav Brock wrote: >Hi all > >Well, isn't it still Friday here? > >Anyway, I enjoyed The Polar Express yesterday in the original US >version in a major theater with a state-of-the-art sound system. >What a magnificent movie! >Anybody else: don't miss it. Indeed, if you are a fan of steam engines >(or just trains in general), this movie is a must - it'll take you >away. > >/gustav > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Dec 20 01:37:13 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 19 Dec 2004 23:37:13 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address References: <200412200242.iBK2gXRl018118@cooper.uws.edu.au> Message-ID: <41C68129.5060501@shaw.ca> Oh well in that case try the xmlhttp request object I think you may have to write a couple of varieties of Create Object depending on the OS and installed version of XML, if you have IE 5.5 or 6.0 installed you have the XML parser. I think CreateObject("Microsoft.XMLHTTP") should work through all versions of MS XML 2.0 through 4.0 but I can't remember. 'This code fires off request to specified WEB page 'returns html, asp, xml, or text page in text string then sent to file on disk 'Makes use of the XMLHTTPRequest object contained in msxml.dll. 'Check off Reference to MSXML Version 2.0 3.0 ' I am using latest Version of IE6 ' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc 'GrabTextFileFromWebSite "http://www5.brinkster.com/mconnelly/GenericDB/ordersSubFormform.txt" Public Sub GrabTextFileFromWebSite(strMyURL As String) 'Dim oHttp As Object Dim oHttp As New MSXML2.XMLHTTP40 Dim strFileName As String Dim intfile As Integer Dim bData() As Byte 'make use of the XMLHTTPRequest object contained in msxml.dll ' Set oHttp = CreateObject("MSXML2.XMLHTTP40") 'Set oHttp = GetObject("MSXML2.XMLHTTP30") 'oHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 'oHttp.setRequestHeader "Content-Type", "text/xml" 'oHttp.setRequestHeader "Content-Type", "multipart/form-data" 'oHttp.Open "GET", "http://www.amazon.com", False oHttp.Open "GET", strMyURL, False ' stick in your web page above , file type can be anything asp txt xml html jpeg zip etc. 'depends partially on content type oHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" oHttp.send 'check the feedback Debug.Print "Ready State =" & oHttp.readyState 'normal state =4 Debug.Print "Status =" & oHttp.status 'normal status = 200 Debug.Print "Status Text =" & oHttp.statusText ' Debug.Print oHttp.getAllResponseHeaders() 'Debug.Print "Response Body =" & oHttp.responseBody ' Debug.Print "Response Body =" & StrConv(oHttp.responseBody, vbUnicode) 'Debug.Print "Response Text =" & oHttp.responseText 'Parse response text string here or send to file 'create directory structure if not in existance ' CreateDirectoryStruct ("c:\Accesshtmlstealer") strFileName = "c:\Accesshtmlstealer\Amazon" strFileName = strFileName & Format(Now, "yyyymmddhhmmss") & ".txt" ' WriteFile strFileName, oHttp.responseText 'Temporary storage intfile = FreeFile() 'bData() = Inet1.OpenURL(strURL, icByteArray) ' The file will be saved in the temp folder with the name download.exe' Open "c:\temp\downloadA.zip" For Binary Access Write As #intfile 'Put #intfile, , bData() bData() = oHttp.responseBody Put #intfile, , bData() Close #intfile ' Exit Sub ErrorHandler: MsgBox Err.Description & vbCrLf & Err.Number ' Resume Next End Sub Darren DICK wrote: >Thanks to all who responded >I will keep away from the WinHTTP object >Some of my clients are still using Win 98 (And it's not even Second >Edition) > >Here is the scenario > >All I have is a text file that has a version number of that particular app. > >I want my apps to look for this text file - read the contents and see it >says 6.00 >Now, if the current version of the app that is looking at this text file >happens to be version 5.95 - >a download of a new version should occur. > >I just wanted to put this text file in a public place eg a web site > >I actually don't wanna download the text file - just read from it > >Simple right?? > >Anyway back to the drawing board > >Again many thanks to those who responded > >I will be using the download code from Gustav - it looks cool Thanks Gustav > >See y'all > >Darren > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Sunday, 19 December 2004 3:41 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2003:Connect to a text file at a web address > >Sob. But Microsoft initially said it was redistributable. But then I >didn't look for awhile, I have WinXP SP1 installed and the two versions >WinHttp 5.0 and 5.1 coexist side by side WinXP SP2 has another version. >For all the gory details >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/htt >p/what_s_new_in_winhttp_5_1.asp > >Stuart McLachlan wrote: > > > >>On 17 Dec 2004 at 9:25, MartyConnelly wrote: >> >> >> >> >> >>>You can also use this on Win2000 and higher This works for me using >>>WinHttp when the site uses basic authentication: >>>There are some other winhttp methods you can use to get around server >>>proxies etc. >>> >>> Dim objWinHttp as object >>> Dim strURL as string >>> Dim strHTML as string 'your returned file >>> >>> >>> strURL = "http://somesite.com" >>> Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") >>> >>> >>> >>> >>> >>You have to be a bit careful here and it's not redistributable because >>there are different versiosn of WinHttp out there. Any of the following >>may be required on W2K/XP systems ...Request.5 ...Request.5.1 or >>Request.5.1.1 you need to look at the exact version number when you create >> >> >the reference. > > >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Mon Dec 20 03:47:35 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 10:47:35 +0100 Subject: [AccessD] A2003:Connect to a text file at a web address Message-ID: Hi Darren > a download of a new version should occur. How? Wouldn't that be via FTP? If so, as you will have to fire up an FTP session for the update, I would say the simplest way would be to check the version via FTP too. One option is Windows Command Line FTP: http://www.pacific.net/~ken/software/ /gustav >>> d.dick at uws.edu.au 20-12-2004 03:42:26 >>> Thanks to all who responded I will keep away from the WinHTTP object Some of my clients are still using Win 98 (And it's not even Second Edition) Here is the scenario All I have is a text file that has a version number of that particular app. I want my apps to look for this text file - read the contents and see it says 6.00 Now, if the current version of the app that is looking at this text file happens to be version 5.95 - a download of a new version should occur. I just wanted to put this text file in a public place eg a web site I actually don't wanna download the text file - just read from it Simple right?? Anyway back to the drawing board Again many thanks to those who responded I will be using the download code from Gustav - it looks cool Thanks Gustav See y'all Darren From Gustav at cactus.dk Mon Dec 20 03:49:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 10:49:50 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Thanks Marty! Looks great. Next stop Canada. /gustav >>> martyconnelly at shaw.ca 20-12-2004 08:16:59 >>> If you are a train fan this one runs bi weekly every summer. I thought of it when I saw the movie trailers. Polar Bear Express from Cochrane to Mooseonee. http://www.polarbearexpress.ca/ Not many polar bears there, as they are generally around Churchill 500 further west Rode the train years ago one way, as we canoed up the Missinaibi river, took the train back. Don't do this route without a guide, unless you have done a lot of wilderness routes Portages around Thunderhouse falls are not marked correctly on topo maps and can kill you. When we did it in the early 70's, we were working off hand written notes by a previous canoeist. It is better marked now. http://www.myccr.com/canoedb/routeDetails.php?routeid=197 http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html At the bottom of page is a picture of one the scenic spots Conjuring House Falls on the Missinaibi http://travel.canoe.ca/che-mun/99list2.html Gustav Brock wrote: >Hi all > >Well, isn't it still Friday here? > >Anyway, I enjoyed The Polar Express yesterday in the original US >version in a major theater with a state-of-the-art sound system. >What a magnificent movie! >Anybody else: don't miss it. Indeed, if you are a fan of steam engines >(or just trains in general), this movie is a must - it'll take you >away. > >/gustav > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Mon Dec 20 05:00:17 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 20 Dec 2004 06:00:17 -0500 Subject: [AccessD] OT: The Polar Express References: Message-ID: ..think I'll pass on that particular canoe trip ...canoeing through Voyageur National Park was enough for me ...this one looks like its only for the true believers! :) William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Monday, December 20, 2004 4:49 AM Subject: Re: [AccessD] OT: The Polar Express > Thanks Marty! Looks great. Next stop Canada. > > /gustav > >>>> martyconnelly at shaw.ca 20-12-2004 08:16:59 >>> > If you are a train fan this one runs bi weekly every summer. > I thought of it when I saw the movie trailers. > Polar Bear Express from Cochrane to Mooseonee. > http://www.polarbearexpress.ca/ > Not many polar bears there, as they are generally around Churchill 500 > > further west > Rode the train years ago one way, as we canoed up the Missinaibi > river, > took the train back. > Don't do this route without a guide, unless you have done a lot of > wilderness routes > Portages around Thunderhouse falls are not marked correctly on topo > maps > and can kill you. > When we did it in the early 70's, we were working off hand written > notes > by a previous canoeist. > It is better marked now. > http://www.myccr.com/canoedb/routeDetails.php?routeid=197 > http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html > > At the bottom of page is a picture of one the scenic spots > Conjuring House Falls on the Missinaibi > http://travel.canoe.ca/che-mun/99list2.html > > Gustav Brock wrote: > >>Hi all >> >>Well, isn't it still Friday here? >> >>Anyway, I enjoyed The Polar Express yesterday in the original US >>version in a major theater with a state-of-the-art sound system. >>What a magnificent movie! >>Anybody else: don't miss it. Indeed, if you are a fan of steam > engines >>(or just trains in general), this movie is a must - it'll take you >>away. >> >>/gustav >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Mon Dec 20 05:29:09 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 20 Dec 2004 21:29:09 +1000 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C68129.5060501@shaw.ca> Message-ID: <41C74425.27163.2274D8B@lexacorp.com.pg> On 19 Dec 2004 at 23:37, MartyConnelly wrote: > ' I am using latest Version of IE6 > ' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc > And for the growing number of people like myself who use Firefox and have their firewall block IE from accessing the Internet? :-) -- Stuart From pcs at azizaz.com Mon Dec 20 09:34:51 2004 From: pcs at azizaz.com (Borge Hansen) Date: Tue, 21 Dec 2004 01:34:51 +1000 Subject: [AccessD] How to control an Update Query References: <41C74425.27163.2274D8B@lexacorp.com.pg> Message-ID: <008d01c4e6a9$72bd0bf0$fa10a8c0@Albatross> I have a table and a query : tblContactSource_Merged ::1 to many:: qsystblContactSource I am updating a memo field in the table with data from the query - one line in the memofield for each related record in the query. The query is sorted ascending on the UFN (Unique File Number) and the SCtgy (text field). This is how the update query is structured : ******** UPDATE tblContactSource_Merged INNER JOIN qsystblContactSource ON tblContactSource_Merged.UFN = qsystblContactSource.UFN SET tblContactSource_Merged.Source_Merged = IIf(Len([tblContactSource_Merged].[Source_Merged])>0,[tblContactSource_Merge d].[Source_Merged] & " " & [qsystblContactSource].[SCtgy] & " >> " & [qsystblContactSource].[SCtgySpecific] & " >> " & [qsystblContactSource].[SCtgyDegree] & " >> " & [qsystblContactSource].[SCtgyDegreeYear],[qsystblContactSource].[SCtgy] & " >> " & [qsystblContactSource].[SCtgySpecific] & " >> " & [qsystblContactSource].[SCtgyDegree] & " >> " & [qsystblContactSource].[SCtgyDegreeYear]), qsystblContactSource.SelectFlag = Yes WHERE (((qsystblContactSource.SelectFlag)=No)); ******** It's being run as an action query (docmd.openquery "queryname") I expected that the data from the query would be written into the memo field in the order the query is sorted. However, this is not happening. So my question is : Is it possible, and if so hoouuuwwww? PS ... the & " " & holds the linebreak in the memofield being updated. (As an aside, I've only found an action query to work when it comes to inserting a linebreak like this. I have yet to find a way to structure a linebreak in an SQL string in vba code. Is that possible? I've tried vbCRLF - doesn't seem to work) Thanks, Borge --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 From ssharkins at bellsouth.net Mon Dec 20 09:37:48 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 20 Dec 2004 10:37:48 -0500 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C74425.27163.2274D8B@lexacorp.com.pg> Message-ID: <20041220153753.FJWZ2130.imf25aec.mail.bellsouth.net@SUSANONE> I'm probably getting into this too late to really be of help -- probably don't understand the actual problem. There's an API that will return an exe file's version number. Would that help? Susan H. On 19 Dec 2004 at 23:37, MartyConnelly wrote: > ' I am using latest Version of IE6 > ' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc > And for the growing number of people like myself who use Firefox and have their firewall block IE from accessing the Internet? :-) From Gustav at cactus.dk Mon Dec 20 09:56:41 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 16:56:41 +0100 Subject: [AccessD] How to control an Update Query Message-ID: Hi Borge What are the ">>" signs supposed to do? /gustav From cfoust at infostatsystems.com Mon Dec 20 10:35:13 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Dec 2004 08:35:13 -0800 Subject: [AccessD] OT: The Polar Express Message-ID: Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Mon Dec 20 10:51:55 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 20 Dec 2004 11:51:55 -0500 Subject: [AccessD] OT: The Polar Express Message-ID: That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Dec 20 11:07:23 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 18:07:23 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi Charlotte I had hoped no one would mention the 3-D. Closest theater from here is London which is a 1? hours flight. Argh. /gustav >>> cfoust at infostatsystems.com 20-12-2004 17:35:13 >>> Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From Gustav at cactus.dk Mon Dec 20 11:11:34 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 18:11:34 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi 65 Some of these have lost their fantasy and enthusiasm. I have for a long time been of the opinion that programmers have a better fantasy than many other people. By the way, the film received generally a 5 out of 6 rating here. /gustav >>> cyx5 at cdc.gov 20-12-2004 17:51:55 >>> That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From cfoust at infostatsystems.com Mon Dec 20 11:07:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Dec 2004 09:07:19 -0800 Subject: [AccessD] OT: The Polar Express Message-ID: Well, the theater has been consistently sold out, and the children in the audience were mesmerized, while the adults found it both delightful and technically fascinating. Creepy? There is a ghost of sorts, but the kids didn't seem to mind him, and he was more in the nature of the cheshire cat than anything else. I usually disagree with critics, so I tend to ignore them. Trust me on this, it is a wonderful film, critics notwithstanding. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Monday, December 20, 2004 8:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Mon Dec 20 11:15:54 2004 From: john at winhaven.net (John Bartow) Date: Mon, 20 Dec 2004 11:15:54 -0600 Subject: [AccessD] OT: The Polar Express In-Reply-To: Message-ID: My wife, an elementary school teacher, has read this book to her kids for years. She says the book is very short and has wondered how they made a full length movie of it. I guess we'll have to go and see :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, December 20, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Dec 20 11:46:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 18:46:50 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi John Oh, you should. By the way, if you like Flash sites visit the official site: http://polarexpressmovie.warnerbros.com/ and click Enter Flash Site. Beautiful work. Don't miss the far right choice which will lead you into North Pole City. /gustav >>> john at winhaven.net 20-12-2004 18:15:54 >>> My wife, an elementary school teacher, has read this book to her kids for years. She says the book is very short and has wondered how they made a full length movie of it. I guess we'll have to go and see :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, December 20, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From dw-murphy at cox.net Mon Dec 20 11:57:20 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 20 Dec 2004 09:57:20 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <200412200242.iBK2gXRl018118@cooper.uws.edu.au> Message-ID: <000001c4e6bd$5d47a3c0$8500a8c0@murphyf3vdfepi> Hi Darin, I am getting into this late, but have you looked at the WinInet api? It works with Windows 98 and above and is native to windows. I use this control to import report data from a web site into client access databases. I have an asp page that generates a page that is just a comma delimited text file with a .asp extension, WinInet calls the page and loads it into a buffer which I read out. The page does have the normal page header but this is easy to strip off. In your case you could just create a simple html page with the version # and put that on your site. I have some reference sites around somewhere if you are interested I'll dig them out and send offline. Most of what I found was for VB but it works fine in VBA. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Sunday, December 19, 2004 6:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Connect to a text file at a web address Thanks to all who responded I will keep away from the WinHTTP object Some of my clients are still using Win 98 (And it's not even Second Edition) Here is the scenario All I have is a text file that has a version number of that particular app. I want my apps to look for this text file - read the contents and see it says 6.00 Now, if the current version of the app that is looking at this text file happens to be version 5.95 - a download of a new version should occur. I just wanted to put this text file in a public place eg a web site I actually don't wanna download the text file - just read from it Simple right?? Anyway back to the drawing board Again many thanks to those who responded I will be using the download code from Gustav - it looks cool Thanks Gustav See y'all Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, 19 December 2004 3:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Connect to a text file at a web address Sob. But Microsoft initially said it was redistributable. But then I didn't look for awhile, I have WinXP SP1 installed and the two versions WinHttp 5.0 and 5.1 coexist side by side WinXP SP2 has another version. For all the gory details http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/htt p/what_s_new_in_winhttp_5_1.asp Stuart McLachlan wrote: >On 17 Dec 2004 at 9:25, MartyConnelly wrote: > > > >>You can also use this on Win2000 and higher This works for me using >>WinHttp when the site uses basic authentication: >>There are some other winhttp methods you can use to get around server >>proxies etc. >> >> Dim objWinHttp as object >> Dim strURL as string >> Dim strHTML as string 'your returned file >> >> >> strURL = "http://somesite.com" >> Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") >> >> >> > >You have to be a bit careful here and it's not redistributable because >there are different versiosn of WinHttp out there. Any of the following >may be required on W2K/XP systems ...Request.5 ...Request.5.1 or >Request.5.1.1 you need to look at the exact version number when you create the reference. > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Mon Dec 20 12:00:04 2004 From: john at winhaven.net (John Bartow) Date: Mon, 20 Dec 2004 12:00:04 -0600 Subject: [AccessD] OT: The Polar Express In-Reply-To: Message-ID: Hi Gustav, Thanks, I'll go to the site with my wife tonight and check it out. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Monday, December 20, 2004 11:47 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT: The Polar Express Hi John Oh, you should. By the way, if you like Flash sites visit the official site: http://polarexpressmovie.warnerbros.com/ and click Enter Flash Site. Beautiful work. Don't miss the far right choice which will lead you into North Pole City. /gustav >>> john at winhaven.net 20-12-2004 18:15:54 >>> My wife, an elementary school teacher, has read this book to her kids for years. She says the book is very short and has wondered how they made a full length movie of it. I guess we'll have to go and see :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, December 20, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From normkara at wans.net Mon Dec 20 12:05:57 2004 From: normkara at wans.net (Norm) Date: Mon, 20 Dec 2004 13:05:57 -0500 Subject: [AccessD] OT: The Polar Express References: Message-ID: <00e101c4e6be$9158d7f0$0300a8c0@NORMLAPTOP> Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" Norm -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From prosoft6 at hotmail.com Mon Dec 20 12:12:21 2004 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 20 Dec 2004 13:12:21 -0500 Subject: [AccessD] OT: The Polar Express In-Reply-To: Message-ID: Wow. A beautiful site. Thank you for sharing the link. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 108 Franklin Street Watertown, NY 13601 (315) 785-0319 www.pro-soft.net From Mark.Mitsules at ngc.com Mon Dec 20 12:40:54 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Mon, 20 Dec 2004 13:40:54 -0500 Subject: [AccessD] OT: The Polar Express Message-ID: Karen, I read once that in the gaming world there is a theory that eventually the quest to make characters more lifelike will reach a point of diminishing returns. The theory suggests that as computer-generated characters become more "realistic", humans will no longer be able to "put themselves into the story", but rather begin to focus more and more on the subtle shortcomings of the rendering. The suggestion of "creepy" may be the beginnings of this process...who knows. Mark -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Monday, December 20, 2004 11:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Dec 20 12:58:55 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 20 Dec 2004 10:58:55 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address References: <41C74425.27163.2274D8B@lexacorp.com.pg> Message-ID: <41C720EF.6030604@shaw.ca> Well there is the Inet Internet transfer control not sure if it is attached to IE dll's or you could try Private Declare Function URLDownloadToFile Lib "urlmon" Alias _ "URLDownloadToFileA" (ByVal pCaller As Long, _ ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As _ Long, ByVal lpfnCB As Long) As Long Sub tryurl() Dim retVal As Long Dim URL As String Dim LocalFileName As String ' change this line to the URL of the file: URL = "http://www5.brinkster.com/mconnelly/GenericDB/ordersSubFormform.txt" ' change this line to the local filename to save the file as: LocalFileName = "c:\temp\testform.txt" retVal = URLDownloadToFile(0, URL, LocalFileName, 0, 0) If retVal = 0 Then Debug.Print "File received." Else Debug.Print "Unable to download file." End If End Sub Stuart McLachlan wrote: >On 19 Dec 2004 at 23:37, MartyConnelly wrote: > > > >>' I am using latest Version of IE6 >>' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc >> >> >> > >And for the growing number of people like myself who use Firefox and have >their firewall block IE from accessing the Internet? :-) > > > -- Marty Connelly Victoria, B.C. Canada From ssharkins at bellsouth.net Mon Dec 20 14:25:01 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 20 Dec 2004 15:25:01 -0500 Subject: [AccessD] OT: The Polar Express In-Reply-To: <00e101c4e6be$9158d7f0$0300a8c0@NORMLAPTOP> Message-ID: <20041220202524.VTOH2402.imf17aec.mail.bellsouth.net@SUSANONE> I believe -- always have. When you stop believing, you start getting underwear for Christmas. Susan H. Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" From cfoust at infostatsystems.com Mon Dec 20 14:42:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Dec 2004 12:42:39 -0800 Subject: [AccessD] OT: The Polar Express Message-ID: ROTFL Is THAT what does it?? LOL Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, December 20, 2004 12:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: The Polar Express I believe -- always have. When you stop believing, you start getting underwear for Christmas. Susan H. Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Dec 20 16:09:55 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 20 Dec 2004 17:09:55 -0500 Subject: [AccessD] OT: The Polar Express In-Reply-To: Message-ID: <20041220221006.EOKT2054.imf21aec.mail.bellsouth.net@SUSANONE> I can hear the collective murmur or all accessd listers quietly chanting, "I believe! I believe! I believe!" ;) Susan H. ROTFL Is THAT what does it?? LOL From pcs at azizaz.com Mon Dec 20 16:53:04 2004 From: pcs at azizaz.com (Borge Hansen) Date: Tue, 21 Dec 2004 08:53:04 +1000 Subject: [AccessD] How to control an Update Query References: Message-ID: <000e01c4e6e6$aaf36180$fa10a8c0@Albatross> Gustav, they are just visual delimeters added to the data placed in the memo field... pretty ugly ehh? Borge ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 21, 2004 1:56 AM Subject: Re: [AccessD] How to control an Update Query > Hi Borge > > What are the ">>" signs supposed to do? > > /gustav > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From d.dick at uws.edu.au Mon Dec 20 17:38:46 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 21 Dec 2004 10:38:46 +1100 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C720EF.6030604@shaw.ca> Message-ID: <200412202338.iBKNcsRm010304@cooper.uws.edu.au> Hi all I am most grateful for all the suggestions And thanks to all who shared their code (Gotta love this list) >From what I can see I can't actually do what I set out to do That is - use the link table wizard to 'connect' to a text file on a web site. What I will do is (as Stuart Suggested) just FTP the text file from my website to the back end location (I have a code routine in the back end for autoupdating) And set up the link table wizard to that FTP'd text file and read the version from that And then run the necessary code if a newer version exists. Many many thanks again to all who responded DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, 21 December 2004 5:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Connect to a text file at a web address Well there is the Inet Internet transfer control not sure if it is attached to IE dll's or you could try Private Declare Function URLDownloadToFile Lib "urlmon" Alias _ "URLDownloadToFileA" (ByVal pCaller As Long, _ ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As _ Long, ByVal lpfnCB As Long) As Long Sub tryurl() Dim retVal As Long Dim URL As String Dim LocalFileName As String ' change this line to the URL of the file: URL = "http://www5.brinkster.com/mconnelly/GenericDB/ordersSubFormform.txt" ' change this line to the local filename to save the file as: LocalFileName = "c:\temp\testform.txt" retVal = URLDownloadToFile(0, URL, LocalFileName, 0, 0) If retVal = 0 Then Debug.Print "File received." Else Debug.Print "Unable to download file." End If End Sub Stuart McLachlan wrote: >On 19 Dec 2004 at 23:37, MartyConnelly wrote: > > > >>' I am using latest Version of IE6 >>' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc >> >> >> > >And for the growing number of people like myself who use Firefox and >have their firewall block IE from accessing the Internet? :-) > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Tue Dec 21 03:18:13 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 21 Dec 2004 09:18:13 -0000 Subject: [AccessD] OT: The Polar Express Message-ID: <61F915314798D311A2F800A0C9C8318805CED941@dibble.observatory.donnslaw.co.uk> I believe... :) (and I'm letting the OT run... it's Christmas and the list is quiet) Roz -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: 20 December 2004 22:10 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: The Polar Express I can hear the collective murmur or all accessd listers quietly chanting, "I believe! I believe! I believe!" ;) Susan H. ROTFL Is THAT what does it?? LOL -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From Gustav at cactus.dk Tue Dec 21 04:36:33 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Dec 2004 11:36:33 +0100 Subject: [AccessD] How to control an Update Query Message-ID: Hi Borge Oh, they completely confused me. Now, what was your question? /gustav >>> pcs at azizaz.com 20-12-2004 23:53:04 >>> Gustav, they are just visual delimeters added to the data placed in the memo field... pretty ugly ehh? Borge ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 21, 2004 1:56 AM Subject: Re: [AccessD] How to control an Update Query > Hi Borge > > What are the ">>" signs supposed to do? > > /gustav From Gustav at cactus.dk Tue Dec 21 04:48:37 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Dec 2004 11:48:37 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi Susan Oh, never thought of it this way. What a scary picture. /gustav >>> ssharkins at bellsouth.net 20-12-2004 21:25:01 >>> I believe -- always have. When you stop believing, you start getting underwear for Christmas. Susan H. Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Dec 21 04:28:20 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 21 Dec 2004 11:28:20 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: <20041221112817.8F685261864@smtp.nildram.co.uk> That's what I thought too. The list has been so quiet it was nice to see something, anything here. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: The Polar Express Date: 21/12/04 09:21 > I believe... > > :) > > (and I'm letting the OT run... it's Christmas and the list is quiet) > > Roz > > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: 20 December 2004 22:10 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT: The Polar Express > > > I can hear the collective murmur or all accessd listers quietly chanting, "I > believe! I believe! I believe!" ;) > > Susan H. > > ROTFL > Is THAT what does it?? LOL > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From accma at sympatico.ca Tue Dec 21 05:52:50 2004 From: accma at sympatico.ca (Annie Courchesne, CMA) Date: Tue, 21 Dec 2004 06:52:50 -0500 Subject: [AccessD] Using WinZip with Access Code Message-ID: Hi group, Is it possible to compress a file with winzip using access code (A2K)? Thanks! Annie Courchesne, CMA From stuart at lexacorp.com.pg Tue Dec 21 06:36:12 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 21 Dec 2004 22:36:12 +1000 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: Message-ID: <41C8A55C.30480.18E2B36@lexacorp.com.pg> On 21 Dec 2004 at 6:52, Annie Courchesne, CMA wrote: > Hi group, > > Is it possible to compress a file with winzip using access code (A2K)? > It is if you are using Winzip Ver 9 and download the Winzip Command Line Interface from http://www.winzip.com/prodpagecl.htm. Just shell out to WZZIP.EXE with the appropriate parameters. The WinZip Command Line Support Add-On provides a command line interface that gives you the power of WinZip without the usual WinZip graphical user interface. It allows you to use WinZip directly from the command prompt and from batch (.BAT) files and script languages, making it ideal for automating repetitive tasks. An extensive set of command line options gives you pinpoint control over WinZip's actions. And, in automated environments, end-users need not know anything about how to use WinZip. -- Stuart From paul.hartland at isharp.co.uk Tue Dec 21 06:45:43 2004 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Tue, 21 Dec 2004 12:45:43 -0000 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: <668C5C868606C641857281147C4689365AEA0B@primary.orridge.co.uk> Message-ID: <668C5C868606C641857281147C46893655279D@primary.orridge.co.uk> As long as you register the product of course -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 21 December 2004 12:36 To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Using WinZip with Access Code On 21 Dec 2004 at 6:52, Annie Courchesne, CMA wrote: > Hi group, > > Is it possible to compress a file with winzip using access code (A2K)? > It is if you are using Winzip Ver 9 and download the Winzip Command Line Interface from http://www.winzip.com/prodpagecl.htm. Just shell out to WZZIP.EXE with the appropriate parameters. The WinZip Command Line Support Add-On provides a command line interface that gives you the power of WinZip without the usual WinZip graphical user interface. It allows you to use WinZip directly from the command prompt and from batch (.BAT) files and script languages, making it ideal for automating repetitive tasks. An extensive set of command line options gives you pinpoint control over WinZip's actions. And, in automated environments, end-users need not know anything about how to use WinZip. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accma at sympatico.ca Tue Dec 21 07:36:02 2004 From: accma at sympatico.ca (accma at sympatico.ca) Date: Tue, 21 Dec 2004 8:36:02 -0500 Subject: [AccessD] Using WinZip with Access Code Message-ID: <20041221133602.CYOM1825.tomts7-srv.bellnexxia.net@mxmta.bellnexxia.net> Great! I will try this! Thanks for the info and quick response! Annie Courchesne, CMA > > De: "Stuart McLachlan" > Date: 2004/12/21 mar. AM 07:36:12 GMT-05:00 > ?: Access Developers discussion and problem > solving > Objet: Re: [AccessD] Using WinZip with Access Code > > On 21 Dec 2004 at 6:52, Annie Courchesne, CMA wrote: > > > Hi group, > > > > Is it possible to compress a file with winzip using access code (A2K)? > > > > It is if you are using Winzip Ver 9 and download the Winzip Command Line > Interface from http://www.winzip.com/prodpagecl.htm. Just shell out to > WZZIP.EXE with the appropriate parameters. > > > The WinZip Command Line Support Add-On provides a command line interface > that gives you the power of WinZip without the usual WinZip graphical user > interface. It allows you to use WinZip directly from the command prompt and > from batch (.BAT) files and script languages, making it ideal for > automating repetitive tasks. An extensive set of command line options gives > you pinpoint control over WinZip's actions. And, in automated environments, > end-users need not know anything about how to use WinZip. > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From actebs at actebs.com.au Tue Dec 21 07:42:06 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 22 Dec 2004 00:42:06 +1100 Subject: [AccessD] Proper Case Message-ID: <2025BB6F17FCB54791F23CD505583328088775@starfleet.unknown.local> Hi Everyone, Does anyone have a some proper case code that looks after things like McDonald etc? Thanks and a very Merry Christmas to one and all... Regards Vlad From jwcolby at colbyconsulting.com Tue Dec 21 07:53:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 21 Dec 2004 08:53:03 -0500 Subject: [AccessD] Proper Case In-Reply-To: <2025BB6F17FCB54791F23CD505583328088775@starfleet.unknown.local> Message-ID: <000901c4e764$68342450$677aa8c0@ColbyM6805> There's one on my site. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Tuesday, December 21, 2004 8:42 AM To: Access Group (E-mail) Subject: [AccessD] Proper Case Hi Everyone, Does anyone have a some proper case code that looks after things like McDonald etc? Thanks and a very Merry Christmas to one and all... Regards Vlad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Tue Dec 21 08:00:43 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 21 Dec 2004 08:00:43 -0600 Subject: [AccessD] OT: The Polar Express Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0248587E@natexch.jenkens.com> I guess that depends on the underwear (evil grin!) Debbie -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, December 21, 2004 4:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT: The Polar Express Hi Susan Oh, never thought of it this way. What a scary picture. /gustav >>> ssharkins at bellsouth.net 20-12-2004 21:25:01 >>> I believe -- always have. When you stop believing, you start getting underwear for Christmas. Susan H. Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From Jdemarco at hudsonhealthplan.org Tue Dec 21 07:59:38 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 21 Dec 2004 08:59:38 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D297A@TTNEXCHCL2.hshhp.com> Francisco, Sorry I've been out of the office for a bit. I think you'll need to access the open args for each form through the collection object. So in a sense even though we're still referring to them as openargs they really are just data you can grab as you need them. The collection will need to dimmed as global then. 'to access the string in "openargs" from collection Dim sText as String sText = MyCollection.Item("myFormID").OpenArgs Does that make sense? Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Thursday, December 16, 2004 4:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited ok I fixed the problems.. I had to make the initial call to the function call the new form as such: Dim frm As Access.Form 20 Set frm = New Form_frm_004C_MyMultiFORM 30 OpenMultiForm frm, "1|" this yields a new hWnd othewisie the previous code: 30 OpenMultiForm Form_frm_004C_MyMultiFORM, "1|" yields the same hWnd everytime... now for part 2 of the problem... when the form loads it calls it's Load Event, but since the open args are null, how do I pass them back?... or do I need to rewrite the onload procedure again? Thanks, On Thu, 16 Dec 2004 15:53:52 -0500, Jim DeMarco wrote: > Change BaseClassName to clsMultiForms (if my memory is correct). The name of the class you're storing in the collection. > > I believe Hwnd is unique as well. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Thursday, December 16, 2004 3:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Thanks for all the help you've been giving me... I split my class in > to 2, the MultiForms class has the Form object along w/ the OpenArgs, > this is where I'll add the On Close Event so it removes the form from > the collection as well > > please explain the name for BaseClassName? > > since the i've split the classes I have > > clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) > then the clsMultiInstance (which contains the collection) > > and I created a Public Variable on the module as well > > I thought the hWnd was diffrent on each call... maybenot? > > On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco > wrote: > > I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). > > > > Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. > > > > BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: > > > > Function Exists(strKey As String) As Boolean > > 'returns true if the key value (not index) exists in the collection > > Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object > > > > On Error GoTo Exists_Err > > > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > > Exists = True > > > > Exit_Function: > > Set objTemp = Nothing > > Exit Function > > > > Exists_Err: > > If Err.Number = 5 Then > > Exists = False > > Else > > 'further error handling here for other error types > > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > > End If > > Resume Exit_Function > > End Function > > > > Jim D. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 5:47 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > This code works for displaying "one" form... but it does not give me a > > tolorance to opening a 2nd Form... :(, the original code worked fine > > for many forms... Ideas? > > > > it could be the way that I'm calling it, (such as > > > > Dim MultiForms As clsMultiInstance > > > > If MultiForms Is Nothing Then > > Set MultiForms = New clsMultiInstance > > End If > > MultiForms.Add frm, frm.hWnd, OpenArgs > > > > ------------------------------ > > VERSION 1.0 CLASS > > BEGIN > > MultiUse = -1 'True > > END > > Attribute VB_Name = "clsMultiInstance" > > Attribute VB_GlobalNameSpace = False > > Attribute VB_Creatable = False > > Attribute VB_PredeclaredId = False > > Attribute VB_Exposed = False > > Option Compare Database > > 'Multi Instance Multiple Forms > > > > Dim mForms As Collection > > Private colForm As Access.Form > > Private colhWnd As String > > Private colOpenArgs As String > > Public Property Let Form(frm As Access.Form) > > Set colForm = frm > > End Property > > Public Property Get Form() As Access.Form > > Set Form = colForm > > End Property > > Public Property Let hWnd(hWnd As String) > > colhWnd = hWnd > > End Property > > Public Property Get strhWnd() As String > > hWnd = colhWnd > > End Property > > Public Property Let OpenArgs(Args As String) > > colOpenArgs = Args > > End Property > > Public Property Get OpenArgs() As String > > OpenArgs = colOpenArgs > > End Property > > > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > > Optional Key As Variant) > > Dim x As clsMultiInstance > > Set x = New clsMultiInstance > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > x.Form.Visible = True > > > > 'On a 2nd call it errors out from here... > > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > > > End Sub > > Sub Remove(hWnd As String) > > 'Purpose: Remove this instance from the collection. > > Dim obj As Object 'Object in Collection > > Dim blnRemove As Boolean 'Flag to remove it. > > > > 'Check if this instance is in the collection. > > ' (It won't be if form was opened directly, or code was reset.) > > For Each obj In mForms > > If obj.hWnd = hWnd Then > > blnRemove = True > > Exit For > > End If > > Next > > 'Deassign the object before removing from collection. > > Set obj = Nothing > > If blnRemove Then > > mForms.Remove CStr(hWnd) > > End If > > End Sub > > Function Count() As Integer > > mForms.Count > > End Function > > Function Item(index As Variant) As clsMultiInstance > > Set Item = mForms.Item(index) > > End Function > > Public Function Term() > > 'Purpose: Close all instances in the collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = mForms.Count > > For lngI = 1 To lngKt > > mForms.Remove 1 > > Next > > Set mForms = Nothing > > End Function > > > > Private Sub Class_Initialize() > > Set mForms = New Collection > > End Sub > > > > ---------------END CLASS---------- > > > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > > wrote: > > > Makes sense. I was typing from (lack of) memory!! > > > > > > Hope it works out. > > > > > > Jim > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 4:03 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > > > Jim that sounds great (re: more code :D), > > > > > > I was wondering on this line: > > > > > > m_col.add(x,hWnd) > > > > > > access complains about an '=' > > > so I re-wrote it as m_col.add x, hWnd > > > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > > wrote: > > > > Francisco, > > > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > > > First a class to hold the data you're trying to use: > > > > > > > > 'MyClass > > > > > > > > Public Property Let Form(frm as Access.Form)... > > > > Public Property Let hWnd(hWnd as String)... > > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > > > > > dim m_col as Collection > > > > > > > > 'MyCollectionClass > > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > > dim x as MyClass > > > > Sex x = new MyClass > > > > x.Form = frm > > > > x.hWnd = hWnd > > > > x.OpenArgs = OpenArgs > > > > m_col.add(x,hWnd) > > > > End Sub > > > > > > > > Function Item(index As Variant) As MyClass > > > > Set Item = m_col.Item(index) > > > > End Function > > > > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > > To store the values > > > > > > > > Dim MyCol as MyCollectionClass > > > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > > > > To retrieve them: > > > > > > > > Dim MyStringArg As String > > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > > 'do something with MyStringArg > > > > > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > > > HTH, > > > > > > > > Jim DeMarco > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > > Tapia > > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > > To: Access Developers discussion and problem solving > > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > > > So I have the following code in a public module.. > > > > > > > > the purpose is to have more than one instance of the form where end > > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > > > the following code works really well and in fact I can do what I need > > > > with it, except passing openargs... I figure I can use a workaround > > > > unless someone here knows of a better way? > > > > > > > > thanks, > > > > > > > > ---CODE SNIP------------ > > > > Option Compare Database > > > > Option Explicit > > > > 'Author: Allen J Browne, January 2000 > > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > > > Function OpenAClient() > > > > 'Purpose: Open an independent instance of form frmClient. > > > > Dim frm As Form > > > > > > > > 'Open a new instance, show it, and set a caption. > > > > Set frm = New Form_frmClient > > > > frm.Visible = True > > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > > > 'Append it to our collection. > > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > > Set frm = Nothing > > > > End Function > > > > > > > > Function CloseAllClients() > > > > 'Purpose: Close all instances in the clnClient collection. > > > > 'Note: Leaves the copy opened directly from database window. > > > > Dim lngKt As Long > > > > Dim lngI As Long > > > > > > > > lngKt = clnClient.Count > > > > For lngI = 1 To lngKt > > > > clnClient.Remove 1 > > > > Next > > > > End Function > > > > ---END CODE SNIP----------------- > > > -- > > -- > > -Francisco > > http://pcthis.blogspot.com | PC news with out the jargon! > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > *********************************************************************************** > > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > > *********************************************************************************** > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at colbyconsulting.com Tue Dec 21 08:05:37 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 21 Dec 2004 09:05:37 -0500 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: Message-ID: <000a01c4e766$29b4ed20$677aa8c0@ColbyM6805> There is a freeware class that zips and unzips files from inside of Access. Uses withevents if you desire. Very nice class/lib. If you are interested I'll bang out a demo. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, CMA Sent: Tuesday, December 21, 2004 6:53 AM To: Accessd Subject: [AccessD] Using WinZip with Access Code Hi group, Is it possible to compress a file with winzip using access code (A2K)? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mgauk at btconnect.com Tue Dec 21 08:11:19 2004 From: mgauk at btconnect.com (Max Wanadoo) Date: Tue, 21 Dec 2004 14:11:19 -0000 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: <000a01c4e766$29b4ed20$677aa8c0@ColbyM6805> Message-ID: <200412211412.iBLECIl12814@databaseadvisors.com> If possible, I would appreciate having a look at this Class. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 21 December 2004 14:06 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Using WinZip with Access Code There is a freeware class that zips and unzips files from inside of Access. Uses withevents if you desire. Very nice class/lib. If you are interested I'll bang out a demo. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, CMA Sent: Tuesday, December 21, 2004 6:53 AM To: Accessd Subject: [AccessD] Using WinZip with Access Code Hi group, Is it possible to compress a file with winzip using access code (A2K)? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.818 / Virus Database: 556 - Release Date: 17/12/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.818 / Virus Database: 556 - Release Date: 17/12/2004 From dejpolsys at hotmail.com Tue Dec 21 08:30:57 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 21 Dec 2004 09:30:57 -0500 Subject: [AccessD] Proper Case References: <2025BB6F17FCB54791F23CD505583328088775@starfleet.unknown.local> Message-ID: ..JC has a very good PC module by Dave Bell on his site (I assume its still there) but I think Dave updated the code recently to incorporate some of the new stuff in XP/2k3 ...might want to look around for the latest version ..hth :) William Hindman ----- Original Message ----- From: "ACTEBS" To: "Access Group (E-mail)" Sent: Tuesday, December 21, 2004 8:42 AM Subject: [AccessD] Proper Case > Hi Everyone, > > Does anyone have a some proper case code that looks after things like > McDonald etc? > > Thanks and a very Merry Christmas to one and all... > > Regards > Vlad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Tue Dec 21 08:32:33 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 21 Dec 2004 09:32:33 -0500 Subject: [AccessD] Using WinZip with Access Code References: <000a01c4e766$29b4ed20$677aa8c0@ColbyM6805> Message-ID: ..you are such a tease ...just post it already, eh ...or point us to a dl :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 21, 2004 9:05 AM Subject: RE: [AccessD] Using WinZip with Access Code > There is a freeware class that zips and unzips files from inside of > Access. > Uses withevents if you desire. Very nice class/lib. > > If you are interested I'll bang out a demo. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie > Courchesne, > CMA > Sent: Tuesday, December 21, 2004 6:53 AM > To: Accessd > Subject: [AccessD] Using WinZip with Access Code > > > Hi group, > > Is it possible to compress a file with winzip using access code (A2K)? > > Thanks! > > > > Annie Courchesne, CMA > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Paul.Rogers at SummitMedia.co.uk Tue Dec 21 09:13:02 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Tue, 21 Dec 2004 15:13:02 -0000 Subject: [AccessD] Simple route to decimal places? Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F450@s003.wolds.summitmedia.co.uk> How can I tell a percentage arriving from a query that I don't need six or seven decimal places, please? One place would be perfect. Cheers paul From jwcolby at colbyconsulting.com Tue Dec 21 09:18:49 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 21 Dec 2004 10:18:49 -0500 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: Message-ID: <001401c4e770$626f47f0$677aa8c0@ColbyM6805> >..you are such a tease ...just post it already, eh ...or point us to a dl Hey, I'm not spending time on a demo if everyone's just going to use the shell thing. I have it embedded as a service in my framework so it's not like I go import code when I want to use it. For those able to just figure this stuff out, there is a file vbzip10.zip on a ftp directory: ftp://www.colbyconsulting.com/ftproot/AccessD/ UserName: AccessD Password: AccessD It contains the two basic modules, two classes and two matching DLLs for zipping and unzipping. The classes are already set up to allow placing then in a library and instantiating them from outside the library. I will put it on my ToDo list for getting a demo working. I have a client deadline that I really must attend to before I can take the time to do the demo. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, December 21, 2004 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using WinZip with Access Code ..you are such a tease ...just post it already, eh ...or point us to a dl :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 21, 2004 9:05 AM Subject: RE: [AccessD] Using WinZip with Access Code > There is a freeware class that zips and unzips files from inside of > Access. > Uses withevents if you desire. Very nice class/lib. > > If you are interested I'll bang out a demo. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie > Courchesne, > CMA > Sent: Tuesday, December 21, 2004 6:53 AM > To: Accessd > Subject: [AccessD] Using WinZip with Access Code > > > Hi group, > > Is it possible to compress a file with winzip using access code (A2K)? > > Thanks! > > > > Annie Courchesne, CMA > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 21 09:20:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 21 Dec 2004 10:20:43 -0500 Subject: [AccessD] FoxFire and FTP Message-ID: <001501c4e770$a3603080$677aa8c0@ColbyM6805> Does anyone know how to get FoxFire to prompt with a username / password if necessary. On my machine it just throws an error if a password is required. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From ssharkins at bellsouth.net Tue Dec 21 09:35:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 21 Dec 2004 10:35:21 -0500 Subject: [AccessD] OT: The Polar Express In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0248587E@natexch.jenkens.com> Message-ID: <20041221153521.YQAG1992.imf16aec.mail.bellsouth.net@SUSANONE> Well, I originally said something about that, but then I deleted it -- didn't want to get fussed at. ;) You do realize that the underwear you're talking about didn't come from Santa don't you? There's another guy out there known as Sugar Daddy... he leaves that underwear. :) Susan H. I guess that depends on the underwear (evil grin!) From Paul.Rogers at SummitMedia.co.uk Tue Dec 21 09:45:58 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Tue, 21 Dec 2004 15:45:58 -0000 Subject: [AccessD] Decimal places Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F451@s003.wolds.summitmedia.co.uk> Sorry, gurus, I must have been asleep. I've remembered, of course. Many apologies. cheers paul -----Original Message----- From: Paul Rodgers [mailto:Paul.Rogers at summitmedia.co.uk] Sent: 21 December 2004 15:13 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Simple route to decimal places? How can I tell a percentage arriving from a query that I don't need six or seven decimal places, please? One place would be perfect. Cheers paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kaupca at chevrontexaco.com Tue Dec 21 10:18:31 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Tue, 21 Dec 2004 10:18:31 -0600 Subject: [AccessD] Alter table and alter column Message-ID: <1375769556091B4DAABC159F944CA1BB07A34C@bocnte2k4.hou150.chevrontexaco.net> I am using the following code to change the data type of one field in a table. Can I change more than one in a single SQL statement? Function ChangeDataType() Dim cnn As ADODB.Connection Dim strSQL As String Set cnn = CurrentProject.Connection strSQL = "ALTER TABLE [tbl_30da] ALTER COLUMN GTM single" cnn.Execute strSQL End Function Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From serbach at new.rr.com Tue Dec 21 11:28:03 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 21 Dec 2004 11:28:03 -0600 Subject: [AccessD] OT: The Polar Express In-Reply-To: References: Message-ID: <20041221112803.88901541.serbach@new.rr.com> John, Take it from me, a fellow Wisconsinite, the movie is magnificent. Scary? I would say deliciously so. There are sequences during the film that would be absolutely frightening if it were live action; but the confidence projected by the conductor (Tom Hanks) makes it all right. I could see why it cost $160 million to film. I only wish it were a blockbuster at the box office. It's been steady, but it's only pulled in around $130 million in about 6 weeks. Too bad. It's a masterpiece. Steve Erbach Neenah, WI > ------------Original Message------------ > From: John Bartow > To: "Access Developers discussion and problem solving" > Date: Mon, Dec-20-2004 12:02 PM > Subject: RE: [AccessD] OT: The Polar Express > > Hi Gustav, > Thanks, I'll go to the site with my wife tonight and check it out. > > John From john at winhaven.net Tue Dec 21 12:19:26 2004 From: john at winhaven.net (John Bartow) Date: Tue, 21 Dec 2004 12:19:26 -0600 Subject: [AccessD] corruption Message-ID: <200412211223149.SM00767@ScuzzPaq> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? John B. From Gustav at cactus.dk Tue Dec 21 13:21:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Dec 2004 20:21:50 +0100 Subject: [AccessD] corruption Message-ID: Hi John Recently I noticed this but I have no references: http://www.securitylab.ru/tools/50346.html /gustav >>> john at winhaven.net 21-12-2004 19:19:26 >>> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? From markamatte at hotmail.com Tue Dec 21 14:16:19 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 21 Dec 2004 20:16:19 +0000 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Hello All, I'm pretty sure this is a lost cause...but I just received an A97 db...there is no password...but I don't have permission to make any changes(tables,queries...or even view the macros). My guess is I need to know the UserGroup and PID that was used to change/create the permissions. Is this correct...and are there any workarounds? Thanks, Mark From john at winhaven.net Tue Dec 21 14:23:33 2004 From: john at winhaven.net (John Bartow) Date: Tue, 21 Dec 2004 14:23:33 -0600 Subject: [AccessD] corruption In-Reply-To: Message-ID: <200412211428192.SM00767@ScuzzPaq> Thanks Gustav, I tried this and a couple of other downloads and data recovery services I googled up. Nothing/no one recovered much of it. The main table had well over 20,000 records in it and the most anything recovered was 17. I will now have them re-enter a couple of hundreds records. Oh well, it drove home my point about testing backup jobs once in awhile to make sure they are valid. (They thought I was a little bit paranoid or something when I told them to do this and just blew it off.) This company backed up every day - so they thought. The last recoverable tape data we found this morning was from 11/03! Doesn't hurt to have your advice reinforced by a problem like this but I would have preferred otherwise. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 21, 2004 1:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] corruption Hi John Recently I noticed this but I have no references: http://www.securitylab.ru/tools/50346.html /gustav >>> john at winhaven.net 21-12-2004 19:19:26 >>> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Dec 21 15:03:58 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 21 Dec 2004 13:03:58 -0800 Subject: [AccessD] Proper Case In-Reply-To: <2025BB6F17FCB54791F23CD505583328088775@starfleet.unknown.local> Message-ID: Vlad, I also have a sample database on Rogers website: http://rogersaccesslibrary.com/OtherLibraries.asp Scroll down until you see my name. My sample is based on some older A97 code but does the job nicely. The sample also includes a SQL Server version. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ACTEBS Sent: Tuesday, December 21, 2004 5:42 AM To: Access Group (E-mail) Subject: [AccessD] Proper Case Hi Everyone, Does anyone have a some proper case code that looks after things like McDonald etc? Thanks and a very Merry Christmas to one and all... Regards Vlad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From james at charltonweeks.com Tue Dec 21 15:05:12 2004 From: james at charltonweeks.com (james charlton) Date: Tue, 21 Dec 2004 13:05:12 -0800 Subject: [AccessD] corruption Message-ID: The problem is that too many users think that what they need is a backup system that works. What they really need is a recovery system that works... -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Tuesday, December 21, 2004 12:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] corruption Thanks Gustav, I tried this and a couple of other downloads and data recovery services I googled up. Nothing/no one recovered much of it. The main table had well over 20,000 records in it and the most anything recovered was 17. I will now have them re-enter a couple of hundreds records. Oh well, it drove home my point about testing backup jobs once in awhile to make sure they are valid. (They thought I was a little bit paranoid or something when I told them to do this and just blew it off.) This company backed up every day - so they thought. The last recoverable tape data we found this morning was from 11/03! Doesn't hurt to have your advice reinforced by a problem like this but I would have preferred otherwise. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 21, 2004 1:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] corruption Hi John Recently I noticed this but I have no references: http://www.securitylab.ru/tools/50346.html /gustav >>> john at winhaven.net 21-12-2004 19:19:26 >>> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwhittinghill at symphonyinfo.com Tue Dec 21 15:18:00 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Tue, 21 Dec 2004 15:18:00 -0600 Subject: [AccessD] OT: Filemaker field names Message-ID: <000b01c4e7a2$8de01e50$2601a8c0@Symphony.local> Hi all, We have a new client, and we need to import information from an existing Filemaker database. I am trying to export from Filemaker into a format that Access can import from. I have not been able to export field names. I have tried all formats and had no success. I exported to .dbf, which is supposed to include file names, but was unable to import into Access from the .dbf. Is there something I'm missing, or will I just have to do a painstaking comparison between Filemaker data and a text file so I can match fields? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com From martyconnelly at shaw.ca Tue Dec 21 15:24:48 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 21 Dec 2004 13:24:48 -0800 Subject: [AccessD] OT: The Polar Express References: Message-ID: <41C894A0.50701@shaw.ca> If you ever do. Here is an easier way than canoeing. There are several working ferries on the west coast of BC , where you can take your family for a week with a couple of cabins. The crew will do beach barbeques as long as you dont mind 2AM dockings http://www.ladyrosemarine.com/ Old Boats are sometimes more interesting than trains , this one grew up on the Clyde in Glasgow. Gustav Brock wrote: >Thanks Marty! Looks great. Next stop Canada. > >/gustav > > > >>>>martyconnelly at shaw.ca 20-12-2004 08:16:59 >>> >>>> >>>> >If you are a train fan this one runs bi weekly every summer. >I thought of it when I saw the movie trailers. >Polar Bear Express from Cochrane to Mooseonee. >http://www.polarbearexpress.ca/ >Not many polar bears there, as they are generally around Churchill 500 > >further west >Rode the train years ago one way, as we canoed up the Missinaibi >river, >took the train back. >Don't do this route without a guide, unless you have done a lot of >wilderness routes >Portages around Thunderhouse falls are not marked correctly on topo >maps >and can kill you. >When we did it in the early 70's, we were working off hand written >notes >by a previous canoeist. >It is better marked now. >http://www.myccr.com/canoedb/routeDetails.php?routeid=197 >http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html > >At the bottom of page is a picture of one the scenic spots >Conjuring House Falls on the Missinaibi >http://travel.canoe.ca/che-mun/99list2.html > >Gustav Brock wrote: > > > >>Hi all >> >>Well, isn't it still Friday here? >> >>Anyway, I enjoyed The Polar Express yesterday in the original US >>version in a major theater with a state-of-the-art sound system. >>What a magnificent movie! >>Anybody else: don't miss it. Indeed, if you are a fan of steam >> >> >engines > > >>(or just trains in general), this movie is a must - it'll take you >>away. >> >>/gustav >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From markamatte at hotmail.com Tue Dec 21 15:29:29 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 21 Dec 2004 21:29:29 +0000 Subject: [AccessD] OT: Filemaker field names In-Reply-To: <000b01c4e7a2$8de01e50$2601a8c0@Symphony.local> Message-ID: Mark, I'm not familiar with Filemaker...but could you insert a row( the data actually being the field name)...sort your export so this row is the first...then have access import with 'First Row Contains Column Heading'... ...as I said...I'm not familiar with Filemaker...but I've done this before with a text file that didn't have field/column names. Shot in the dark, but hope it helps. Thanks, Mark A. Matte >From: "Mark Whittinghill" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: [AccessD] OT: Filemaker field names >Date: Tue, 21 Dec 2004 15:18:00 -0600 > >Hi all, > > We have a new client, and we need to import information from an existing >Filemaker database. I am trying to export from Filemaker into a format >that >Access can import from. I have not been able to export field names. I >have >tried all formats and had no success. I exported to .dbf, which is >supposed >to include file names, but was unable to import into Access from the .dbf. >Is there something I'm missing, or will I just have to do a painstaking >comparison between Filemaker data and a text file so I can match fields? > >Mark Whittinghill >Symphony Information Services >763-391-7400 >mwhittinghill at symphonyinfo.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Tue Dec 21 15:42:20 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 21 Dec 2004 16:42:20 -0500 Subject: [AccessD] Using WinZip with Access Code References: <001401c4e770$626f47f0$677aa8c0@ColbyM6805> Message-ID: ..you know me ...I hate shell almost as much as I do 3rd party ocx's :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 21, 2004 10:18 AM Subject: RE: [AccessD] Using WinZip with Access Code > >..you are such a tease ...just post it already, eh ...or point us to a dl > > Hey, I'm not spending time on a demo if everyone's just going to use the > shell thing. I have it embedded as a service in my framework so it's not > like I go import code when I want to use it. > > For those able to just figure this stuff out, there is a file vbzip10.zip > on > a ftp directory: > > ftp://www.colbyconsulting.com/ftproot/AccessD/ > > UserName: AccessD > Password: AccessD > > It contains the two basic modules, two classes and two matching DLLs for > zipping and unzipping. The classes are already set up to allow placing > then > in a library and instantiating them from outside the library. > > I will put it on my ToDo list for getting a demo working. I have a client > deadline that I really must attend to before I can take the time to do the > demo. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Tuesday, December 21, 2004 9:33 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Using WinZip with Access Code > > > ..you are such a tease ...just post it already, eh ...or point us to a dl > :) > > William Hindman > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, December 21, 2004 9:05 AM > Subject: RE: [AccessD] Using WinZip with Access Code > > >> There is a freeware class that zips and unzips files from inside of >> Access. >> Uses withevents if you desire. Very nice class/lib. >> >> If you are interested I'll bang out a demo. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie >> Courchesne, >> CMA >> Sent: Tuesday, December 21, 2004 6:53 AM >> To: Accessd >> Subject: [AccessD] Using WinZip with Access Code >> >> >> Hi group, >> >> Is it possible to compress a file with winzip using access code (A2K)? >> >> Thanks! >> >> >> >> Annie Courchesne, CMA >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jim.Hale at FleetPride.com Tue Dec 21 16:00:40 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 21 Dec 2004 16:00:40 -0600 Subject: [AccessD] OT: Filemaker field names Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723372F2@corp-es01.fleetpride.com> http://www.fmpromigrator.com/products/fmpro_migrator/index.html?promo=google c8 Check this out. Also, have you looked for ODBC drivers? Jim -----Original Message----- From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] Sent: Tuesday, December 21, 2004 3:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Filemaker field names Hi all, We have a new client, and we need to import information from an existing Filemaker database. I am trying to export from Filemaker into a format that Access can import from. I have not been able to export field names. I have tried all formats and had no success. I exported to .dbf, which is supposed to include file names, but was unable to import into Access from the .dbf. Is there something I'm missing, or will I just have to do a painstaking comparison between Filemaker data and a text file so I can match fields? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From dejpolsys at hotmail.com Tue Dec 21 16:02:03 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 21 Dec 2004 17:02:03 -0500 Subject: [AccessD] OT: The Polar Express References: <41C894A0.50701@shaw.ca> Message-ID: ..really nice link Marty ...tks :) William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, December 21, 2004 4:24 PM Subject: Re: [AccessD] OT: The Polar Express > If you ever do. > Here is an easier way than canoeing. > There are several working ferries on the west coast of BC , where > you can take your family for a week with a couple of cabins. > The crew will do beach barbeques as long as you dont mind 2AM dockings > http://www.ladyrosemarine.com/ > Old Boats are sometimes more interesting than trains , this one grew up on > the Clyde in Glasgow. > Gustav Brock wrote: > >>Thanks Marty! Looks great. Next stop Canada. >> >>/gustav >> >> >>>>>martyconnelly at shaw.ca 20-12-2004 08:16:59 >>> >>>>> >>If you are a train fan this one runs bi weekly every summer. >>I thought of it when I saw the movie trailers. >>Polar Bear Express from Cochrane to Mooseonee. >>http://www.polarbearexpress.ca/ Not many polar bears there, as they are >>generally around Churchill 500 >> >>further west >>Rode the train years ago one way, as we canoed up the Missinaibi >>river, took the train back. >>Don't do this route without a guide, unless you have done a lot of >>wilderness routes >>Portages around Thunderhouse falls are not marked correctly on topo >>maps and can kill you. >>When we did it in the early 70's, we were working off hand written >>notes by a previous canoeist. >>It is better marked now. >>http://www.myccr.com/canoedb/routeDetails.php?routeid=197 >>http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html >>At the bottom of page is a picture of one the scenic spots >>Conjuring House Falls on the Missinaibi >>http://travel.canoe.ca/che-mun/99list2.html >>Gustav Brock wrote: >> >> >>>Hi all >>> >>>Well, isn't it still Friday here? >>> >>>Anyway, I enjoyed The Polar Express yesterday in the original US >>>version in a major theater with a state-of-the-art sound system. What a >>>magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan >>>of steam >>> >>engines >> >>>(or just trains in general), this movie is a must - it'll take you >>>away. >>> >>>/gustav >>> >>> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Tue Dec 21 16:18:42 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 21 Dec 2004 14:18:42 -0800 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: <001401c4e770$626f47f0$677aa8c0@ColbyM6805> Message-ID: <000601c4e7ab$0b41c4e0$8500a8c0@murphyf3vdfepi> Hi John, Was not able to access the ftp address you gave. I was able to get the file at ftp://ftp.colbyconsulting.com/ using the name and password provided. Thanks Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 21, 2004 7:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Using WinZip with Access Code >..you are such a tease ...just post it already, eh ...or point us to a >dl Hey, I'm not spending time on a demo if everyone's just going to use the shell thing. I have it embedded as a service in my framework so it's not like I go import code when I want to use it. For those able to just figure this stuff out, there is a file vbzip10.zip on a ftp directory: ftp://www.colbyconsulting.com/ftproot/AccessD/ UserName: AccessD Password: AccessD It contains the two basic modules, two classes and two matching DLLs for zipping and unzipping. The classes are already set up to allow placing then in a library and instantiating them from outside the library. From mwhittinghill at symphonyinfo.com Tue Dec 21 16:41:38 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Tue, 21 Dec 2004 16:41:38 -0600 Subject: [AccessD] OT: Filemaker field names References: <6A6AA9DF57E4F046BDA1E273BDDB67723372F2@corp-es01.fleetpride.com> Message-ID: <002f01c4e7ae$3c450ae0$2601a8c0@Symphony.local> Thanks, Jim and Mark. What I ended up doing is installing Filemaker 7 demo here. I can convert the Filemaker 5 to 7. However, the exports still don't export field names. I found I could export to dBase format and get to it from there. I don't understand why Filemaker doesn't export field names to text. Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 21, 2004 4:00 PM Subject: RE: [AccessD] OT: Filemaker field names > http://www.fmpromigrator.com/products/fmpro_migrator/index.html?promo=google > c8 > > Check this out. Also, have you looked for ODBC drivers? > Jim > > -----Original Message----- > From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] > Sent: Tuesday, December 21, 2004 3:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Filemaker field names > > > Hi all, > > We have a new client, and we need to import information from an existing > Filemaker database. I am trying to export from Filemaker into a format that > Access can import from. I have not been able to export field names. I have > tried all formats and had no success. I exported to .dbf, which is supposed > to include file names, but was unable to import into Access from the .dbf. > Is there something I'm missing, or will I just have to do a painstaking > comparison between Filemaker data and a text file so I can match fields? > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. ---------------------------------------------------------------------------- ---- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Dec 21 17:18:30 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 21 Dec 2004 15:18:30 -0800 Subject: [AccessD] corruption References: <200412211428192.SM00767@ScuzzPaq> Message-ID: <41C8AF46.4090801@shaw.ca> you could try http://www.pksolutions.com John Bartow wrote: >Thanks Gustav, >I tried this and a couple of other downloads and data recovery services I >googled up. > >Nothing/no one recovered much of it. The main table had well over 20,000 >records in it and the most anything recovered was 17. I will now have them >re-enter a couple of hundreds records. Oh well, it drove home my point about >testing backup jobs once in awhile to make sure they are valid. (They >thought I was a little bit paranoid or something when I told them to do this >and just blew it off.) This company backed up every day - so they thought. >The last recoverable tape data we found this morning was from 11/03! > >Doesn't hurt to have your advice reinforced by a problem like this but I >would have preferred otherwise. > >John B. > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Tuesday, December 21, 2004 1:22 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] corruption > >Hi John > >Recently I noticed this but I have no references: > > http://www.securitylab.ru/tools/50346.html > >/gustav > > > >>>>john at winhaven.net 21-12-2004 19:19:26 >>> >>>> >>>> >I need a reference to the company that fixes corrupted access backend >databases. Anyone have one? >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada From pcs at azizaz.com Tue Dec 21 18:36:06 2004 From: pcs at azizaz.com (Borge Hansen) Date: Wed, 22 Dec 2004 10:36:06 +1000 Subject: [AccessD] How to control an Update Query References: Message-ID: <00f901c4e7be$39fd4a80$fa10a8c0@Albatross> Hi Gustav, Thanks for showing interest in this minor problem here, and also for your responses to my date field questions some weeks past.... Well, it was about how do you control the sorting when updating a memofield with several records from a source table, one line in the memofield for each record. I gave it another thought and found a solution. What I first did was : UPDATE ztblMerge INNER JOIN qztblSource ON ztblMerge.UFN = qztblSource.UFN SET ztblMerge.MergeField = IIf(Len([ztblMerge].[MergeField])>0,[ztblMerge].[MergeField] & " " & [qztblSource].[TextField],[qztblSource].[TextField]), qztblSource.SelectFlag = Yes WHERE (((qztblSource.SelectFlag)=No)); ...thinking that since the query qztblSource was sorted the way I wanted, then the records would be written into the merge memofield in the same sorted way. They don't! Creating another select query based on the inner join above and doing the sort on the fields as required and then using this new select query as source for the update does the trick: qzUpdateztblMergeVersion2_Source: SELECT ztblMerge.UFN, ztblMerge.MergeField, qztblSource.UFN, qztblSource.TextField, qztblSource.SelectFlag FROM qztblSource INNER JOIN ztblMerge ON qztblSource.UFN = ztblMerge.UFN ORDER BY qztblSource.UFN DESC , qztblSource.TextField DESC; The final update query: UPDATE qzUpdateztblMergeVersion2_Source AS Q SET Q.MergeField = IIf(Len([Q].[MergeField])>0,[Q].[MergeField] & " " & [Q].[TextField],[Q].[TextField]), Q.SelectFlag = Yes WHERE (((Q.SelectFlag)=No)); Perhaps there is a simpler way? Borge ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 21, 2004 8:36 PM Subject: Re: [AccessD] How to control an Update Query > Hi Borge > Oh, they completely confused me. > Now, what was your question? > /gustav > Gustav, they are just visual delimeters added to the data placed in the > memo > field... pretty ugly ehh? > Borge > > Hi Borge > > What are the ">>" signs supposed to do? > > /gustav --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 From john at winhaven.net Tue Dec 21 18:40:01 2004 From: john at winhaven.net (John Bartow) Date: Tue, 21 Dec 2004 18:40:01 -0600 Subject: [AccessD] corruption In-Reply-To: Message-ID: <200412211844731.SM00767@ScuzzPaq> Exactly! What in the world is a backup system good for? A recovery system, now that's important! John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of james charlton Sent: Tuesday, December 21, 2004 3:05 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] corruption The problem is that too many users think that what they need is a backup system that works. What they really need is a recovery system that works... -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Tuesday, December 21, 2004 12:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] corruption Thanks Gustav, I tried this and a couple of other downloads and data recovery services I googled up. Nothing/no one recovered much of it. The main table had well over 20,000 records in it and the most anything recovered was 17. I will now have them re-enter a couple of hundreds records. Oh well, it drove home my point about testing backup jobs once in awhile to make sure they are valid. (They thought I was a little bit paranoid or something when I told them to do this and just blew it off.) This company backed up every day - so they thought. The last recoverable tape data we found this morning was from 11/03! Doesn't hurt to have your advice reinforced by a problem like this but I would have preferred otherwise. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 21, 2004 1:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] corruption Hi John Recently I noticed this but I have no references: http://www.securitylab.ru/tools/50346.html /gustav >>> john at winhaven.net 21-12-2004 19:19:26 >>> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Dec 21 19:56:44 2004 From: john at winhaven.net (John Bartow) Date: Tue, 21 Dec 2004 19:56:44 -0600 Subject: [AccessD] corruption In-Reply-To: <41C8AF46.4090801@shaw.ca> Message-ID: <200412212001969.SM00767@ScuzzPaq> Thanks, But I couldn't get their submission form or ftp site to work? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, December 21, 2004 5:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] corruption you could try http://www.pksolutions.com John Bartow wrote: >Thanks Gustav, >I tried this and a couple of other downloads and data recovery services >I googled up. > >Nothing/no one recovered much of it. The main table had well over >20,000 records in it and the most anything recovered was 17. I will now >have them re-enter a couple of hundreds records. Oh well, it drove home >my point about testing backup jobs once in awhile to make sure they are >valid. (They thought I was a little bit paranoid or something when I >told them to do this and just blew it off.) This company backed up every day - so they thought. >The last recoverable tape data we found this morning was from 11/03! > >Doesn't hurt to have your advice reinforced by a problem like this but >I would have preferred otherwise. > >John B. > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Tuesday, December 21, 2004 1:22 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] corruption > >Hi John > >Recently I noticed this but I have no references: > > http://www.securitylab.ru/tools/50346.html > >/gustav > > > >>>>john at winhaven.net 21-12-2004 19:19:26 >>> >>>> >>>> >I need a reference to the company that fixes corrupted access backend >databases. Anyone have one? >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Dec 21 21:34:58 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 21 Dec 2004 19:34:58 -0800 Subject: [AccessD] Select query to append query problem x posted Message-ID: <000201c4e7d7$39528230$6501a8c0@delllaptop> I have a select query which properly returns 3 records. SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); When I run the same query as an append query it adds 14 records. INSERT INTO TrainDate ( DocID, EmpID ) SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); The extra records do not seem to have any common link. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From ssharkins at bellsouth.net Tue Dec 21 21:48:41 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 21 Dec 2004 22:48:41 -0500 Subject: [AccessD] Select query to append query problem x posted In-Reply-To: <000201c4e7d7$39528230$6501a8c0@delllaptop> Message-ID: <20041222034840.BFDE2073.imf19aec.mail.bellsouth.net@SUSANONE> Run the SELECT without the DISTINCT keyword and see what you get. Susan H. I have a select query which properly returns 3 records. SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); When I run the same query as an append query it adds 14 records. INSERT INTO TrainDate ( DocID, EmpID ) SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); The extra records do not seem to have any common link. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Tue Dec 21 22:02:11 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Tue, 21 Dec 2004 22:02:11 -0600 Subject: [AccessD] My brain needs a jumpstart Message-ID: <8DA8776D2F418E46A2A464AC6CE6305012E91C@outbaksrv1.outbaktech.com> Where was the best place to buy the MSDN Universal kit? (Thinking of ordering it for myself for Christmas) Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com From jmhla at earthlink.net Tue Dec 21 22:09:58 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 21 Dec 2004 20:09:58 -0800 Subject: [AccessD] Select query to append query problem x posted In-Reply-To: <20041222034840.BFDE2073.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <000001c4e7dc$20415370$6501a8c0@delllaptop> Susan, You win my hero of this problem. Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, December 21, 2004 7:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Select query to append query problem x posted Run the SELECT without the DISTINCT keyword and see what you get. Susan H. I have a select query which properly returns 3 records. SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); When I run the same query as an append query it adds 14 records. INSERT INTO TrainDate ( DocID, EmpID ) SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); The extra records do not seem to have any common link. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 22 01:23:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 21 Dec 2004 23:23:54 -0800 Subject: [AccessD] Call query in after update of form or It is 11:00 PM do you know where my brain is ? Message-ID: <000001c4e7f7$34c5c090$6501a8c0@delllaptop> qapndNewDoctoJobsTrainDate Hows that for naming them? How do I call it from form after update? That's where I want to run it after record is added? Or after second txt box is updated? JOE HECHT LOS ANGELES CA jmhla at earthlink.net From cyx5 at cdc.gov Wed Dec 22 05:36:29 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 22 Dec 2004 06:36:29 -0500 Subject: [AccessD] A97 User Security Message-ID: This is a free password cracker: http://www.xfriday.com/general/show_entry.asp?TYP=1&EntryID=52 Or if you have visual basic: http://www.sorgonet.com/modules.php?name=News&file=article&sid=15 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, December 21, 2004 3:16 PM To: accessd at databaseadvisors.com Subject: [AccessD] A97 User Security Hello All, I'm pretty sure this is a lost cause...but I just received an A97 db...there is no password...but I don't have permission to make any changes(tables,queries...or even view the macros). My guess is I need to know the UserGroup and PID that was used to change/create the permissions. Is this correct...and are there any workarounds? Thanks, Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Dec 22 05:47:14 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Dec 2004 12:47:14 +0100 Subject: [AccessD] How to control an Update Query Message-ID: Hi Borge That solution looks fine to me. /gustav >>> pcs at azizaz.com 22-12-2004 01:36:06 >>> Hi Gustav, Thanks for showing interest in this minor problem here, and also for your responses to my date field questions some weeks past.... Well, it was about how do you control the sorting when updating a memofield with several records from a source table, one line in the memofield for each record. I gave it another thought and found a solution. What I first did was : UPDATE ztblMerge INNER JOIN qztblSource ON ztblMerge.UFN = qztblSource.UFN SET ztblMerge.MergeField = IIf(Len([ztblMerge].[MergeField])>0,[ztblMerge].[MergeField] & " " & [qztblSource].[TextField],[qztblSource].[TextField]), qztblSource.SelectFlag = Yes WHERE (((qztblSource.SelectFlag)=No)); ...thinking that since the query qztblSource was sorted the way I wanted, then the records would be written into the merge memofield in the same sorted way. They don't! Creating another select query based on the inner join above and doing the sort on the fields as required and then using this new select query as source for the update does the trick: qzUpdateztblMergeVersion2_Source: SELECT ztblMerge.UFN, ztblMerge.MergeField, qztblSource.UFN, qztblSource.TextField, qztblSource.SelectFlag FROM qztblSource INNER JOIN ztblMerge ON qztblSource.UFN = ztblMerge.UFN ORDER BY qztblSource.UFN DESC , qztblSource.TextField DESC; The final update query: UPDATE qzUpdateztblMergeVersion2_Source AS Q SET Q.MergeField = IIf(Len([Q].[MergeField])>0,[Q].[MergeField] & " " & [Q].[TextField],[Q].[TextField]), Q.SelectFlag = Yes WHERE (((Q.SelectFlag)=No)); Perhaps there is a simpler way? Borge ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 21, 2004 8:36 PM Subject: Re: [AccessD] How to control an Update Query > Hi Borge > Oh, they completely confused me. > Now, what was your question? > /gustav > Gustav, they are just visual delimeters added to the data placed in the > memo > field... pretty ugly ehh? > Borge > > Hi Borge > > What are the ">>" signs supposed to do? > > /gustav From cyx5 at cdc.gov Wed Dec 22 05:44:14 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 22 Dec 2004 06:44:14 -0500 Subject: [AccessD] Call query in after update of form or It is 11:00 PM doyou know where my brain is ? Message-ID: In after update of the second text box, or after insert event of form. Docmd.setwarnings false Docmd.openquery "qapndNewDoctoJobsTrainDate" 'Me.refresh (may be needed to refresh the screen if the records on the screen are affected by the query) Docmd.setwarnings true -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 22, 2004 2:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Call query in after update of form or It is 11:00 PM doyou know where my brain is ? qapndNewDoctoJobsTrainDate Hows that for naming them? How do I call it from form after update? That's where I want to run it after record is added? Or after second txt box is updated? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Wed Dec 22 06:19:12 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 22 Dec 2004 07:19:12 -0500 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Mark, Since it's user level security that's at play here, you'll need a utility. www.lostpassword.com is one site that offers such a utility. Do a Google search on "access" "password" and you'll turn up a bunch. There are a few Russian sites that have them for free. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Tuesday, December 21, 2004 3:16 PM To: accessd at databaseadvisors.com Subject: [AccessD] A97 User Security Hello All, I'm pretty sure this is a lost cause...but I just received an A97 db...there is no password...but I don't have permission to make any changes(tables,queries...or even view the macros). My guess is I need to know the UserGroup and PID that was used to change/create the permissions. Is this correct...and are there any workarounds? Thanks, Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Wed Dec 22 07:49:46 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 22 Dec 2004 07:49:46 -0600 Subject: [AccessD] Best way to requery a list box in Access 2003 Message-ID: <8DA8776D2F418E46A2A464AC6CE630500326F2@outbaksrv1.outbaktech.com> I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B From jwcolby at colbyconsulting.com Wed Dec 22 08:05:34 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 22 Dec 2004 09:05:34 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 In-Reply-To: <8DA8776D2F418E46A2A464AC6CE630500326F2@outbaksrv1.outbaktech.com> Message-ID: <002a01c4e82f$4dfdeb90$677aa8c0@ColbyM6805> You need to open the popup form modal so that execution stops in the routine that opens the popup. Then when the modal form closes, execution resumes and you immediately requery the combo. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Wednesday, December 22, 2004 8:50 AM To: AccessD Subject: [AccessD] Best way to requery a list box in Access 2003 I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kevinb at bepc.com Wed Dec 22 08:08:38 2004 From: kevinb at bepc.com (Kevin Bachmeier) Date: Wed, 22 Dec 2004 08:08:38 -0600 Subject: [AccessD] Best way to requery a list box in Access 2003 Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713479FDEB@HDQ06.bepc.net> Hi Jeff - I just so happened to tackle that same issue last night. I'm sure there are different ways of doing it, but here's what I did: My 'redirection' to the entry screen for the missing information is via a double click event of a combo box, so in the double click event, I am doing a docmd.openform and use the last parameter (openargs) of the docmd.openform command to insert "forms![formname]![controlname].requery" (the list box field on the form whose datasource you want to refresh). Then in the entry form's Close event, I stick: if not isnull(me.openargs) then eval(me.openargs) end if Since I may be calling this same entry screen from multiple screens, this will refresh the correct field's data source no matter where it was called from. Of course if you use the openargs for other functionality, this will not work for you. There are probably better ways of doing this, but so far it works for me. Good luck. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jeff Barrows Sent: Wednesday, December 22, 2004 7:50 AM To: AccessD Subject: [AccessD] Best way to requery a list box in Access 2003 I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Dec 22 08:16:29 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 22 Dec 2004 09:16:29 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 Message-ID: In the onclose event of the form that you are entering the new data in, do an If Isloaded("frmname") then Formname.fieldname.refresh or requery, I forget. End if -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Wednesday, December 22, 2004 8:50 AM To: AccessD Subject: [AccessD] Best way to requery a list box in Access 2003 I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Dec 22 09:12:41 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 22 Dec 2004 10:12:41 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 In-Reply-To: <8DA8776D2F418E46A2A464AC6CE630500326F2@outbaksrv1.outbaktech.com> Message-ID: <20041222151326.KPLI2051.imf22aec.mail.bellsouth.net@SUSANONE> You could requery every time is gets the focus. That way it's always the most up-to-date information, even if the user hasn't just closed a screen. Susan H. I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? From ssharkins at bellsouth.net Wed Dec 22 09:12:41 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 22 Dec 2004 10:12:41 -0500 Subject: [AccessD] Select query to append query problem x posted In-Reply-To: <000001c4e7dc$20415370$6501a8c0@delllaptop> Message-ID: <20041222151408.KPXL2051.imf22aec.mail.bellsouth.net@SUSANONE> Geez... ;) Glad to help. :) Susan H. Susan, You win my hero of this problem. From Paul.Rogers at SummitMedia.co.uk Wed Dec 22 09:18:39 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Wed, 22 Dec 2004 15:18:39 -0000 Subject: [AccessD] Inserting into an exported doc title Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F45A@s003.wolds.summitmedia.co.uk> I export the fields of an Access form to Word and save it in a stated path. Can I add something unique to the name of the document so that Access will allow an unlimited number of this document to be saved, please Experts? appWord.ActiveDocument.SaveAs "t:\WorksAllocation\FridayReports\FR.doc" The only unique field among the fields is the date. Cheers paul From Gustav at cactus.dk Wed Dec 22 09:40:56 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Dec 2004 16:40:56 +0100 Subject: [AccessD] Inserting into an exported doc title Message-ID: Hi Paul You can create a GUID and use that as (part of) filename: Option Compare Database Option Explicit Public Type GUID Data1 As Long Data2 As Integer Data3 As Integer Data4(0 To 7) As Byte End Type Private Declare Function CoCreateGuid Lib "ole32.dll" ( _ ByRef pguid As GUID) As Long Private Declare Function StringFromGUID2 Lib "ole32.dll" ( _ ByRef rguid As Any, _ ByVal lpstrClsId As Long, _ ByVal cbMax As Long) As Long ' Public Function GetGUIDString() As String ' Create a GUID and return its string representation. ' ' 2002-12-15. Cactus Data ApS, CPH. ' Length of GUID string per definition. Const clngGUID As Long = 38 ' Length of buffer with added space for zero terminator. Const clngBuffer As Long = clngGUID + 1 Dim udtGUID As GUID Dim strGUID As String * clngGUID Dim abytGUID() As Byte ' Dim byte array. abytGUID() = String(clngBuffer, vbNullChar) ' Create GUID. If CoCreateGuid(udtGUID) = 0 Then ' GUID was successfully created. If StringFromGUID2(udtGUID, VarPtr(abytGUID(0)), clngBuffer) = clngBuffer Then ' GUID was successfully copied into byte array abytGUID in Unicode. ' Convert byte array to Ansi GUID string stripping zero terminator. strGUID = abytGUID End If End If GetGUIDString = strGUID End Function >>> Paul.Rogers at summitmedia.co.uk 22-12-2004 16:18:39 >>> I export the fields of an Access form to Word and save it in a stated path. Can I add something unique to the name of the document so that Access will allow an unlimited number of this document to be saved, please Experts? appWord.ActiveDocument.SaveAs "t:\WorksAllocation\FridayReports\FR.doc" The only unique field among the fields is the date. Cheers paul From jwcolby at colbyconsulting.com Wed Dec 22 09:38:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 22 Dec 2004 10:38:39 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 In-Reply-To: <20041222151326.KPLI2051.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <003b01c4e83c$4f6a12d0$677aa8c0@ColbyM6805> Susan, That certainly works but should be applied judiciously. Imagine 50 users in a form tabbing through entering data all day long. Each field is a combo pulling 5000 records. You would have a TON of database activity (and slow combo functionality) just to ensure that the user had the "most up to date data". In my framework, I have a NotInList that fires if the data entered is not in the combo already. If it fires, then I can decide whether to requery the combo or open a form and try to find the record. If the record is not found I move to the new record for new data entry. Either way, the data is pulled ONLY if the data being entered is not in the list. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, December 22, 2004 10:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Best way to requery a list box in Access 2003 You could requery every time is gets the focus. That way it's always the most up-to-date information, even if the user hasn't just closed a screen. Susan H. I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lchristian at massmutual.com Wed Dec 22 09:46:16 2004 From: lchristian at massmutual.com (lchristian) Date: Wed, 22 Dec 2004 10:46:16 -0500 Subject: [AccessD] Don't go to new record Message-ID: <4-1529034-835508-ADNVUXDH@isimevip01.private.massmutual.com> lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) http://www.tumbleweed.com IME is a trademark of Tumbleweed Communications Corp. From ssharkins at bellsouth.net Wed Dec 22 09:58:57 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 22 Dec 2004 10:58:57 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 In-Reply-To: <003b01c4e83c$4f6a12d0$677aa8c0@ColbyM6805> Message-ID: <20041222155854.BBKY1992.imf16aec.mail.bellsouth.net@SUSANONE> All true. :) Susan H. Susan, That certainly works but should be applied judiciously. Imagine 50 users in a form tabbing through entering data all day long. Each field is a combo pulling 5000 records. You would have a TON of database activity (and slow combo functionality) just to ensure that the user had the "most up to date data". In my framework, I have a NotInList that fires if the data entered is not in the combo already. If it fires, then I can decide whether to requery the combo or open a form and try to find the record. If the record is not found I move to the new record for new data entry. Either way, the data is pulled ONLY if the data being entered is not in the list. From cfoust at infostatsystems.com Wed Dec 22 10:10:06 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Dec 2004 08:10:06 -0800 Subject: [AccessD] Don't go to new record Message-ID: What the heck is this? Charlotte Foust -----Original Message----- From: lchristian [mailto:lchristian at massmutual.com] Sent: Wednesday, December 22, 2004 7:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Don't go to new record lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) http://www.tumbleweed.com IME is a trademark of Tumbleweed Communications Corp. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 22 10:13:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Dec 2004 08:13:45 -0800 Subject: [AccessD] My brain needs a jumpstart Message-ID: Um ... Have you tried Microsoft? Or were you looking for a bargain? Charlotte Foust -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Tuesday, December 21, 2004 8:02 PM To: AccessD Subject: [AccessD] My brain needs a jumpstart Where was the best place to buy the MSDN Universal kit? (Thinking of ordering it for myself for Christmas) Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Wed Dec 22 10:24:07 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Wed, 22 Dec 2004 11:24:07 -0500 Subject: [AccessD] Inserting into an exported doc title In-Reply-To: <1FF4D9105232EB4DA1901BB7D175877E03F45A@s003.wolds.summitmedia.co.uk> Message-ID: <004101c4e842$acc82560$640fa8c0@COA3> I do this by taking out the punctuation from Now(), replacing it with underscores, so I get something like: 12_22_2004-10_00_00_am And appending that to the end of the file name. As long as its not done more than once per second, its ok. hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Rodgers Sent: Wednesday, December 22, 2004 10:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Inserting into an exported doc title I export the fields of an Access form to Word and save it in a stated path. Can I add something unique to the name of the document so that Access will allow an unlimited number of this document to be saved, please Experts? appWord.ActiveDocument.SaveAs "t:\WorksAllocation\FridayReports\FR.doc" The only unique field among the fields is the date. Cheers paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Dec 22 10:28:05 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 22 Dec 2004 10:28:05 -0600 Subject: [AccessD] Don't go to new record In-Reply-To: References: Message-ID: Ignore it. We had this happen a few months ago and it was because the person was sending from behind some kind of secure mail system thing. If you go to that link you probably can see the message. But it really should be reposted as a normal message. ------------------------------ Hello to sender of this message - you need to post it normally here if you want answers! ----------------------------- On Wed, 22 Dec 2004 08:10:06 -0800, Charlotte Foust wrote: > What the heck is this? > > Charlotte Foust > > > -----Original Message----- > From: lchristian [mailto:lchristian at massmutual.com] > Sent: Wednesday, December 22, 2004 7:46 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Don't go to new record > > lchristian has sent you a Secure E-Mail Message. The e-mail you have > received may include confidential information. > > Please click on the link below to read your secure e-mail message. If > you have trouble accessing your secure e-mail, see the instructions at > the bottom of this message. > > https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH > > The secure e-mail will expire on Sunday February 20, 2005 > > ...................................................................... > > Need help picking up your package? > > * If the Web address above is highlighted, click on it to open a > browser window. You will automatically be taken to the package. > > * If the Web address above is not highlighted, follow these steps: > - Open a Web browser window. > - Copy and paste the entire Web address into the "location" or > "address" bar of the browser. > - Press enter. > > _______________________________________________ > Delivered with IME(TM) > http://www.tumbleweed.com > IME is a trademark of Tumbleweed Communications Corp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Wed Dec 22 10:28:20 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 22 Dec 2004 11:28:20 -0500 Subject: [AccessD] Don't go to new record In-Reply-To: Message-ID: <003d01c4e843$44e29790$677aa8c0@ColbyM6805> LOL, I have no clue either but I'M not going to find out. In this day and age it could very well be some virus scam thingie. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, December 22, 2004 11:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Don't go to new record What the heck is this? Charlotte Foust -----Original Message----- From: lchristian [mailto:lchristian at massmutual.com] Sent: Wednesday, December 22, 2004 7:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Don't go to new record lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) http://www.tumbleweed.com IME is a trademark of Tumbleweed Communications Corp. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Dec 22 10:30:16 2004 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 22 Dec 2004 10:30:16 -0600 Subject: [AccessD] Don't go to new record In-Reply-To: <6669605.1103732139286.JavaMail.root@sniper13.securence.com> Message-ID: <001801c4e843$85354450$de1811d8@danwaters> This is probably a phishing event. Delete! - do not distribute. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, December 22, 2004 10:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Don't go to new record What the heck is this? Charlotte Foust -----Original Message----- From: lchristian [mailto:lchristian at massmutual.com] Sent: Wednesday, December 22, 2004 7:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Don't go to new record lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) IME is a trademark of Tumbleweed Communications Corp. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Paul.Rogers at SummitMedia.co.uk Wed Dec 22 10:32:05 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Wed, 22 Dec 2004 16:32:05 -0000 Subject: [AccessD] Inserting into an exported doc title Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F45B@s003.wolds.summitmedia.co.uk> Perfect for the job. That's a really handy tip, too. Many thanks, Steve cheers paul -----Original Message----- From: Steve Conklin (Developer at UltraDNT) [mailto:Developer at UltraDNT.com] Sent: 22 December 2004 16:24 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Inserting into an exported doc title I do this by taking out the punctuation from Now(), replacing it with underscores, so I get something like: 12_22_2004-10_00_00_am And appending that to the end of the file name. As long as its not done more than once per second, its ok. hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Rodgers Sent: Wednesday, December 22, 2004 10:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Inserting into an exported doc title I export the fields of an Access form to Word and save it in a stated path. Can I add something unique to the name of the document so that Access will allow an unlimited number of this document to be saved, please Experts? appWord.ActiveDocument.SaveAs "t:\WorksAllocation\FridayReports\FR.doc" The only unique field among the fields is the date. Cheers paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Wed Dec 22 10:40:07 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 22 Dec 2004 10:40:07 -0600 Subject: [AccessD] My brain needs a jumpstart Message-ID: <8DA8776D2F418E46A2A464AC6CE630500326F3@outbaksrv1.outbaktech.com> Looking for a bargin, hoping to avoid eBay for this one. I remember there was quite a bit of discussion about this last year, but I cannot seem to find it. -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wed 12/22/2004 10:13 AM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] My brain needs a jumpstart Um ... Have you tried Microsoft? Or were you looking for a bargain? Charlotte Foust -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Tuesday, December 21, 2004 8:02 PM To: AccessD Subject: [AccessD] My brain needs a jumpstart Where was the best place to buy the MSDN Universal kit? (Thinking of ordering it for myself for Christmas) Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Wed Dec 22 10:42:37 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 22 Dec 2004 10:42:37 -0600 Subject: [AccessD] Best way to requery a list box in Access 2003 Message-ID: <8DA8776D2F418E46A2A464AC6CE630500326F4@outbaksrv1.outbaktech.com> This sounds like it might just do the trick! I will try it out tonight and let the list know how it works for me! Thanks again for the ideas!!! -----Original Message----- From: Kevin Bachmeier [mailto:kevinb at bepc.com] Sent: Wed 12/22/2004 8:08 AM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Best way to requery a list box in Access 2003 Hi Jeff - I just so happened to tackle that same issue last night. I'm sure there are different ways of doing it, but here's what I did: My 'redirection' to the entry screen for the missing information is via a double click event of a combo box, so in the double click event, I am doing a docmd.openform and use the last parameter (openargs) of the docmd.openform command to insert "forms![formname]![controlname].requery" (the list box field on the form whose datasource you want to refresh). Then in the entry form's Close event, I stick: if not isnull(me.openargs) then eval(me.openargs) end if Since I may be calling this same entry screen from multiple screens, this will refresh the correct field's data source no matter where it was called from. Of course if you use the openargs for other functionality, this will not work for you. There are probably better ways of doing this, but so far it works for me. Good luck. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jeff Barrows Sent: Wednesday, December 22, 2004 7:50 AM To: AccessD Subject: [AccessD] Best way to requery a list box in Access 2003 I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Dec 22 10:48:39 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 22 Dec 2004 16:48:39 +0000 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Thanks for the feedback...but there are no passwords on this db...I have my own app that returns the database password...which the one mentioned below does...in addition to the user level stuff. The problem is there are no passwords(database or user level) in this db...and thats what this tool said also. But I still can't figure out how to modify permissions. Any ideas? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 07:19:12 -0500 > >Mark, > > Since it's user level security that's at play here, you'll need a >utility. >www.lostpassword.com is one site that offers such a utility. Do a Google >search on "access" "password" and you'll turn up a bunch. There are a few >Russian sites that have them for free. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Tuesday, December 21, 2004 3:16 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 User Security > > >Hello All, > >I'm pretty sure this is a lost cause...but I just received an A97 >db...there >is no password...but I don't have permission to make any >changes(tables,queries...or even view the macros). My guess is I need to >know the UserGroup and PID that was used to change/create the permissions. >Is this correct...and are there any workarounds? > >Thanks, > >Mark > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Dec 22 10:54:36 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 22 Dec 2004 11:54:36 -0500 Subject: [AccessD] A97 User Security Message-ID: Join the workgroup for the administration level or user level or both. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, December 22, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks for the feedback...but there are no passwords on this db...I have my own app that returns the database password...which the one mentioned below does...in addition to the user level stuff. The problem is there are no passwords(database or user level) in this db...and thats what this tool said also. But I still can't figure out how to modify permissions. Any ideas? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 07:19:12 -0500 > >Mark, > > Since it's user level security that's at play here, you'll need a >utility. >www.lostpassword.com is one site that offers such a utility. Do a Google >search on "access" "password" and you'll turn up a bunch. There are a few >Russian sites that have them for free. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Tuesday, December 21, 2004 3:16 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 User Security > > >Hello All, > >I'm pretty sure this is a lost cause...but I just received an A97 >db...there >is no password...but I don't have permission to make any >changes(tables,queries...or even view the macros). My guess is I need to >know the UserGroup and PID that was used to change/create the permissions. >Is this correct...and are there any workarounds? > >Thanks, > >Mark > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From LChristian at MassMutual.com Wed Dec 22 11:41:42 2004 From: LChristian at MassMutual.com (Christian, Lorraine) Date: Wed, 22 Dec 2004 12:41:42 -0500 Subject: [AccessD] Don't go to new record Message-ID: <5B898D9F0627974EB82D0645E52B1E7D07A107C4@EXMBPR03.na.mmfg.net> I am so sorry about the first message....forgot to unsecure it.... I hate our email system...sorry again. Hi there and Happy Holidays :) I have a form that can be printed by clicking a print command button. My problem is that when the client clicks the button, the form prints as expected however it goes to a new record. I want it to stay on the record that was printed. Below is the code behind my button. Private Sub cmdPrint_Click() DoCmd.SetWarnings False DoCmd.RunCommand acCmdSaveRecord DoCmd.GoToControl "[txtClaimNumber]" DoCmd.RunCommand acCmdFilterBySelection DoCmd.PrintOut acSelection, , , acHigh, 3, True DoCmd.RunCommand acCmdRemoveFilterSort DoCmd.SetWarnings True End Sub Any ideas? Lorraine Christian MassMutual Financial Group New Business Operations 413.744.5335 lchristian at massmutual.com --------------------------------------------------------- This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. --------------------------------------------------------- From jwcolby at colbyconsulting.com Wed Dec 22 12:07:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 22 Dec 2004 13:07:41 -0500 Subject: [AccessD] Don't go to new record In-Reply-To: <5B898D9F0627974EB82D0645E52B1E7D07A107C4@EXMBPR03.na.mmfg.net> Message-ID: <004b01c4e851$20fdb770$677aa8c0@ColbyM6805> The problem is probably the RemoveFilterSort. This will cause a requery of the form and potentially cause the record being displayed to change. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christian, Lorraine Sent: Wednesday, December 22, 2004 12:42 PM To: Accessd at Databaseadvisors. Com (E-mail) Subject: [AccessD] Don't go to new record I am so sorry about the first message....forgot to unsecure it.... I hate our email system...sorry again. Hi there and Happy Holidays :) I have a form that can be printed by clicking a print command button. My problem is that when the client clicks the button, the form prints as expected however it goes to a new record. I want it to stay on the record that was printed. Below is the code behind my button. Private Sub cmdPrint_Click() DoCmd.SetWarnings False DoCmd.RunCommand acCmdSaveRecord DoCmd.GoToControl "[txtClaimNumber]" DoCmd.RunCommand acCmdFilterBySelection DoCmd.PrintOut acSelection, , , acHigh, 3, True DoCmd.RunCommand acCmdRemoveFilterSort DoCmd.SetWarnings True End Sub Any ideas? Lorraine Christian MassMutual Financial Group New Business Operations 413.744.5335 lchristian at massmutual.com --------------------------------------------------------- This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. --------------------------------------------------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Dec 22 12:14:31 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 22 Dec 2004 18:14:31 +0000 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Karen, There are only 2 workgroups...Admins and Users...I belong to both...but don't have permission to change anything. I can't even view the permission settings of the groups. I'm guessing there was another workgroup...that has been removed? Is this possible? I've always used my own security...and never the built in...I'm not sure how they created it with no one having the authority to change anything? Thanks, Mark >From: "Nicholson, Karen" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 11:54:36 -0500 > >Join the workgroup for the administration level or user level or both. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have >my >own app that returns the database password...which the one mentioned >below >does...in addition to the user level stuff. The problem is there are no > >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. > >www.lostpassword.com is one site that offers such a utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there > >is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need >to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From liu.yve at gmail.com Wed Dec 22 12:18:13 2004 From: liu.yve at gmail.com (yvonne liu) Date: Wed, 22 Dec 2004 13:18:13 -0500 Subject: [AccessD] Linking files to a form Message-ID: Hello all, What is the best way to link files to a form? These would be files that sit on a network server so all users using the database would have access to them, be they Word docs, Adobe PDFs, Outlook email texts, XLS, etc. Is it best to create a hyperlink? Or script with: Private Sub File_Click() Application.FollowHyperlink Me.Doc End Sub Can you recommend resources on where to read up on creating the latter solution, the script? Thanks so much!! From cfoust at infostatsystems.com Wed Dec 22 12:25:47 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Dec 2004 10:25:47 -0800 Subject: [AccessD] Don't go to new record Message-ID: Well, I wasn't about to follow the link to find out and the sender was unfamiliar, so I'm not that curious. I was just surprised to see it in the list. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, December 22, 2004 8:28 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Don't go to new record LOL, I have no clue either but I'M not going to find out. In this day and age it could very well be some virus scam thingie. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, December 22, 2004 11:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Don't go to new record What the heck is this? Charlotte Foust -----Original Message----- From: lchristian [mailto:lchristian at massmutual.com] Sent: Wednesday, December 22, 2004 7:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Don't go to new record lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) http://www.tumbleweed.com IME is a trademark of Tumbleweed Communications Corp. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Dec 22 12:35:07 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 22 Dec 2004 12:35:07 -0600 Subject: [AccessD] Don't go to new record In-Reply-To: <4-1529034-835508-ADNVUXDH@isimevip01.private.massmutual.com> References: <4-1529034-835508-ADNVUXDH@isimevip01.private.massmutual.com> Message-ID: Calm down everyone..... Here's the actual text to the message..... Lorraine please post normally in the future OK? You're scaring us all with this type of messaage ;-) ---------------------------------------- Hi there and Happy Holidays :) I have a form that can be printed by clicking a print command button. My problem is that when the client clicks the button, the form prints as expected however it goes to a new record. I want it to stay on the record that was printed. Below is the code behind my button. Private Sub cmdPrint_Click() DoCmd.SetWarnings False DoCmd.RunCommand acCmdSaveRecord DoCmd.GoToControl "[txtClaimNumber]" DoCmd.RunCommand acCmdFilterBySelection DoCmd.PrintOut acSelection, , , acHigh, 3, True DoCmd.RunCommand acCmdRemoveFilterSort DoCmd.SetWarnings True End Sub Any ideas? Lorraine Christian MassMutual Financial Group New Business Operations 413.744.5335 lchristian at massmutual.com ----------------------------------------------- On Wed, 22 Dec 2004 10:46:16 -0500, lchristian wrote: > > > lchristian has sent you a Secure E-Mail Message. The e-mail you have > received may include confidential information. > > Please click on the link below to read your secure e-mail message. If > you have trouble accessing your secure e-mail, see the instructions at > the bottom of this message. > > https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH > > The secure e-mail will expire on Sunday February 20, 2005 > > ...................................................................... > > Need help picking up your package? > > * If the Web address above is highlighted, click on it to open a > browser window. You will automatically be taken to the package. > > * If the Web address above is not highlighted, follow these steps: > - Open a Web browser window. > - Copy and paste the entire Web address into the "location" or > "address" bar of the browser. > - Press enter. > > _______________________________________________ > Delivered with IME(TM) > http://www.tumbleweed.com > IME is a trademark of Tumbleweed Communications Corp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From garykjos at gmail.com Wed Dec 22 12:36:32 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 22 Dec 2004 12:36:32 -0600 Subject: [AccessD] Don't go to new record In-Reply-To: References: Message-ID: Chickens! You're all CHICKENS! ;-) HA HA HA I followed it and copyed the text into a reply to the original message. Hopefully it will have posted by now. On Wed, 22 Dec 2004 10:25:47 -0800, Charlotte Foust wrote: > Well, I wasn't about to follow the link to find out and the sender was > unfamiliar, so I'm not that curious. I was just surprised to see it in > the list. > > Charlotte Foust > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, December 22, 2004 8:28 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Don't go to new record > > LOL, I have no clue either but I'M not going to find out. In this day > and age it could very well be some virus scam thingie. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Wednesday, December 22, 2004 11:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Don't go to new record > > What the heck is this? > > Charlotte Foust > > -----Original Message----- > From: lchristian [mailto:lchristian at massmutual.com] > Sent: Wednesday, December 22, 2004 7:46 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Don't go to new record > > lchristian has sent you a Secure E-Mail Message. The e-mail you have > received may include confidential information. > > Please click on the link below to read your secure e-mail message. If > you have trouble accessing your secure e-mail, see the instructions at > the bottom of this message. > > https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH > > The secure e-mail will expire on Sunday February 20, 2005 > > ...................................................................... > > Need help picking up your package? > > * If the Web address above is highlighted, click on it to open a > browser window. You will automatically be taken to the package. > > * If the Web address above is not highlighted, follow these steps: > - Open a Web browser window. > - Copy and paste the entire Web address into the "location" or > "address" bar of the browser. > - Press enter. > > _______________________________________________ > Delivered with IME(TM) > http://www.tumbleweed.com > IME is a trademark of Tumbleweed Communications Corp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Wed Dec 22 12:48:21 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Dec 2004 10:48:21 -0800 Subject: [AccessD] Don't go to new record Message-ID: Hmmn. Would you like me to forward a nice offer from producttestpanel.com? Charlotte Foust -----Original Message----- From: Gary Kjos [mailto:garykjos at gmail.com] Sent: Wednesday, December 22, 2004 10:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Don't go to new record Chickens! You're all CHICKENS! ;-) HA HA HA I followed it and copyed the text into a reply to the original message. Hopefully it will have posted by now. On Wed, 22 Dec 2004 10:25:47 -0800, Charlotte Foust wrote: > Well, I wasn't about to follow the link to find out and the sender was > unfamiliar, so I'm not that curious. I was just surprised to see it > in the list. > > Charlotte Foust > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, December 22, 2004 8:28 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Don't go to new record > > LOL, I have no clue either but I'M not going to find out. In this day > and age it could very well be some virus scam thingie. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Wednesday, December 22, 2004 11:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Don't go to new record > > What the heck is this? > > Charlotte Foust > > -----Original Message----- > From: lchristian [mailto:lchristian at massmutual.com] > Sent: Wednesday, December 22, 2004 7:46 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Don't go to new record > > lchristian has sent you a Secure E-Mail Message. The e-mail you have > received may include confidential information. > > Please click on the link below to read your secure e-mail message. If > you have trouble accessing your secure e-mail, see the instructions at > the bottom of this message. > > https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH > > The secure e-mail will expire on Sunday February 20, 2005 > > ...................................................................... > > Need help picking up your package? > > * If the Web address above is highlighted, click on it to open a > browser window. You will automatically be taken to the package. > > * If the Web address above is not highlighted, follow these steps: > - Open a Web browser window. > - Copy and paste the entire Web address into the "location" or > "address" bar of the browser. > - Press enter. > > _______________________________________________ > Delivered with IME(TM) > http://www.tumbleweed.com > IME is a trademark of Tumbleweed Communications Corp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lister at actuarial-files.com Wed Dec 22 14:08:10 2004 From: lister at actuarial-files.com (Ralf Lister) Date: Wed, 22 Dec 2004 16:08:10 -0400 Subject: [AccessD] Corrupt Database Message-ID: <006101c4e862$1ef8fe10$43976bce@ralf> Hello, each once in a while one of my databases (less than 1 MByte) gets corrupted and the repair option in the Tools menu doesn't help at all. I don't know what to do (beside saving BackUps). Doe anyoone experienced the same problem and know what to do ? Saludos y Felices Fiestas Ralf Lister From stuart at lexacorp.com.pg Wed Dec 22 15:05:33 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 23 Dec 2004 07:05:33 +1000 Subject: [AccessD] Inserting into an exported doc title In-Reply-To: <004101c4e842$acc82560$640fa8c0@COA3> References: <1FF4D9105232EB4DA1901BB7D175877E03F45A@s003.wolds.summitmedia.co.uk> Message-ID: <41CA6E3D.14917.886C742@lexacorp.com.pg> On 22 Dec 2004 at 11:24, Steve Conklin (Developer at Ultr wrote: > I do this by taking out the punctuation from Now(), replacing it with > underscores, so I get something like: > 12_22_2004-10_00_00_am > And appending that to the end of the file name. As long as its not done > more than once per second, its ok. > I prefer filename & format(Now(),"yymmddhhnnss") Using that form means that the files will sort chronologically by name. -- Stuart From martyconnelly at shaw.ca Wed Dec 22 16:05:32 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 22 Dec 2004 14:05:32 -0800 Subject: [AccessD] corruption References: <200412212001969.SM00767@ScuzzPaq> Message-ID: <41C9EFAC.1080606@shaw.ca> Try using Netscape I have found some ftp sites won't work with IE 6. Haven't bothered to track down the reason yet. or email pmiller at pksolutions.com Peter Miller is pretty active on comp.databases.ms-access But he runs a small shop 2 or 3 man band, maybe he is off in Mexico for holidays. John Bartow wrote: >Thanks, >But I couldn't get their submission form or ftp site to work? > > > >John B. >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Tuesday, December 21, 2004 5:19 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] corruption > >you could try >http://www.pksolutions.com > > >John Bartow wrote: > > > >>Thanks Gustav, >>I tried this and a couple of other downloads and data recovery services >>I googled up. >> >>Nothing/no one recovered much of it. The main table had well over >>20,000 records in it and the most anything recovered was 17. I will now >>have them re-enter a couple of hundreds records. Oh well, it drove home >>my point about testing backup jobs once in awhile to make sure they are >>valid. (They thought I was a little bit paranoid or something when I >>told them to do this and just blew it off.) This company backed up every >> >> >day - so they thought. > > >>The last recoverable tape data we found this morning was from 11/03! >> >>Doesn't hurt to have your advice reinforced by a problem like this but >>I would have preferred otherwise. >> >>John B. >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Tuesday, December 21, 2004 1:22 PM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] corruption >> >>Hi John >> >>Recently I noticed this but I have no references: >> >> http://www.securitylab.ru/tools/50346.html >> >>/gustav >> >> >> >> >> >>>>>john at winhaven.net 21-12-2004 19:19:26 >>> >>>>> >>>>> >>>>> >>>>> >>I need a reference to the company that fixes corrupted access backend >>databases. Anyone have one? >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Dec 22 16:11:14 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 22 Dec 2004 14:11:14 -0800 Subject: [AccessD] A97 User Security References: Message-ID: <41C9F102.6080206@shaw.ca> Maybe a corrupt system.mdw, try doing a repair on it or a copy. Mark A Matte wrote: > Karen, > > There are only 2 workgroups...Admins and Users...I belong to > both...but don't have permission to change anything. I can't even > view the permission settings of the groups. I'm guessing there was > another workgroup...that has been removed? Is this possible? I've > always used my own security...and never the built in...I'm not sure > how they created it with no one having the authority to change anything? > > Thanks, > > Mark > > > >> From: "Nicholson, Karen" >> Reply-To: Access Developers discussion and problem >> solving >> To: "Access Developers discussion and problem >> solving" >> Subject: RE: [AccessD] A97 User Security >> Date: Wed, 22 Dec 2004 11:54:36 -0500 >> >> Join the workgroup for the administration level or user level or both. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Wednesday, December 22, 2004 11:49 AM >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] A97 User Security >> >> >> Thanks for the feedback...but there are no passwords on this db...I have >> my >> own app that returns the database password...which the one mentioned >> below >> does...in addition to the user level stuff. The problem is there are no >> >> passwords(database or user level) in this db...and thats what this tool >> said >> also. But I still can't figure out how to modify permissions. >> >> Any ideas? >> >> Thanks, >> >> Mark >> >> >> >> >From: "Jim Dettman" >> >Reply-To: Access Developers discussion and problem >> >solving >> >To: "Access Developers discussion and problem >> >solving" >> >Subject: RE: [AccessD] A97 User Security >> >Date: Wed, 22 Dec 2004 07:19:12 -0500 >> > >> >Mark, >> > >> > Since it's user level security that's at play here, you'll need a >> >utility. >> >www.lostpassword.com is one site that offers such a utility. Do a >> Google >> >search on "access" "password" and you'll turn up a bunch. There are a >> few >> >Russian sites that have them for free. >> > >> >Jim Dettman >> > >> > >> >-----Original Message----- >> >From: accessd-bounces at databaseadvisors.com >> >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> >Sent: Tuesday, December 21, 2004 3:16 PM >> >To: accessd at databaseadvisors.com >> >Subject: [AccessD] A97 User Security >> > >> > >> >Hello All, >> > >> >I'm pretty sure this is a lost cause...but I just received an A97 >> >db...there >> >is no password...but I don't have permission to make any >> >changes(tables,queries...or even view the macros). My guess is I need >> to >> >know the UserGroup and PID that was used to change/create the >> permissions. >> >Is this correct...and are there any workarounds? >> > >> >Thanks, >> > >> >Mark >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From jimdettman at earthlink.net Wed Dec 22 16:31:12 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 22 Dec 2004 17:31:12 -0500 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Mark, <> Understood. There are various utilities out there, some work on the database password while others work on the workgroup file. You need the later. <> Yes. <> <> <> You would if you had the workgroup file that had the correct SIDs. In in the past, I've setup some DB's with exactly this setup. For development, I have one MDW. For the clients, they just use the standard MDW file. This is possible because the user 'Admin' and the group 'users' have the same SID (Security ID) no matter what MDW file you use. The group 'admins' however, is different for each one. So in your case, ownership of the objects belongs to someone that was in a different admins group, but the ability to run, view, etc was assigned to the users group (which is the same no matter which MDW you use). You need to break user level security and www.lostpassword.com does have a utility for that. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Wednesday, December 22, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks for the feedback...but there are no passwords on this db...I have my own app that returns the database password...which the one mentioned below does...in addition to the user level stuff. The problem is there are no passwords(database or user level) in this db...and thats what this tool said also. But I still can't figure out how to modify permissions. Any ideas? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 07:19:12 -0500 > >Mark, > > Since it's user level security that's at play here, you'll need a >utility. >www.lostpassword.com is one site that offers such a utility. Do a Google >search on "access" "password" and you'll turn up a bunch. There are a few >Russian sites that have them for free. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Tuesday, December 21, 2004 3:16 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 User Security > > >Hello All, > >I'm pretty sure this is a lost cause...but I just received an A97 >db...there >is no password...but I don't have permission to make any >changes(tables,queries...or even view the macros). My guess is I need to >know the UserGroup and PID that was used to change/create the permissions. >Is this correct...and are there any workarounds? > >Thanks, > >Mark > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Wed Dec 22 17:55:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 23 Dec 2004 10:55:45 +1100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Import dialogue Message-ID: <200412222355.iBMNtvRl016812@cooper.uws.edu.au> Hello all Using XP and 98 1st Question re splash screens I have an access app called mydb.mdb In the same folder as mydb.mdb I have a (large) bmp called mydb.bmp When I start the app I expect to see my BMP file load for a second - but it doesn't The standard "Access 2003" screen loads instead Anyone know why? Question 2 When you assign JPG files to the dot Picture property of an image control You get the Importing. or Loading. dialogue box I have modified the Registry as per instructions from various web sites And user groups (even the archives here had a reference to solving the Problem - the SUBJECT was Removing the annoying flash...) Anyway I thought it worked earlier this week. That is..In one of my apps I load a switchboard with a few graphics and the import dialogue box appears for each of the graphics (even though they are small graphic files) but with 3 or 4 of 'em Being opened and or loaded consecutively the dialogue Is open long enough to be annoying But I am sure when I tried this registry 'tweak' at the beginning of the week - it worked. IE I am sure it was just the hourglass in the space where the Import dialogue box used to be. Now I am revisiting this issue, the Dialogue boxes are back even though the Registry entry has been set to "No" I have noted Gustav's suggestion that. >If run under Windows XP, the relevant section is HKEY_CURRENT_USER >while under earlier Windows versions it is HKEY_LOCAL_MACHINE So..the registry keys I am editing are [HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Graphics Filters\Import\JPEG\Options] "ShowProgressDialog"="No" [HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Graphics Filters\Import\JPEG\Options] "ShowProgressDialog"="No" Any answers Many thanks Darren I From actebs at actebs.com.au Wed Dec 22 19:19:02 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 23 Dec 2004 12:19:02 +1100 Subject: [AccessD] Proper Case Message-ID: <2025BB6F17FCB54791F23CD50558332808877C@starfleet.unknown.local> Dave, Nice. I've decided to use your version. It's an elegant solution... Thanx Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of dmcafee at pacbell.net Sent: Wednesday, 22 December 2004 8:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Proper Case Vlad, I also have a sample database on Rogers website: http://rogersaccesslibrary.com/OtherLibraries.asp Scroll down until you see my name. My sample is based on some older A97 code but does the job nicely. The sample also includes a SQL Server version. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ACTEBS Sent: Tuesday, December 21, 2004 5:42 AM To: Access Group (E-mail) Subject: [AccessD] Proper Case Hi Everyone, Does anyone have a some proper case code that looks after things like McDonald etc? Thanks and a very Merry Christmas to one and all... Regards Vlad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 23 00:38:13 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 01:38:13 -0500 Subject: [AccessD] Corrupt Database References: <006101c4e862$1ef8fe10$43976bce@ralf> Message-ID: ..if its one particular mdb that is always corrupting you probably have a bad data layer ...Access retains a lot of your old code in hidden data layers for some reason ...sometimes it can cause problems in the current layer ...the only way I know of to get rid of all of the excess baggage is to decompile the mdb, close it decompiled, then open and recompile ...gets rid of probably 99% of the "buggy" mdbs that seem to appear every once in a while, at least for me ...hth :) William Hindman ----- Original Message ----- From: "Ralf Lister" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 22, 2004 3:08 PM Subject: [AccessD] Corrupt Database Hello, each once in a while one of my databases (less than 1 MByte) gets corrupted and the repair option in the Tools menu doesn't help at all. I don't know what to do (beside saving BackUps). Doe anyoone experienced the same problem and know what to do ? Saludos y Felices Fiestas Ralf Lister -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Dec 23 01:50:51 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 08:50:51 +0100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Import dialogue Message-ID: Hi Darren 1. I don't use Access 2003 so I have no suggestions for your splash screen. Also, on modern machines a splash screen is rather a millisecond flash screen living from the possible afterglow of the monitor, so I would drop the idea. 2. If the graphics on the switchboard are small, I would convert them to bitmaps and embed them in the form. That will load faster and no converting is needed, thus no flash from the converting utility. /gustav >>> d.dick at uws.edu.au 23-12-2004 00:55:45 >>> Hello all Using XP and 98 1st Question re splash screens I have an access app called mydb.mdb In the same folder as mydb.mdb I have a (large) bmp called mydb.bmp When I start the app I expect to see my BMP file load for a second - but it doesn't The standard "Access 2003" screen loads instead Anyone know why? Question 2 When you assign JPG files to the dot Picture property of an image control You get the Importing. or Loading. dialogue box I have modified the Registry as per instructions from various web sites And user groups (even the archives here had a reference to solving the Problem - the SUBJECT was Removing the annoying flash...) Anyway I thought it worked earlier this week. That is..In one of my apps I load a switchboard with a few graphics and the import dialogue box appears for each of the graphics (even though they are small graphic files) but with 3 or 4 of 'em Being opened and or loaded consecutively the dialogue Is open long enough to be annoying But I am sure when I tried this registry 'tweak' at the beginning of the week - it worked. IE I am sure it was just the hourglass in the space where the Import dialogue box used to be. Now I am revisiting this issue, the Dialogue boxes are back even though the Registry entry has been set to "No" I have noted Gustav's suggestion that. >If run under Windows XP, the relevant section is HKEY_CURRENT_USER >while under earlier Windows versions it is HKEY_LOCAL_MACHINE So..the registry keys I am editing are [HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Graphics Filters\Import\JPEG\Options] "ShowProgressDialog"="No" [HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Graphics Filters\Import\JPEG\Options] "ShowProgressDialog"="No" Any answers Many thanks Darren From dejpolsys at hotmail.com Thu Dec 23 01:51:33 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 02:51:33 -0500 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Import dialogue References: <200412222355.iBMNtvRl016812@cooper.uws.edu.au> Message-ID: Darren ..I use a one pixel bmp to suppress the Access splash screen and then load my own splash form with timer so that I control what the user sees rather than what the cpu or Redmond decides to present ...the one pixel bmp is named exactly the same as the mdb but with the bmp extension ...it has to be an actual bmp file, not a renamed rle or jpg, etc. ...it sets in the same directory and is inevitably the file immediately above the associated mdb in explorer when sorted by name ...this has worked in every mdb since '97 and continues to work for me in 2K3 ...I can't speak to what effect a large bmp splash might have since I don't use them. ..as for the import dialog problem, jpgs are not a native Access graphic format and one way or another the format has to be converted ...rather than do work arounds and mess with client registry keys I normally convert any jpg to an emf graphics file format (which Access handles as a native graphic with no conversion required ...emf is the format used by the Win GDI for copy/paste operations for instance) before using it in Access ...you have to be sure the emf is a good conversion since there are a number of format converters that only switch the file header and leave the actual raster as is (I use paintshoppro) ...another Redmond "special effect" is that regardless of what the actual file extension is on your HD, you must call the file as an .emf rather than .EMF ...if your code uses the capital letters in the extension Windows WILL try to use the Office graphics file filter (and thus the dialog) rather than seeing it as a native file format ..don't ask me why, don't know, don't care, MS is MS :( ..hth :) PS ...Steve Lebans has a ton of in depth material on graphics conversions within Access and a wealth of resources in other areas as well ...well worth a spin www.lebans.com William Hindman ----- Original Message ----- From: "Darren DICK" To: "AccessD" Sent: Wednesday, December 22, 2004 6:55 PM Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Import dialogue > Hello all > Using XP and 98 > > 1st Question re splash screens > I have an access app called mydb.mdb > In the same folder as mydb.mdb I have a (large) bmp called mydb.bmp > When I start the app I expect to see my BMP file load for a second - but > it > doesn't > The standard "Access 2003" screen loads instead > Anyone know why? > > Question 2 > When you assign JPG files to the dot Picture property of an image control > You get the Importing. or Loading. dialogue box > > I have modified the Registry as per instructions from various web sites > And user groups (even the archives here had a reference to solving the > Problem - the SUBJECT was Removing the annoying flash...) > > Anyway I thought it worked earlier this week. That is..In one of my apps > I load a switchboard with a few graphics and the import dialogue box > appears > for > each of the graphics (even though they are small graphic files) but with 3 > or 4 of 'em > Being opened and or loaded consecutively the dialogue Is open long enough > to > be annoying > But I am sure when I tried this registry 'tweak' at the beginning of the > week - it worked. > IE I am sure it was just the hourglass in the space where the Import > dialogue box used to be. > > Now I am revisiting this issue, the Dialogue boxes are back even though > the > Registry entry > has been set to "No" > I have noted Gustav's suggestion that. >>If run under Windows XP, the relevant section is HKEY_CURRENT_USER >>while under earlier Windows versions it is HKEY_LOCAL_MACHINE > So..the registry keys I am editing are > [HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Graphics > Filters\Import\JPEG\Options] > "ShowProgressDialog"="No" > > [HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Graphics > Filters\Import\JPEG\Options] > "ShowProgressDialog"="No" > > Any answers > > Many thanks > > Darren > > > > I > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Thu Dec 23 01:59:46 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 08:59:46 +0100 Subject: [AccessD] Select query to append query problem x posted Message-ID: Hi Susan Forgive me asking - but did you know about this or was it a shot in the dark? I ask because I would have expected the reverse situation - that DISTINCT would result in 3 records, while no DISTINCT would result in 14 records. Also, (Joe?) would using GROUP BY instead of DISTINCT make any difference? That would have been my first thought trying to solve the issue. /gustav >>> ssharkins at bellsouth.net 22-12-2004 04:48:41 >>> Run the SELECT without the DISTINCT keyword and see what you get. Susan H. I have a select query which properly returns 3 records. SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); When I run the same query as an append query it adds 14 records. INSERT INTO TrainDate ( DocID, EmpID ) SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); The extra records do not seem to have any common link. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From cyx5 at cdc.gov Thu Dec 23 05:31:23 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 06:31:23 -0500 Subject: [AccessD] Code Behind Conditional Formatting Message-ID: Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. From Gustav at cactus.dk Thu Dec 23 06:07:52 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 13:07:52 +0100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue Message-ID: Hi William Interesting observation! Any advantage, in Access, of emf compared to bmp? emf seems to be larger than bmp. /gustav >>> dejpolsys at hotmail.com 23-12-2004 08:51:33 >>> Darren ..I use a one pixel bmp to suppress the Access splash screen and then load my own splash form with timer so that I control what the user sees rather than what the cpu or Redmond decides to present ...the one pixel bmp is named exactly the same as the mdb but with the bmp extension ...it has to be an actual bmp file, not a renamed rle or jpg, etc. ...it sets in the same directory and is inevitably the file immediately above the associated mdb in explorer when sorted by name ...this has worked in every mdb since '97 and continues to work for me in 2K3 ...I can't speak to what effect a large bmp splash might have since I don't use them. ..as for the import dialog problem, jpgs are not a native Access graphic format and one way or another the format has to be converted ...rather than do work arounds and mess with client registry keys I normally convert any jpg to an emf graphics file format (which Access handles as a native graphic with no conversion required ...emf is the format used by the Win GDI for copy/paste operations for instance) before using it in Access ...you have to be sure the emf is a good conversion since there are a number of format converters that only switch the file header and leave the actual raster as is (I use paintshoppro) ...another Redmond "special effect" is that regardless of what the actual file extension is on your HD, you must call the file as an .emf rather than .EMF ...if your code uses the capital letters in the extension Windows WILL try to use the Office graphics file filter (and thus the dialog) rather than seeing it as a native file format ..don't ask me why, don't know, don't care, MS is MS :( ..hth :) PS ...Steve Lebans has a ton of in depth material on graphics conversions within Access and a wealth of resources in other areas as well ...well worth a spin www.lebans.com William Hindman From markamatte at hotmail.com Thu Dec 23 07:38:30 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 23 Dec 2004 13:38:30 +0000 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Thanks Jim. Do you know if the www.lostpassword.com utility will work if I don't have the original MDW? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 17:31:12 -0500 > >Mark, > ><> > > Understood. There are various utilities out there, some work on the >database password while others work on the workgroup file. You need the >later. > ><don't have permission to change anything. I can't even view the permission >settings of the groups. I'm guessing there was another workgroup...>> > > Yes. > ><> > ><> > ><never the built in...I'm not sure how they created it with no one having >the >authority to change anything?>> > > You would if you had the workgroup file that had the correct SIDs. In >in >the past, I've setup some DB's with exactly this setup. For development, I >have one MDW. For the clients, they just use the standard MDW file. > > This is possible because the user 'Admin' and the group 'users' have the >same SID (Security ID) no matter what MDW file you use. The group 'admins' >however, is different for each one. > > So in your case, ownership of the objects belongs to someone that was in >a >different admins group, but the ability to run, view, etc was assigned to >the users group (which is the same no matter which MDW you use). > > You need to break user level security and www.lostpassword.com does have >a >utility for that. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have my >own app that returns the database password...which the one mentioned below >does...in addition to the user level stuff. The problem is there are no >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. > >www.lostpassword.com is one site that offers such a utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there > >is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 07:55:35 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 08:55:35 -0500 Subject: [AccessD] A97 User Security Message-ID: Maybe a stoopid question, but I do not like .mdw's - they drive me crazy. If one creates a shortcut to open the database with a reference to a normal old .mdw file, will the database open with the specified .mdw or will it still look for the nasty one created with the original database? I would like to take all .mdw's and blow them up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, December 23, 2004 8:39 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks Jim. Do you know if the www.lostpassword.com utility will work if I don't have the original MDW? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 17:31:12 -0500 > >Mark, > ><> > > Understood. There are various utilities out there, some work on the >database password while others work on the workgroup file. You need the >later. > ><don't have permission to change anything. I can't even view the permission >settings of the groups. I'm guessing there was another workgroup...>> > > Yes. > ><> > ><> > ><never the built in...I'm not sure how they created it with no one having >the >authority to change anything?>> > > You would if you had the workgroup file that had the correct SIDs. In >in >the past, I've setup some DB's with exactly this setup. For development, I >have one MDW. For the clients, they just use the standard MDW file. > > This is possible because the user 'Admin' and the group 'users' have the >same SID (Security ID) no matter what MDW file you use. The group 'admins' >however, is different for each one. > > So in your case, ownership of the objects belongs to someone that was in >a >different admins group, but the ability to run, view, etc was assigned to >the users group (which is the same no matter which MDW you use). > > You need to break user level security and www.lostpassword.com does have >a >utility for that. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have my >own app that returns the database password...which the one mentioned below >does...in addition to the user level stuff. The problem is there are no >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. > >www.lostpassword.com is one site that offers such a utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there > >is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 23 08:21:21 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 09:21:21 -0500 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue References: Message-ID: Gustav ..off the top of my head, bmps won't handle transparency ...as you probably know I tend to standardize and then stick with something until MS breaks it ..so using emfs is just something I started doing a few years back based on some lebans code I was working with at the time ...I think MS fixed the wmf/emf doubling in XP ...it used to load an entire copy of the image in the file header for some reason which effectively doubled the file size. ..once I get some time to play I'm going to look at distributing the MS GDI dll with my runtimes (all my clients use runtimes) which appears to solve all the various image format loading, sizing, and printing problems without the Office filters and without messing with the registry ...but then I have this 25 page list of things to do when I have the time :) William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 23, 2004 7:07 AM Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue > Hi William > > Interesting observation! > Any advantage, in Access, of emf compared to bmp? > emf seems to be larger than bmp. > > /gustav > > >>>> dejpolsys at hotmail.com 23-12-2004 08:51:33 >>> > Darren > > ..I use a one pixel bmp to suppress the Access splash screen and then > load > my own splash form with timer so that I control what the user sees > rather > than what the cpu or Redmond decides to present ...the one pixel bmp is > > named exactly the same as the mdb but with the bmp extension ...it has > to be > an actual bmp file, not a renamed rle or jpg, etc. ...it sets in the > same > directory and is inevitably the file immediately above the associated > mdb in > explorer when sorted by name ...this has worked in every mdb since '97 > and > continues to work for me in 2K3 ...I can't speak to what effect a large > bmp > splash might have since I don't use them. > > ..as for the import dialog problem, jpgs are not a native Access > graphic > format and one way or another the format has to be converted ...rather > than > do work arounds and mess with client registry keys I normally convert > any > jpg to an emf graphics file format (which Access handles as a native > graphic > with no conversion required ...emf is the format used by the Win GDI > for > copy/paste operations for instance) before using it in Access ...you > have to > be sure the emf is a good conversion since there are a number of format > > converters that only switch the file header and leave the actual raster > as > is (I use paintshoppro) ...another Redmond "special effect" is that > regardless of what the actual file extension is on your HD, you must > call > the file as an .emf rather than .EMF ...if your code uses the capital > letters in the extension Windows WILL try to use the Office graphics > file > filter (and thus the dialog) rather than seeing it as a native file > format > ..don't ask me why, don't know, don't care, MS is MS :( > > ..hth :) > > PS ...Steve Lebans has a ton of in depth material on graphics > conversions > within Access and a wealth of resources in other areas as well ...well > worth > a spin www.lebans.com > > William Hindman > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Thu Dec 23 08:25:10 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 09:25:10 -0500 Subject: [AccessD] Code Behind Conditional Formatting References: Message-ID: ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 08:38:15 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 09:38:15 -0500 Subject: [AccessD] Code Behind Conditional Formatting Message-ID: Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Dec 23 09:12:02 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 09:12:02 -0600 Subject: [AccessD] Code Behind Conditional Formatting In-Reply-To: <22682325.1103813134827.JavaMail.root@sniper18.securence.com> Message-ID: <000a01c4e901$c1e29e70$de1811d8@danwaters> Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 09:26:30 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 10:26:30 -0500 Subject: [AccessD] Code Behind Conditional Formatting Message-ID: And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Dec 23 09:39:46 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 16:39:46 +0100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue Message-ID: Hi William OK, thanks. Maybe I should give those emfs a closer look. /gustav >>> dejpolsys at hotmail.com 23-12-2004 15:21:21 >>> Gustav ..off the top of my head, bmps won't handle transparency ...as you probably know I tend to standardize and then stick with something until MS breaks it ..so using emfs is just something I started doing a few years back based on some lebans code I was working with at the time ...I think MS fixed the wmf/emf doubling in XP ...it used to load an entire copy of the image in the file header for some reason which effectively doubled the file size. ..once I get some time to play I'm going to look at distributing the MS GDI dll with my runtimes (all my clients use runtimes) which appears to solve all the various image format loading, sizing, and printing problems without the Office filters and without messing with the registry ...but then I have this 25 page list of things to do when I have the time :) William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 23, 2004 7:07 AM Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue > Hi William > > Interesting observation! > Any advantage, in Access, of emf compared to bmp? > emf seems to be larger than bmp. From Gustav at cactus.dk Thu Dec 23 09:52:24 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 16:52:24 +0100 Subject: [AccessD] SQL theta-joins Message-ID: Hi all >From the wish-list for Access: http://www.smartaccessnewsletter.com/ME2/Audiences/dirmod.asp?sid=&nm=&type=Publishing&mod=Publications%3A%3AArticle&mid=8F3A7027421841978F18BE895F87F791&AudID=C01C1922F71E483AB162D148B15A6F6D&tier=4&id=6F405924A71D4B00A251C0567C463859 --- "Support for theta-joins joins using (<>, >, >=, <, <=) arguments and Union queries in the query design window." I suspect that most developers don't even know that Access actually supports these extensions, so this suggestion would be a worthwhile way to bring these concepts into the mainstream. --- Anyone having examples on theta-joins? /gustav From dwaters at usinternet.com Thu Dec 23 09:48:01 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 09:48:01 -0600 Subject: [AccessD] Code Behind Conditional Formatting In-Reply-To: <16724153.1103815670207.JavaMail.root@sniper14.securence.com> Message-ID: <000b01c4e906$c8c6bdc0$de1811d8@danwaters> Visibility is not one of the conditional formats, but color is. Using code for CF, you can change your control's color to whatever the background is. And, you'll also need to add code in the Enter or GotFocus event for that control to move the focus away if someone selects it or tabs into it. You're going uphill now . . . ! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 9:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Dec 23 10:10:13 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 23 Dec 2004 08:10:13 -0800 Subject: [AccessD] Resizing Problem Message-ID: <00ec01c4e909$e275b980$6401a8c0@HAL9002> Dear List: I'm using the Scale Form routines from the ADH 2K book which work well except that at resolutions higher than 1024 x 768 it doesn't resize the option frames correctly - gives a value that results in an invalid procedure call on the .Top property. Is anyone familiar with this problem and know the fix? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From Gustav at cactus.dk Thu Dec 23 10:25:33 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 17:25:33 +0100 Subject: [AccessD] SQL theta-joins Message-ID: Hi all Found one myself: http://learning.unl.ac.uk/ib212/week6/handout.htm /gustav >>> Gustav at cactus.dk 23-12-2004 16:52:24 >>> Hi all >From the wish-list for Access: http://www.smartaccessnewsletter.com/ME2/Audiences/dirmod.asp?sid=&nm=&type=Publishing&mod=Publications%3A%3AArticle&mid=8F3A7027421841978F18BE895F87F791&AudID=C01C1922F71E483AB162D148B15A6F6D&tier=4&id=6F405924A71D4B00A251C0567C463859 --- "Support for theta-joins joins using (<>, >, >=, <, <=) arguments and Union queries in the query design window." I suspect that most developers don't even know that Access actually supports these extensions, so this suggestion would be a worthwhile way to bring these concepts into the mainstream. --- Anyone having examples on theta-joins? From cfoust at infostatsystems.com Thu Dec 23 10:29:10 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 08:29:10 -0800 Subject: [AccessD] A97 User Security Message-ID: If you create the shortcut properly, the database will use the specified mdw. We do this all the time, since we distribute commercial applications with user security applied. However, if the database was actually secured properly, only an mdw that matches the permissions in the database will allow you to open it. All Access databases use an mdw, since security is part of all of them, even if you never invoke it. The default System.mdw is totally unsecured and everyone logs in as the Admin user. If a database is secured correctly, the Admin user has no permissions and is no longer part of the Admins GROUP, so using an unsecured mdw won't get you into the database. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 5:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 User Security Maybe a stoopid question, but I do not like .mdw's - they drive me crazy. If one creates a shortcut to open the database with a reference to a normal old .mdw file, will the database open with the specified .mdw or will it still look for the nasty one created with the original database? I would like to take all .mdw's and blow them up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, December 23, 2004 8:39 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks Jim. Do you know if the www.lostpassword.com utility will work if I don't have the original MDW? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 17:31:12 -0500 > >Mark, > ><> > > Understood. There are various utilities out there, some work on the >database password while others work on the workgroup file. You need the >later. > ><don't have permission to change anything. I can't even view the permission >settings of the groups. I'm guessing there was another workgroup...>> > > Yes. > ><> > ><> > ><never the built in...I'm not sure how they created it with no one having >the >authority to change anything?>> > > You would if you had the workgroup file that had the correct SIDs. In >in >the past, I've setup some DB's with exactly this setup. For development, I >have one MDW. For the clients, they just use the standard MDW file. > > This is possible because the user 'Admin' and the group 'users' have the >same SID (Security ID) no matter what MDW file you use. The group 'admins' >however, is different for each one. > > So in your case, ownership of the objects belongs to someone that was in >a >different admins group, but the ability to run, view, etc was assigned to >the users group (which is the same no matter which MDW you use). > > You need to break user level security and www.lostpassword.com does have >a >utility for that. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have my >own app that returns the database password...which the one mentioned below >does...in addition to the user level stuff. The problem is there are no >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. www.lostpassword.com is one site that offers such a > >utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 23 10:38:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 08:38:45 -0800 Subject: [AccessD] SQL theta-joins Message-ID: That is a wonderful overview of all kinds of relational stuff, Gustav. Thanks for the link. I suspect whoever added that to the wish list didn't really understand the way theta-joins are expressed in SQL. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, December 23, 2004 8:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL theta-joins Hi all Found one myself: http://learning.unl.ac.uk/ib212/week6/handout.htm /gustav >>> Gustav at cactus.dk 23-12-2004 16:52:24 >>> Hi all >From the wish-list for Access: http://www.smartaccessnewsletter.com/ME2/Audiences/dirmod.asp?sid=&nm=&t ype=Publishing&mod=Publications%3A%3AArticle&mid=8F3A7027421841978F18BE8 95F87F791&AudID=C01C1922F71E483AB162D148B15A6F6D&tier=4&id=6F405924A71D4 B00A251C0567C463859 --- "Support for theta-joins joins using (<>, >, >=, <, <=) arguments and Union queries in the query design window." I suspect that most developers don't even know that Access actually supports these extensions, so this suggestion would be a worthwhile way to bring these concepts into the mainstream. --- Anyone having examples on theta-joins? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 10:40:25 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 11:40:25 -0500 Subject: [AccessD] A97 User Security Message-ID: Well I am willing to bet the nimrods that created the databases here did not secure them properly and I can blow off their blasted .mdw files that were created for the sole purpose of job security. Men do the darndest things. Think you feed them too much and make them fat, think you should not starch their underwear. Think if they lock you out you can't get back in. Hehehehe. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 User Security If you create the shortcut properly, the database will use the specified mdw. We do this all the time, since we distribute commercial applications with user security applied. However, if the database was actually secured properly, only an mdw that matches the permissions in the database will allow you to open it. All Access databases use an mdw, since security is part of all of them, even if you never invoke it. The default System.mdw is totally unsecured and everyone logs in as the Admin user. If a database is secured correctly, the Admin user has no permissions and is no longer part of the Admins GROUP, so using an unsecured mdw won't get you into the database. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 5:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 User Security Maybe a stoopid question, but I do not like .mdw's - they drive me crazy. If one creates a shortcut to open the database with a reference to a normal old .mdw file, will the database open with the specified .mdw or will it still look for the nasty one created with the original database? I would like to take all .mdw's and blow them up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, December 23, 2004 8:39 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks Jim. Do you know if the www.lostpassword.com utility will work if I don't have the original MDW? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 17:31:12 -0500 > >Mark, > ><> > > Understood. There are various utilities out there, some work on the >database password while others work on the workgroup file. You need the >later. > ><don't have permission to change anything. I can't even view the permission >settings of the groups. I'm guessing there was another workgroup...>> > > Yes. > ><> > ><> > ><never the built in...I'm not sure how they created it with no one having >the >authority to change anything?>> > > You would if you had the workgroup file that had the correct SIDs. In >in >the past, I've setup some DB's with exactly this setup. For development, I >have one MDW. For the clients, they just use the standard MDW file. > > This is possible because the user 'Admin' and the group 'users' have the >same SID (Security ID) no matter what MDW file you use. The group 'admins' >however, is different for each one. > > So in your case, ownership of the objects belongs to someone that was in >a >different admins group, but the ability to run, view, etc was assigned to >the users group (which is the same no matter which MDW you use). > > You need to break user level security and www.lostpassword.com does have >a >utility for that. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have my >own app that returns the database password...which the one mentioned below >does...in addition to the user level stuff. The problem is there are no >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. www.lostpassword.com is one site that offers such a > >utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 10:41:20 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 11:41:20 -0500 Subject: [AccessD] Capture That Record Number Message-ID: I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. From cfoust at infostatsystems.com Thu Dec 23 10:47:58 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 08:47:58 -0800 Subject: [AccessD] Capture That Record Number Message-ID: You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Dec 23 10:59:35 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 23 Dec 2004 08:59:35 -0800 Subject: [AccessD] A97 User Security References: Message-ID: <41CAF977.2020405@shaw.ca> You might want to try some these err.. interrogation programs to retrieve passwords I was pointed to this site by Michael Kaplan. The sites sponsor or isp uses SPYLog tracking cookies so you may want to delete and or block them after a visit. The price of getting free webspace in Russia. Mark A Matte wrote: > Thanks Jim. > > Do you know if the www.lostpassword.com utility will work if I don't > have the original MDW? > > Thanks, > > Mark > >> From: "Jim Dettman" >> Reply-To: Access Developers discussion and problem >> solving >> To: "Access Developers discussion and problem >> solving" >> Subject: RE: [AccessD] A97 User Security >> Date: Wed, 22 Dec 2004 17:31:12 -0500 >> >> Mark, >> >> <> >> >> Understood. There are various utilities out there, some work on the >> database password while others work on the workgroup file. You need the >> later. >> >> <> both...but >> don't have permission to change anything. I can't even view the >> permission >> settings of the groups. I'm guessing there was another workgroup...>> >> >> Yes. >> >> <> >> >> <> >> >> <> never the built in...I'm not sure how they created it with no one >> having the >> authority to change anything?>> >> >> You would if you had the workgroup file that had the correct SIDs. >> In in >> the past, I've setup some DB's with exactly this setup. For >> development, I >> have one MDW. For the clients, they just use the standard MDW file. >> >> This is possible because the user 'Admin' and the group 'users' >> have the >> same SID (Security ID) no matter what MDW file you use. The group >> 'admins' >> however, is different for each one. >> >> So in your case, ownership of the objects belongs to someone that >> was in a >> different admins group, but the ability to run, view, etc was >> assigned to >> the users group (which is the same no matter which MDW you use). >> >> You need to break user level security and www.lostpassword.com does >> have a >> utility for that. >> >> Jim Dettman >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> Sent: Wednesday, December 22, 2004 11:49 AM >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] A97 User Security >> >> >> Thanks for the feedback...but there are no passwords on this db...I >> have my >> own app that returns the database password...which the one mentioned >> below >> does...in addition to the user level stuff. The problem is there are no >> passwords(database or user level) in this db...and thats what this >> tool said >> also. But I still can't figure out how to modify permissions. >> >> Any ideas? >> >> Thanks, >> >> Mark >> >> >> >> >From: "Jim Dettman" >> >Reply-To: Access Developers discussion and problem >> >solving >> >To: "Access Developers discussion and problem >> >solving" >> >Subject: RE: [AccessD] A97 User Security >> >Date: Wed, 22 Dec 2004 07:19:12 -0500 >> > >> >Mark, >> > >> > Since it's user level security that's at play here, you'll need a >> >utility. >> >www.lostpassword.com is one site that offers such a utility. Do a >> Google >> >search on "access" "password" and you'll turn up a bunch. There are >> a few >> >Russian sites that have them for free. >> > >> >Jim Dettman >> > >> > >> >-----Original Message----- >> >From: accessd-bounces at databaseadvisors.com >> >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> >Sent: Tuesday, December 21, 2004 3:16 PM >> >To: accessd at databaseadvisors.com >> >Subject: [AccessD] A97 User Security >> > >> > >> >Hello All, >> > >> >I'm pretty sure this is a lost cause...but I just received an A97 >> >db...there >> >is no password...but I don't have permission to make any >> >changes(tables,queries...or even view the macros). My guess is I >> need to >> >know the UserGroup and PID that was used to change/create the >> permissions. >> >Is this correct...and are there any workarounds? >> > >> >Thanks, >> > >> >Mark >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Dec 23 11:00:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 23 Dec 2004 09:00:57 -0800 Subject: [AccessD] A97 User Security References: Message-ID: <41CAF9C9.4040303@shaw.ca> Ooops I guess you need the URL http://accesstools.narod.ru/index.html Mark A Matte wrote: > Thanks Jim. > > Do you know if the www.lostpassword.com utility will work if I don't > have the original MDW? > > Thanks, > > Mark > >> From: "Jim Dettman" >> Reply-To: Access Developers discussion and problem >> solving >> To: "Access Developers discussion and problem >> solving" >> Subject: RE: [AccessD] A97 User Security >> Date: Wed, 22 Dec 2004 17:31:12 -0500 >> >> Mark, >> >> <> >> >> Understood. There are various utilities out there, some work on the >> database password while others work on the workgroup file. You need the >> later. >> >> <> both...but >> don't have permission to change anything. I can't even view the >> permission >> settings of the groups. I'm guessing there was another workgroup...>> >> >> Yes. >> >> <> >> >> <> >> >> <> never the built in...I'm not sure how they created it with no one >> having the >> authority to change anything?>> >> >> You would if you had the workgroup file that had the correct SIDs. >> In in >> the past, I've setup some DB's with exactly this setup. For >> development, I >> have one MDW. For the clients, they just use the standard MDW file. >> >> This is possible because the user 'Admin' and the group 'users' >> have the >> same SID (Security ID) no matter what MDW file you use. The group >> 'admins' >> however, is different for each one. >> >> So in your case, ownership of the objects belongs to someone that >> was in a >> different admins group, but the ability to run, view, etc was >> assigned to >> the users group (which is the same no matter which MDW you use). >> >> You need to break user level security and www.lostpassword.com does >> have a >> utility for that. >> >> Jim Dettman >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> Sent: Wednesday, December 22, 2004 11:49 AM >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] A97 User Security >> >> >> Thanks for the feedback...but there are no passwords on this db...I >> have my >> own app that returns the database password...which the one mentioned >> below >> does...in addition to the user level stuff. The problem is there are no >> passwords(database or user level) in this db...and thats what this >> tool said >> also. But I still can't figure out how to modify permissions. >> >> Any ideas? >> >> Thanks, >> >> Mark >> >> >> >> >From: "Jim Dettman" >> >Reply-To: Access Developers discussion and problem >> >solving >> >To: "Access Developers discussion and problem >> >solving" >> >Subject: RE: [AccessD] A97 User Security >> >Date: Wed, 22 Dec 2004 07:19:12 -0500 >> > >> >Mark, >> > >> > Since it's user level security that's at play here, you'll need a >> >utility. >> >www.lostpassword.com is one site that offers such a utility. Do a >> Google >> >search on "access" "password" and you'll turn up a bunch. There are >> a few >> >Russian sites that have them for free. >> > >> >Jim Dettman >> > >> > >> >-----Original Message----- >> >From: accessd-bounces at databaseadvisors.com >> >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> >Sent: Tuesday, December 21, 2004 3:16 PM >> >To: accessd at databaseadvisors.com >> >Subject: [AccessD] A97 User Security >> > >> > >> >Hello All, >> > >> >I'm pretty sure this is a lost cause...but I just received an A97 >> >db...there >> >is no password...but I don't have permission to make any >> >changes(tables,queries...or even view the macros). My guess is I >> need to >> >know the UserGroup and PID that was used to change/create the >> permissions. >> >Is this correct...and are there any workarounds? >> > >> >Thanks, >> > >> >Mark >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Thu Dec 23 11:00:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 23 Dec 2004 12:00:03 -0500 Subject: [AccessD] Capture That Record Number In-Reply-To: Message-ID: <000801c4e910$dc2187b0$677aa8c0@ColbyM6805> Yea, presto. Of course in a continuous form the record isn't going to be positioned the same but hey... Works exactly as described for single form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Dec 23 11:10:30 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 23 Dec 2004 22:40:30 +0530 Subject: [AccessD] Code Behind Conditional Formatting References: Message-ID: <009301c4e912$4eb19300$d11865cb@winxp> Karen, Programmatic manipulation of conditional formatting at run time is handled via FormatConditions Collection of the control in question. Maximum limit of 3 conditions at a time continues to hold good in code based solution as well. However, it enables a level of flexibility and control, that may be vital for certain tasks. Another interesting advantage of code based approach is that you are no longer confined to the limited choice of colors offered by the routine dialog box for conditional formatting. The whole spectrum of virtually unlimited color combinations is available to choose from. Sample code (in form's module) for dynamic manipulation of conditional formatting, is given below. Subroutine named P_SetFormat() can be used for setting up new formatting, while P_EditFormat() can be used for editing the existing conditions. Desired color values can be substituted in statements (A) to (F). Regards, A.D.Tejpal =============================== Private Sub P_SetFormat(ByVal Fnm As String) ' Sets Fresh Conditional Formatting in ' text box named Fnm Dim Cnt As Integer, Cdn As String, Bkc As Long With Me(Fnm).FormatConditions .Delete For Cnt = 1 To 3 Select Case Cnt Case 1 Cdn = "[" & Fnm & "] < 0" Bkc = 14001649 ' (A) Case 2 Cdn = "[" & Fnm & "] > 0 And [" & _ Fnm & "] <= 100" Bkc = 10932206 ' (B) Case 3 Cdn = "[" & Fnm & "] > 100" Bkc = 13434293 ' (C) End Select With .Add(acExpression, , Cdn) .BackColor = Bkc .FontBold = True End With Next End With End Sub ----------------------------------------------------- Private Sub P_EditFormat(ByVal Fnm As String) ' Edits existing Conditional Formatting in ' text box named Fnm Dim Fct As Integer, Bkc As Long, Cnt As Integer Fct = Me(Fnm).FormatConditions.Count If Fct = 0 Then Exit Sub End If For Cnt = 0 To Fct - 1 Select Case Cnt Case 0 Bkc = 14001649 ' (D) Case 1 Bkc = 10932206 ' (E) Case 2 Bkc = 13434293 ' (F) End Select Me(Fnm).FormatConditions(Cnt).BackColor = Bkc Next End Sub =============================== ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 20:56 Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. From cyx5 at cdc.gov Thu Dec 23 11:09:45 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 12:09:45 -0500 Subject: [AccessD] Capture That Record Number Message-ID: That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 11:10:24 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 12:10:24 -0500 Subject: [AccessD] Capture That Record Number Message-ID: And the wisest new Dad of all is heard from.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 23, 2004 12:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Capture That Record Number Yea, presto. Of course in a continuous form the record isn't going to be positioned the same but hey... Works exactly as described for single form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 11:18:47 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 12:18:47 -0500 Subject: [AccessD] Code Behind Conditional Formatting Message-ID: Thank you! This is great, a whole new world. I hit the color problem almost immediately, I wanted to make it the default color or transparent and it was not there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Thursday, December 23, 2004 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting Karen, Programmatic manipulation of conditional formatting at run time is handled via FormatConditions Collection of the control in question. Maximum limit of 3 conditions at a time continues to hold good in code based solution as well. However, it enables a level of flexibility and control, that may be vital for certain tasks. Another interesting advantage of code based approach is that you are no longer confined to the limited choice of colors offered by the routine dialog box for conditional formatting. The whole spectrum of virtually unlimited color combinations is available to choose from. Sample code (in form's module) for dynamic manipulation of conditional formatting, is given below. Subroutine named P_SetFormat() can be used for setting up new formatting, while P_EditFormat() can be used for editing the existing conditions. Desired color values can be substituted in statements (A) to (F). Regards, A.D.Tejpal =============================== Private Sub P_SetFormat(ByVal Fnm As String) ' Sets Fresh Conditional Formatting in ' text box named Fnm Dim Cnt As Integer, Cdn As String, Bkc As Long With Me(Fnm).FormatConditions .Delete For Cnt = 1 To 3 Select Case Cnt Case 1 Cdn = "[" & Fnm & "] < 0" Bkc = 14001649 ' (A) Case 2 Cdn = "[" & Fnm & "] > 0 And [" & _ Fnm & "] <= 100" Bkc = 10932206 ' (B) Case 3 Cdn = "[" & Fnm & "] > 100" Bkc = 13434293 ' (C) End Select With .Add(acExpression, , Cdn) .BackColor = Bkc .FontBold = True End With Next End With End Sub ----------------------------------------------------- Private Sub P_EditFormat(ByVal Fnm As String) ' Edits existing Conditional Formatting in ' text box named Fnm Dim Fct As Integer, Bkc As Long, Cnt As Integer Fct = Me(Fnm).FormatConditions.Count If Fct = 0 Then Exit Sub End If For Cnt = 0 To Fct - 1 Select Case Cnt Case 0 Bkc = 14001649 ' (D) Case 1 Bkc = 10932206 ' (E) Case 2 Bkc = 13434293 ' (F) End Select Me(Fnm).FormatConditions(Cnt).BackColor = Bkc Next End Sub =============================== ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 20:56 Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 23 11:22:05 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 12:22:05 -0500 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue References: Message-ID: ..if I were going to change something right now I'd go the GDI dll route which lets you use virtually any format anywhere in your app ...take a look at lebans updates and give it a try. William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 23, 2004 10:39 AM Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue > Hi William > > OK, thanks. Maybe I should give those emfs a closer look. > > /gustav > >>>> dejpolsys at hotmail.com 23-12-2004 15:21:21 >>> > Gustav > > ..off the top of my head, bmps won't handle transparency ...as you > probably > know I tend to standardize and then stick with something until MS > breaks it > ..so using emfs is just something I started doing a few years back > based on > some lebans code I was working with at the time ...I think MS fixed the > > wmf/emf doubling in XP ...it used to load an entire copy of the image > in the > file header for some reason which effectively doubled the file size. > > ..once I get some time to play I'm going to look at distributing the MS > GDI > dll with my runtimes (all my clients use runtimes) which appears to > solve > all the various image format loading, sizing, and printing problems > without > the Office filters and without messing with the registry ...but then I > have > this 25 page list of things to do when I have the time :) > > William Hindman > > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Thursday, December 23, 2004 7:07 AM > Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG > Importdialogue > > >> Hi William >> >> Interesting observation! >> Any advantage, in Access, of emf compared to bmp? >> emf seems to be larger than bmp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Dec 23 11:23:35 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 09:23:35 -0800 Subject: [AccessD] Capture That Record Number Message-ID: It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Dec 23 11:33:56 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 23 Dec 2004 23:03:56 +0530 Subject: [AccessD] Code Behind Conditional Formatting References: Message-ID: <00d101c4e915$944ff6b0$d11865cb@winxp> Karen, Programmatic manipulation of conditional formatting involves FormatConditions collection of the control in question. Maximum limit of three conditions at a time, continues to apply. However, for certain tasks, the level of flexibility and control offered, can make a code based solution the preferred alternative. Another interesting advantage - choice of colors need not be confined to the 40 pre-defined ones offered by the dialog box (invoked by clicking Format > Conditional Formatting in the standard menu bar). The whole spectrum offered by Access for the back color of its forms and text boxes (format tab on the properties dialog box), can be availed of. The variety of custom shades that can be formulated, is virtually unlimited. Sample code (in form's module) for dynamic manipulation of conditional formatting, is given below. Subroutine named P_SetFormat() can be used for setting up new formatting, while P_EditFormat() can be used for editing the existing conditions. Desired color values can be substituted in statements (A) to (F). Regards, A.D.Tejpal -------------- =============================== Private Sub P_SetFormat(ByVal Fnm As String) ' Sets fresh Conditional Formatting in ' text box named Fnm Dim Cnt As Integer, Cdn As String, Bkc As Long With Me(Fnm).FormatConditions .Delete For Cnt = 1 To 3 Select Case Cnt Case 1 Cdn = "[" & Fnm & "] < 0" Bkc = 14001649 ' (A) Case 2 Cdn = "[" & Fnm & "] > 0 And [" & _ Fnm & "] <= 100" Bkc = 10932206 ' (B) Case 3 Cdn = "[" & Fnm & "] > 100" Bkc = 13434293 ' (C) End Select With .Add(acExpression, , Cdn) .BackColor = Bkc .FontBold = True End With Next End With End Sub ----------------------------------------------------- Private Sub P_EditFormat(ByVal Fnm As String) ' Edits existing Conditional Formatting in ' text box named Fnm Dim Fct As Integer, Bkc As Long, Cnt As Integer Fct = Me(Fnm).FormatConditions.Count If Fct = 0 Then Exit Sub End If For Cnt = 0 To Fct - 1 Select Case Cnt Case 0 Bkc = 14001649 ' (D) Case 1 Bkc = 10932206 ' (E) Case 2 Bkc = 13434293 ' (F) End Select Me(Fnm).FormatConditions(Cnt).BackColor = Bkc Next End Sub =============================== ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 20:56 Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. From cyx5 at cdc.gov Thu Dec 23 11:35:40 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 12:35:40 -0500 Subject: [AccessD] Capture That Record Number Message-ID: I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 23 11:56:29 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 09:56:29 -0800 Subject: [AccessD] Capture That Record Number Message-ID: OK, that makes it clearer. In that case, you might do a MovePrevious and store *that* key before the requery. Then you could move back to the stored record afterwards. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Dec 23 12:00:35 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 23 Dec 2004 23:30:35 +0530 Subject: [AccessD] Code Behind Conditional Formatting References: Message-ID: <015101c4e919$64b2cc30$d11865cb@winxp> You are most welcome Karen! A.D.Tejpal -------------- ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 22:48 Subject: RE: [AccessD] Code Behind Conditional Formatting Thank you! This is great, a whole new world. I hit the color problem almost immediately, I wanted to make it the default color or transparent and it was not there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Thursday, December 23, 2004 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting Karen, Programmatic manipulation of conditional formatting at run time is handled via FormatConditions Collection of the control in question. Maximum limit of 3 conditions at a time continues to hold good in code based solution as well. However, it enables a level of flexibility and control, that may be vital for certain tasks. Another interesting advantage of code based approach is that you are no longer confined to the limited choice of colors offered by the routine dialog box for conditional formatting. The whole spectrum of virtually unlimited color combinations is available to choose from. Sample code (in form's module) for dynamic manipulation of conditional formatting, is given below. Subroutine named P_SetFormat() can be used for setting up new formatting, while P_EditFormat() can be used for editing the existing conditions. Desired color values can be substituted in statements (A) to (F). Regards, A.D.Tejpal =============================== Private Sub P_SetFormat(ByVal Fnm As String) ' Sets Fresh Conditional Formatting in ' text box named Fnm Dim Cnt As Integer, Cdn As String, Bkc As Long With Me(Fnm).FormatConditions .Delete For Cnt = 1 To 3 Select Case Cnt Case 1 Cdn = "[" & Fnm & "] < 0" Bkc = 14001649 ' (A) Case 2 Cdn = "[" & Fnm & "] > 0 And [" & _ Fnm & "] <= 100" Bkc = 10932206 ' (B) Case 3 Cdn = "[" & Fnm & "] > 100" Bkc = 13434293 ' (C) End Select With .Add(acExpression, , Cdn) .BackColor = Bkc .FontBold = True End With Next End With End Sub ----------------------------------------------------- Private Sub P_EditFormat(ByVal Fnm As String) ' Edits existing Conditional Formatting in ' text box named Fnm Dim Fct As Integer, Bkc As Long, Cnt As Integer Fct = Me(Fnm).FormatConditions.Count If Fct = 0 Then Exit Sub End If For Cnt = 0 To Fct - 1 Select Case Cnt Case 0 Bkc = 14001649 ' (D) Case 1 Bkc = 10932206 ' (E) Case 2 Bkc = 13434293 ' (F) End Select Me(Fnm).FormatConditions(Cnt).BackColor = Bkc Next End Sub =============================== ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 20:56 Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. From cyx5 at cdc.gov Thu Dec 23 12:12:50 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 13:12:50 -0500 Subject: [AccessD] Capture That Record Number Message-ID: Hmm. Sometimes it does not delete the record as there may be more than one field that needs changing and they may opt not to change all the bad fields until they see if Susie Fingernail meant to change the value or if our value is right. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number OK, that makes it clearer. In that case, you might do a MovePrevious and store *that* key before the requery. Then you could move back to the stored record afterwards. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Dec 23 12:10:46 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 12:10:46 -0600 Subject: [AccessD] Capture That Record Number In-Reply-To: <31675392.1103823533174.JavaMail.root@sniper22.securence.com> Message-ID: <001701c4e91a$b9af4730$de1811d8@danwaters> Nimrods? I learned that when I was little, and I save it for special occasions - just like this one for people who created 855 databases when they needed one! I looked this up and of course there would be a city(?) in Minnesota called Nimrod. It has 65 people. Dan Blaine, MN -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Dec 23 12:27:02 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 12:27:02 -0600 Subject: [AccessD] Capture That Record Number In-Reply-To: <31675392.1103823533174.JavaMail.root@sniper22.securence.com> Message-ID: <001801c4e91c$ffd6f490$de1811d8@danwaters> Karen, Could 'Susie' enter the parts using a form designed for that purpose? I guess the data could go to a 'NewInfo' table. The form could have some data validation where appropriate, and you could avoid the spreadsheet altogether. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 12:29:50 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 13:29:50 -0500 Subject: [AccessD] Capture That Record Number Message-ID: It gets better. They create an additional 30 - 50 new databases per month. One for each assembly that comes in. It is like the "trouble with tribbles"! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 1:11 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Capture That Record Number Nimrods? I learned that when I was little, and I save it for special occasions - just like this one for people who created 855 databases when they needed one! I looked this up and of course there would be a city(?) in Minnesota called Nimrod. It has 65 people. Dan Blaine, MN -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 12:35:28 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 13:35:28 -0500 Subject: [AccessD] Capture That Record Number Message-ID: Wouldn't I love that? This is a process that was put into place a long time ago and is *working*. My plan is to present to them a good database to management, then proposing the idea that the manufacturers should be using a nice little database to present their data to us that we can distribute over the web so they have access to their most recent parts file. Imagine this - each of these manufacturers has to maintain their own data source of their current items and we have over 400 manufacturers. These people are not database people, more like Word folks. One step at a time, one success at a time. Everything that I have done for them has improved their lives and ticked them off as they spent so much money on junk databases for years. I am in a win-win situation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Capture That Record Number Karen, Could 'Susie' enter the parts using a form designed for that purpose? I guess the data could go to a 'NewInfo' table. The form could have some data validation where appropriate, and you could avoid the spreadsheet altogether. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Dec 23 12:40:55 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 12:40:55 -0600 Subject: [AccessD] Capture That Record Number In-Reply-To: <11465020.1103827043572.JavaMail.root@sniper17.securence.com> Message-ID: <001901c4e91e$f0323750$de1811d8@danwaters> Nice! Keep on Winning! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number Wouldn't I love that? This is a process that was put into place a long time ago and is *working*. My plan is to present to them a good database to management, then proposing the idea that the manufacturers should be using a nice little database to present their data to us that we can distribute over the web so they have access to their most recent parts file. Imagine this - each of these manufacturers has to maintain their own data source of their current items and we have over 400 manufacturers. These people are not database people, more like Word folks. One step at a time, one success at a time. Everything that I have done for them has improved their lives and ticked them off as they spent so much money on junk databases for years. I am in a win-win situation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Capture That Record Number Karen, Could 'Susie' enter the parts using a form designed for that purpose? I guess the data could go to a 'NewInfo' table. The form could have some data validation where appropriate, and you could avoid the spreadsheet altogether. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 23 13:21:54 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 11:21:54 -0800 Subject: [AccessD] Capture That Record Number Message-ID: OK, then save the current key and THEN move previous and save that one to another variable. After the requery, look for the current one and if you get a NoMatch, look for the previous key. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 10:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number Hmm. Sometimes it does not delete the record as there may be more than one field that needs changing and they may opt not to change all the bad fields until they see if Susie Fingernail meant to change the value or if our value is right. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number OK, that makes it clearer. In that case, you might do a MovePrevious and store *that* key before the requery. Then you could move back to the stored record afterwards. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 13:28:35 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 14:28:35 -0500 Subject: [AccessD] Capture That Record Number Message-ID: Got it, it is cool. Wait until they see it. Combined with the conditional formatting to highlight differences, this is neat. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 2:22 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number OK, then save the current key and THEN move previous and save that one to another variable. After the requery, look for the current one and if you get a NoMatch, look for the previous key. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 10:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number Hmm. Sometimes it does not delete the record as there may be more than one field that needs changing and they may opt not to change all the bad fields until they see if Susie Fingernail meant to change the value or if our value is right. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number OK, that makes it clearer. In that case, you might do a MovePrevious and store *that* key before the requery. Then you could move back to the stored record afterwards. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Thu Dec 23 14:04:31 2004 From: greggs at msn.com (Gregg) Date: Thu, 23 Dec 2004 14:04:31 -0600 Subject: [AccessD] Capture That Record Number References: Message-ID: Is there a wizard or tool out there to make Union Queries? Seems like there ought to be some sort of grid layout format that create the SQL. Thanks... and OT... Merry Christmas! Gregg Steinbrenner From Jim.Hale at FleetPride.com Thu Dec 23 14:16:35 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 23 Dec 2004 14:16:35 -0600 Subject: [AccessD] Capture That Record Number Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337307@corp-es01.fleetpride.com> no wizard but you can make two separate queries using the grid and save them, switch to sql view in one of them, type the word "Union" at the end and cut and paste the sql from the second query. Pretty simple. Of course, the field data types must be the same. Jim Hale -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Thursday, December 23, 2004 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Capture That Record Number Is there a wizard or tool out there to make Union Queries? Seems like there ought to be some sort of grid layout format that create the SQL. Thanks... and OT... Merry Christmas! Gregg Steinbrenner -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From garykjos at gmail.com Thu Dec 23 14:17:29 2004 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 23 Dec 2004 14:17:29 -0600 Subject: [AccessD] Capture That Record Number In-Reply-To: References: Message-ID: I just make a regular select query and then copy and paste the SQL from it into a new query for the Union. On Thu, 23 Dec 2004 14:04:31 -0600, Gregg wrote: > Is there a wizard or tool out there to make Union Queries? Seems like there ought to be some sort of grid layout format that create the SQL. Thanks... and OT... Merry Christmas! > > Gregg Steinbrenner > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From greggs at msn.com Thu Dec 23 15:14:14 2004 From: greggs at msn.com (Gregg) Date: Thu, 23 Dec 2004 15:14:14 -0600 Subject: [AccessD] Union Queries References: <6A6AA9DF57E4F046BDA1E273BDDB6772337307@corp-es01.fleetpride.com> Message-ID: Good Idea.... sorry about the wrong subject line. ----- Original Message ----- From: Hale, Jim To: 'Access Developers discussion and problem solving' Sent: Thursday, December 23, 2004 2:16 PM Subject: RE: [AccessD] Capture That Record Number no wizard but you can make two separate queries using the grid and save them, switch to sql view in one of them, type the word "Union" at the end and cut and paste the sql from the second query. Pretty simple. Of course, the field data types must be the same. Jim Hale -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Thursday, December 23, 2004 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Capture That Record Number Is there a wizard or tool out there to make Union Queries? Seems like there ought to be some sort of grid layout format that create the SQL. Thanks... and OT... Merry Christmas! Gregg Steinbrenner -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email.-- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 23 19:24:08 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 24 Dec 2004 12:24:08 +1100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue In-Reply-To: Message-ID: <200412240124.iBO1OERl014722@cooper.uws.edu.au> Thanks to all who replied I will battle on Have a great Christmas and a safe holiday See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, 24 December 2004 4:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue ..if I were going to change something right now I'd go the GDI dll route which lets you use virtually any format anywhere in your app ...take a look at lebans updates and give it a try. William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 23, 2004 10:39 AM Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue > Hi William > > OK, thanks. Maybe I should give those emfs a closer look. > > /gustav > >>>> dejpolsys at hotmail.com 23-12-2004 15:21:21 >>> > Gustav > > ..off the top of my head, bmps won't handle transparency ...as you > probably know I tend to standardize and then stick with something > until MS breaks it ..so using emfs is just something I started doing a > few years back based on some lebans code I was working with at the > time ...I think MS fixed the > > wmf/emf doubling in XP ...it used to load an entire copy of the image > in the file header for some reason which effectively doubled the file > size. > > ..once I get some time to play I'm going to look at distributing the > MS GDI dll with my runtimes (all my clients use runtimes) which > appears to solve all the various image format loading, sizing, and > printing problems without the Office filters and without messing with > the registry ...but then I have this 25 page list of things to do when > I have the time :) > > William Hindman > > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Thursday, December 23, 2004 7:07 AM > Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG > Importdialogue > > >> Hi William >> >> Interesting observation! >> Any advantage, in Access, of emf compared to bmp? >> emf seems to be larger than bmp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Dec 23 21:34:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 23 Dec 2004 22:34:25 -0500 Subject: [AccessD] Query SQL correct but not visible in design view Message-ID: <001c01c4e969$771a0b90$677aa8c0@ColbyM6805> I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Thu Dec 23 22:05:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 23 Dec 2004 23:05:08 -0500 Subject: [AccessD] Passing Param arrays Message-ID: <001d01c4e96d$c5f21420$677aa8c0@ColbyM6805> I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From Gustav at cactus.dk Fri Dec 24 06:32:09 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 24 Dec 2004 13:32:09 +0100 Subject: [AccessD] Passing Param arrays Message-ID: Hi John I think you need to pass the ParamArray on ByRef as a Variant (containing the array). Or retrieve the single elements of the array and pass these on as single parameters to the next ParamArray. As I read it, what you do now is to pass the array as one element of a new array. /gustav >>> jwcolby at colbyconsulting.com 24-12-2004 05:05:08 >>> I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com From martyconnelly at shaw.ca Fri Dec 24 10:13:47 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 24 Dec 2004 08:13:47 -0800 Subject: [AccessD] VBScript mdb Christmas present from Microsoft References: Message-ID: <41CC403B.4080800@shaw.ca> I have been playing around with vbs scripts and WMI. Got this from Canada Technet Newsletter Today Here is an Access 2000 mdb file with 2200 + vbs scripts to do all the odd things a lot of people ask for here. Watch the OS version for each script, some can be dangerous as they do things like reimaging disks. Just convert the vbs to vba code. I have listed below some simple example titles. There are others that cover LDAP Exchange WMI etc. I think this may become a must have for Access Programmer Toolboxes. The Do-It-Yourself Script Center Kit (1.03 MB Self-Extracting Zip File) Imagine a database containing more than 2,250 scripts, along with sample scripts (and a few pointers) showing how you can create stand-alone .vbs files, HTML pages, or even your own custom HTML Help file. If you don't like the categories we used, you can recategorize everything in the database and, in essence, create a Script Center that works the way you'd like it to. Would you like an HTML Help file that contains only scripts that will work on Windows NT Server 4.0? Well, now you can do that . I convert them to VBA fairly straight forward, as everything is late bound Just convert your dim statements to object etc and response.write to debug.print You can early bind if you can find the library reference. Examples List Time Zone Information for a Computer List the Processes Running on a Computer List the UTC Time on a Computer Title Modify File Extensions Copy a File Copy a Set of Files Delete a File Delete All Files in a Folder List a Specific Set of Files List All the Files in a Folder List All the Files on a Computer List File Attributes List File Properties Modify File Attributes Monitor File Creation Monitor File Deletion Monitor File Modification Move a File Move a Set of Files Move Files Parse a Path Name Perform Actions on Files Rename a File Rename Files List Detailed Summary Information for a File Uncompress a Folder Enumerate Subfolders Using Recursion Bind to a Folder Using the Browse for Folder Dialog Box Search for Folders Using Wildcards Verify that a Folder Exists Create a Network Share Delete a Network Share Delete a Published Folder List Network Shares List Shared Folders Published in Active Directory Map All Network Shares to Local Folders Map a Network Share to a Local Folder Modify a Network Share Publish a Shared Folder in Active Directory -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Fri Dec 24 10:28:58 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 24 Dec 2004 16:28:58 -0000 Subject: [AccessD] Merry Christmas In-Reply-To: <41CC403B.4080800@shaw.ca> Message-ID: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> To anyone still looking in, Merry Christmas and a very Happy New Year. -- Andy Lacey http://www.minstersystems.co.uk From accessd at shaw.ca Fri Dec 24 10:30:27 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 24 Dec 2004 08:30:27 -0800 Subject: [AccessD] VBScript mdb Christmas present from Microsoft In-Reply-To: <41CC403B.4080800@shaw.ca> Message-ID: <0I9800I0EJ7H54@l-daemon> Hi Marty: Thank you very much for sharing a sample code treasure trove. Have a great Christmas Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, December 24, 2004 8:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] VBScript mdb Christmas present from Microsoft I have been playing around with vbs scripts and WMI. Got this from Canada Technet Newsletter Today Here is an Access 2000 mdb file with 2200 + vbs scripts to do all the odd things a lot of people ask for here. Watch the OS version for each script, some can be dangerous as they do things like reimaging disks. Just convert the vbs to vba code. I have listed below some simple example titles. There are others that cover LDAP Exchange WMI etc. I think this may become a must have for Access Programmer Toolboxes. The Do-It-Yourself Script Center Kit (1.03 MB Self-Extracting Zip File) Imagine a database containing more than 2,250 scripts, along with sample scripts (and a few pointers) showing how you can create stand-alone .vbs files, HTML pages, or even your own custom HTML Help file. If you don't like the categories we used, you can recategorize everything in the database and, in essence, create a Script Center that works the way you'd like it to. Would you like an HTML Help file that contains only scripts that will work on Windows NT Server 4.0? Well, now you can do that . I convert them to VBA fairly straight forward, as everything is late bound Just convert your dim statements to object etc and response.write to debug.print You can early bind if you can find the library reference. Examples List Time Zone Information for a Computer List the Processes Running on a Computer List the UTC Time on a Computer Title Modify File Extensions Copy a File Copy a Set of Files Delete a File Delete All Files in a Folder List a Specific Set of Files List All the Files in a Folder List All the Files on a Computer List File Attributes List File Properties Modify File Attributes Monitor File Creation Monitor File Deletion Monitor File Modification Move a File Move a Set of Files Move Files Parse a Path Name Perform Actions on Files Rename a File Rename Files List Detailed Summary Information for a File Uncompress a Folder Enumerate Subfolders Using Recursion Bind to a Folder Using the Browse for Folder Dialog Box Search for Folders Using Wildcards Verify that a Folder Exists Create a Network Share Delete a Network Share Delete a Published Folder List Network Shares List Shared Folders Published in Active Directory Map All Network Shares to Local Folders Map a Network Share to a Local Folder Modify a Network Share Publish a Shared Folder in Active Directory -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Fri Dec 24 10:35:04 2004 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Fri, 24 Dec 2004 16:35:04 -0000 Subject: [AccessD] Merry Christmas In-Reply-To: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> Message-ID: Merry Christmas to you too Andy, and indeed to all AccessDers worldwide. Thanks to everyone for all your help over that last year! Very best regards from Surrey, England Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: 24 December 2004 16:29 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Merry Christmas To anyone still looking in, Merry Christmas and a very Happy New Year. -- Andy Lacey From accessd at shaw.ca Fri Dec 24 10:37:14 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 24 Dec 2004 08:37:14 -0800 Subject: [AccessD] Merry Christmas In-Reply-To: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> Message-ID: <0I9800J0EJIT8A@l-daemon> Hi Andy: Same to you ...and to other on the list. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, December 24, 2004 8:29 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Merry Christmas To anyone still looking in, Merry Christmas and a very Happy New Year. -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Fri Dec 24 11:15:46 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 24 Dec 2004 12:15:46 -0500 Subject: [AccessD] Merry Christmas References: Message-ID: <00c701c4e9dc$34fba340$0a00a8c0@cx470148a> Merry Christmas to all of you and a very sincere "Thank You" for all of the problems you've helped me with!! You're terrific! Barb Ryan ----- Original Message ----- From: "Chris Foote (Spike)" To: "Access Developers discussion and problem solving" Sent: Friday, December 24, 2004 11:35 AM Subject: RE: [AccessD] Merry Christmas > Merry Christmas to you too Andy, and indeed to all AccessDers worldwide. > > Thanks to everyone for all your help over that last year! > > Very best regards from Surrey, England > > Chris Foote > > > 9.05.15 with virus definitions dated 22nd December 2004> > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: 24 December 2004 16:29 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Merry Christmas > > > To anyone still looking in, Merry Christmas and a very Happy New Year. > > -- Andy Lacey > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From pedro at plex.nl Fri Dec 24 11:04:28 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 24 Dec 2004 18:04:28 +0100 Subject: [AccessD] Merry Christmas References: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> Message-ID: <004301c4e9da$a204c360$fbc581d5@pedro> Merry Christmas and a healthy, lucky and happy New Year from the Netherlands. Pedro Janssen ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 24, 2004 5:28 PM Subject: [AccessD] Merry Christmas > To anyone still looking in, Merry Christmas and a very Happy New Year. > > -- Andy Lacey > http://www.minstersystems.co.uk > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From dejpolsys at hotmail.com Fri Dec 24 12:04:56 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 24 Dec 2004 13:04:56 -0500 Subject: [AccessD] VBScript mdb Christmas present from Microsoft References: <41CC403B.4080800@shaw.ca> Message-ID: ..mucho gracias amigo ...felice navidad! :) William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, December 24, 2004 11:13 AM Subject: [AccessD] VBScript mdb Christmas present from Microsoft >I have been playing around with vbs scripts and WMI. Got this from Canada >Technet Newsletter Today > Here is an Access 2000 mdb file with 2200 + vbs scripts to do all the odd > things a lot of people ask for here. > Watch the OS version for each script, some can be dangerous > as they do things like reimaging disks. Just convert the vbs to vba code. > I have listed below some simple example titles. There are others that > cover LDAP > Exchange WMI etc. I think this may become a must have for Access > Programmer Toolboxes. > > The Do-It-Yourself Script Center Kit (1.03 MB Self-Extracting > Zip File) > Imagine a database containing more than 2,250 scripts, along with sample > scripts (and a few pointers) showing how you can create stand-alone .vbs > files, > HTML pages, or even your own custom HTML Help file. If you don't like the > categories we used, you can recategorize everything in the database and, > in > essence, create a Script Center that works the way you'd like it to. Would > you > like an HTML Help file that contains only scripts that will work on > Windows NT > Server 4.0? Well, now you can do that > . > > I convert them to VBA fairly straight forward, as everything is late bound > Just convert your dim statements to object etc and response.write to > debug.print > You can early bind if you can find the library reference. > > Examples > > List Time Zone Information for a Computer > List the Processes Running on a Computer > List the UTC Time on a Computer > Title > Modify File Extensions > Copy a File > Copy a Set of Files > Delete a File > Delete All Files in a Folder > List a Specific Set of Files > List All the Files in a Folder > List All the Files on a Computer > List File Attributes > List File Properties > Modify File Attributes > Monitor File Creation > Monitor File Deletion > Monitor File Modification > Move a File > Move a Set of Files > Move Files > Parse a Path Name > Perform Actions on Files > Rename a File > Rename Files > List Detailed Summary Information for a File > Uncompress a Folder > Enumerate Subfolders Using Recursion > Bind to a Folder Using the Browse for Folder Dialog Box > Search for Folders Using Wildcards > Verify that a Folder Exists > Create a Network Share > Delete a Network Share > Delete a Published Folder > List Network Shares > List Shared Folders Published in Active Directory > Map All Network Shares to Local Folders > Map a Network Share to a Local Folder > Modify a Network Share > Publish a Shared Folder in Active Directory > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Fri Dec 24 12:07:28 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 24 Dec 2004 13:07:28 -0500 Subject: [AccessD] Merry Christmas References: <0I9800J0EJIT8A@l-daemon> Message-ID: ..may all of you end this year better off than the last one ...happy holidays :) William Hindman ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 24, 2004 11:37 AM Subject: RE: [AccessD] Merry Christmas > Hi Andy: > > Same to you ...and to other on the list. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Friday, December 24, 2004 8:29 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Merry Christmas > > To anyone still looking in, Merry Christmas and a very Happy New Year. > > -- Andy Lacey > http://www.minstersystems.co.uk > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Fri Dec 24 23:19:56 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 25 Dec 2004 00:19:56 -0500 Subject: [AccessD] OT In-Reply-To: References: Message-ID: <41CCF87C.5010601@rogers.com> I know it's way off topic but I want to say Merry Christmas and Happy Hanukah and Rollicking Ramadan and whatever else might be appropriate to your persuasion. I love this list and I have met some cyber-friends here of genuine quality, the sort of people you never forget. I thank you all for being here and making my life richer by your presence. Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 12/22/2004 From artful at rogers.com Fri Dec 24 23:35:04 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 25 Dec 2004 00:35:04 -0500 Subject: [AccessD] Query SQL correct but not visible in design view In-Reply-To: <001c01c4e969$771a0b90$677aa8c0@ColbyM6805> References: <001c01c4e969$771a0b90$677aa8c0@ColbyM6805> Message-ID: <41CCFC08.7040703@rogers.com> Trust me on this, JWC. Don't use SELECT * ever. Really ugly things can happen when dealing with MS-SQL -- not in any simple query but insert a column in some table referenced by views or sprocs that say SELECT * and let's go get drunk. I'm guessing, but I think that the underlying reason is that the query optimizer/compiler refers to columns numerically not by name, and if you suddenly change a table or a view that uses SELECT * then all hell can break loose. I haven't exhaustively tested this thesis to see what breaks under what conditions, but I have been bitten enough times to stay away from the SELECT * dog. Next and perhaps more important, why are you building a SQL statement on the fly? This is a bad habit inherited from Access MDB development, I think. True, there are times when no other approach is possible, but I think that those times amount to maybe 10% at most of the typical app's requirements. I suggest that you re-think this part of the app and think about feeding the parms to one or more sprocs instead of constructing a dynamic query. A tip from one of my SQL Tips columns.... Allow nulls to be passed to the sproc, then CASE the parms and then branch to the appropriate sproc. That way each sproc is optimized for the parms and won't screw up with choosing the wrong plan. If you write a sproc that involves different order by's etc. all in the same sproc, you can get ghastly performance because SQL will use the existing plan unless you specifically tell it not to. Arthur John W. Colby wrote: >I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL >runs but only the tables and their joins are visible in the QBE grid. There >are no fields visible etc. Does anyone understand what causes Access to do >this? I have had the same thing occur even with something as simple as a >SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but >nothing in the grid. The query executes correctly. > >Anyone? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 12/22/2004 From stuart at lexacorp.com.pg Sat Dec 25 02:57:07 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 25 Dec 2004 18:57:07 +1000 Subject: [AccessD] OT In-Reply-To: <41CCF87C.5010601@rogers.com> References: Message-ID: <41CDB803.24845.155EDA54@lexacorp.com.pg> On 25 Dec 2004 at 0:19, Arthur Fuller wrote: > I know it's way off topic but I want to say Merry Christmas and Happy > Hanukah and Rollicking Ramadan and whatever else might be appropriate to > your persuasion. Alternatively :-) Please accept with no obligation, implied or implicit our best wishes for an environmentally conscious, socially responsible, low stress, non- addictive, gender neutral, celebration of the winter solstice holiday, practiced within the most enjoyable traditions of the religious persuasion of your choice, or secular practices of your choice, with respect for the religious/secular persuasions and/or traditions of others, or their choice not to practice religious or secular traditions at all . . . . . and a fiscally successful, personally fulfilling, and medically uncomplicated recognition of the onset of the generally accepted calendar year 2005, but not without due respect for the calendars of choice of other cultures whose contributions to society have helped to make civilisation in this world great, (not to imply that civilisation is necessarily better than any other alternative) , and without regard to the race, creed, color, age, physical ability, religious faith, choice of computer platform, or sexual preference of the wishee. (By accepting this greeting, you are accepting these terms. This greeting is subject to clarification or withdrawal. It is freely transferable with no alteration to the original greeting. It implies no promise by the wisher to actually implement any of the wishes for her/himself or others, and is void where prohibited by law, and is revocable at the sole discretion of the wisher. This wish is warranted to perform as expected within the usual application of good tidings for a period of one year, or until the issuance of a subsequent holiday greeting, whichever comes first, and warranty is limited to replacement of this wish or issuance of a new wish at the sole discretion of the wisher.) -- Stuart From jwcolby at colbyconsulting.com Sat Dec 25 10:21:18 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 25 Dec 2004 11:21:18 -0500 Subject: [AccessD] Query SQL correct but not visible in design view In-Reply-To: <41CCFC08.7040703@rogers.com> Message-ID: <000301c4ea9d$c6d06e10$6c01a8c0@ColbyM6805> >Next and perhaps more important, why are you building a SQL statement on the fly? This is a bad habit inherited from Access MDB development, I think. True, there are times when no other approach is possible, but I think that those times amount to maybe 10% at most of the typical app's requirements. I suggest that you re-think this part of the app and think about feeding the parms to one or more sprocs instead of constructing a dynamic query. 1) This is an Access database, not a SQL server database. 2) I am building a system that is used to import professional license lists provided by the states. These are lists of people who hold licenses such a physical therapy, occupational therapy etc. Each state has their own system for generating these lists, from word or excel documents to Access or paradox databases. Likewise, each state, and even list within each state, has different information (and field names) that they capture about the individual. Thus the Florida OT list may have 15 fields named Fname, Lname etc, while the FLORIDA PT list has 12 fields named Last Name, First Name etc. In order to handle this process in a flexible "end user programmable" way, I ask a technically savvy person in the organization to get the various files into a single file format (Excel or Paradox). I specifically tell that person to NOT attempt to modify the field names provided by the states for any given list. The reason is that with dozens of lists from dozens of states, the probability that they would be able to manually "rename" the fields to a consistent naming convention is remote. "Just give me the original field names and let me deal with it". I further ask that person to name the files using a file name of SSDDD.XLS where SS = the state code and DDD = the "discipline" code (license type). Thus I can pull the first two characters out and look it up in the state field. If it is found I have the PK of the license state ready to go. I then take everything after that up to the "dot" and look that up in the discipline table. If it is found, I have the PK of the discipline (license type). I build a pair of tables to handle the import specification. tblImportFile holds the path to the file being imported, the name of the file, the State PK and the discipline PK, and the date that the file was imported - these files are received every 3 months or so depending on the state. tblImportSpec allows me to map the field names - their field name, my field name. I have a parent / child form with the tblImportFile as the parent and tblImportSpec as the child. For each file to import I can map the field name in my table with the field name in the import file. I then generated an import "Raw data table" with the specific set of fields that we want to import IF AVAILABLE in the list. In the child form I use the fields collection of the linked table to full the list of field names and display that in a combo. I do the same thing in another combo for the field names in my raw data table. Thus the user now selects a file one time in the parent form, then in the child uses these two combos to match or pair up their field to our field. Each file is different, they all have basic first name / last name / address / phone info but some have license number some don't (for "privacy reasons"?!), none have a SSN. At any rate, when the user is finished I now have a list of the fields in the import file that we wish to extract data from, and a matching set of fields in our raw data table. I then build "on-the-fly" a query to append their data to my raw data table. The whole point of this conversation - On-The-Fly. This process allows the user to do this field matching process a single time and then, assuming that the state doesn't change their field names, the process just works. As the user selects a file to import, I read out the list of their field names we captured previously, then I compare those field names to the fields in the linked tabledef.Fields() collection. Thus if a field we were capturing changes name, I discover that and inform the user. When I am done, I have dozens of files in tblFile and hundreds of field names (a dozen +/- per file) in the tblImport. As the user selects the file, I build the append query and then when they press a button, I check that the link to the table functions (the file is there), and generate the query to pull the data from that file into the raw data table for further processing. After AI import the file into the raw data table, I mark the import file as imported (time stamp field added by my tech user) so that it never gets imported into raw data twice. At this point the data is ready to be processed. Processing is another whole issue. I have to map the records to a specific person in my live data table, which is trivial if I am given a license number by the state. I have the State PK, the Discipline PK, and the license number, that maps to a specific record in my live data table just by joining these fields between raw data and live data. If the state does not provide a license number, then all hell breaks loose. It turns out that well over 50% of these people are women which means they marry, change names, addresses, phone numbers etc. With no "unique identifier" such as a SSN or License number it is a crap shoot trying to find them in the live data table. Obviously I do things like joining the phone number (if any), the first N characters of Addr1 plus the city etc. It is just a PITA and requires an iterative "try these fields, next try these fields" etc. As we "find" these people in the raw data that appear to match the live data, we examine "changes" between the raw data and the live data. IF we get a license number (we already have the state and discipline) I can discover those in the database, and thus from that those NOT in the database, and I append those NOT IN to our live data. The whole point of this process is to get a clean record that can be mailed to or called to offer them a job. There are currently more than 30 lists from a dozen states, with more lists and states added as the company gets business in those areas. We have about 150 thousand people in our live data table. We get updates from the states periodically. New people have to be merged in to our live data. Changes in address / phone reported to the state need to be updated in our live data. The process was done completely manually, i.e. the lists were just examined by hand and compared to the live data. We are attempting to automate the process such that new records can just be pulled in, records with no changes can be identified and excluded, then the remaining that have changes can be examined or called, And resulting changes entered into the live data. As we all know, any given problem can be solved a dozen different ways. I went with the "field matching" method to try and minimize the problems created by our people trying to standardize the field names directly out in the lists. They used to import the lists into paradox, changing the filed names as they went and they ended up with dozens of differences just caused by this field renaming process. I say "leave the original field names" and I'll do the mapping to what our field names are. Then as long as the field names out in the original lists don't change we are good to go. I check the field names we have against the import table each time to discover changes if any. It seemed logical to me. Given the process I don't see any way to avoid "on-the-fly" building of queries. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, December 25, 2004 12:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view Trust me on this, JWC. Don't use SELECT * ever. Really ugly things can happen when dealing with MS-SQL -- not in any simple query but insert a column in some table referenced by views or sprocs that say SELECT * and let's go get drunk. I'm guessing, but I think that the underlying reason is that the query optimizer/compiler refers to columns numerically not by name, and if you suddenly change a table or a view that uses SELECT * then all hell can break loose. I haven't exhaustively tested this thesis to see what breaks under what conditions, but I have been bitten enough times to stay away from the SELECT * dog. Next and perhaps more important, why are you building a SQL statement on the fly? This is a bad habit inherited from Access MDB development, I think. True, there are times when no other approach is possible, but I think that those times amount to maybe 10% at most of the typical app's requirements. I suggest that you re-think this part of the app and think about feeding the parms to one or more sprocs instead of constructing a dynamic query. A tip from one of my SQL Tips columns.... Allow nulls to be passed to the sproc, then CASE the parms and then branch to the appropriate sproc. That way each sproc is optimized for the parms and won't screw up with choosing the wrong plan. If you write a sproc that involves different order by's etc. all in the same sproc, you can get ghastly performance because SQL will use the existing plan unless you specifically tell it not to. Arthur John W. Colby wrote: >I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. >The SQL runs but only the tables and their joins are visible in the QBE >grid. There are no fields visible etc. Does anyone understand what >causes Access to do this? I have had the same thing occur even with >something as simple as a SELECT * from tbl1 inserted into the SQL view. >Tbl1 is displayed, but nothing in the grid. The query executes >correctly. > >Anyone? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 12/22/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Sat Dec 25 11:22:48 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Sat, 25 Dec 2004 22:52:48 +0530 Subject: [AccessD] Query SQL correct but not visible in design view References: <001c01c4e969$771a0b90$677aa8c0@ColbyM6805> Message-ID: <003701c4eaa6$9fe8c780$ee1865cb@winxp> John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Dec 25 12:39:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 25 Dec 2004 13:39:56 -0500 Subject: [AccessD] Query SQL correct but not visible in design view In-Reply-To: <003701c4eaa6$9fe8c780$ee1865cb@winxp> Message-ID: <000401c4eab1$251c2910$6c01a8c0@ColbyM6805> That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Sun Dec 26 07:06:19 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 27 Dec 2004 00:06:19 +1100 Subject: [AccessD] Merry Christmas In-Reply-To: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> Message-ID: <200412261306.iBQD6LRl010581@cooper.uws.edu.au> And to you too Andy and your lovely wife - from Oz with love See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Saturday, 25 December 2004 3:29 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Merry Christmas To anyone still looking in, Merry Christmas and a very Happy New Year. -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Sun Dec 26 07:11:26 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 27 Dec 2004 00:11:26 +1100 Subject: [AccessD] OT In-Reply-To: <41CDB803.24845.155EDA54@lexacorp.com.pg> Message-ID: <200412261311.iBQDBSRl012090@cooper.uws.edu.au> Nope >From where I am it's merry Christmas >From where you guys are I hope it's brilliant See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, 25 December 2004 7:57 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT On 25 Dec 2004 at 0:19, Arthur Fuller wrote: > I know it's way off topic but I want to say Merry Christmas and Happy > Hanukah and Rollicking Ramadan and whatever else might be appropriate > to your persuasion. Alternatively :-) Please accept with no obligation, implied or implicit our best wishes for an environmentally conscious, socially responsible, low stress, non- addictive, gender neutral, celebration of the winter solstice holiday, practiced within the most enjoyable traditions of the religious persuasion of your choice, or secular practices of your choice, with respect for the religious/secular persuasions and/or traditions of others, or their choice not to practice religious or secular traditions at all . . . . . and a fiscally successful, personally fulfilling, and medically uncomplicated recognition of the onset of the generally accepted calendar year 2005, but not without due respect for the calendars of choice of other cultures whose contributions to society have helped to make civilisation in this world great, (not to imply that civilisation is necessarily better than any other alternative) , and without regard to the race, creed, color, age, physical ability, religious faith, choice of computer platform, or sexual preference of the wishee. (By accepting this greeting, you are accepting these terms. This greeting is subject to clarification or withdrawal. It is freely transferable with no alteration to the original greeting. It implies no promise by the wisher to actually implement any of the wishes for her/himself or others, and is void where prohibited by law, and is revocable at the sole discretion of the wisher. This wish is warranted to perform as expected within the usual application of good tidings for a period of one year, or until the issuance of a subsequent holiday greeting, whichever comes first, and warranty is limited to replacement of this wish or issuance of a new wish at the sole discretion of the wisher.) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Mon Dec 27 10:19:44 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 27 Dec 2004 10:19:44 -0600 Subject: [AccessD] OT Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337309@corp-es01.fleetpride.com> Except, of course, Mac users, all of whom are lost souls who actually enjoy living in the blue states. :0 Jim -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Saturday, December 25, 2004 2:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT On 25 Dec 2004 at 0:19, Arthur Fuller wrote: > I know it's way off topic but I want to say Merry Christmas and Happy > Hanukah and Rollicking Ramadan and whatever else might be appropriate to > your persuasion. Alternatively :-) Please accept with no obligation, implied or implicit our best wishes for an environmentally conscious, socially responsible, low stress, non- addictive, gender neutral, celebration of the winter solstice holiday, practiced within the most enjoyable traditions of the religious persuasion of your choice, or secular practices of your choice, with respect for the religious/secular persuasions and/or traditions of others, or their choice not to practice religious or secular traditions at all . . . . . and a fiscally successful, personally fulfilling, and medically uncomplicated recognition of the onset of the generally accepted calendar year 2005, but not without due respect for the calendars of choice of other cultures whose contributions to society have helped to make civilisation in this world great, (not to imply that civilisation is necessarily better than any other alternative) , and without regard to the race, creed, color, age, physical ability, religious faith, choice of computer platform, or sexual preference of the wishee. (By accepting this greeting, you are accepting these terms. This greeting is subject to clarification or withdrawal. It is freely transferable with no alteration to the original greeting. It implies no promise by the wisher to actually implement any of the wishes for her/himself or others, and is void where prohibited by law, and is revocable at the sole discretion of the wisher. This wish is warranted to perform as expected within the usual application of good tidings for a period of one year, or until the issuance of a subsequent holiday greeting, whichever comes first, and warranty is limited to replacement of this wish or issuance of a new wish at the sole discretion of the wisher.) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From artful at rogers.com Mon Dec 27 10:39:46 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 27 Dec 2004 11:39:46 -0500 Subject: [AccessD] OT In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB6772337309@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB6772337309@corp-es01.fleetpride.com> Message-ID: <41D03AD2.6050901@rogers.com> Hey, ever since they finally moved to UNIX, they have a genuine OS, and face it, the design of their boxes and monitors blows the doors off any PC-compatible box. Plus, at my favorite store I recently saw a Mac monitor that was about as wide as my dual-monitors, with about the same aspect ratio. They also had another monitor for Mac that you could rotate 90 degrees, then press a button and it would reconfigure. Great for designing web pages, newspaper layouts etc. They pay twice as much as we do for their hardware, but when was the last time you heard from a Mac user that her box crashed? For me it's been years. Mind you, I like it when the box crashes. Gives me an excuse to avoid real work :) And besides, how many people do you know that are employed fixing Mac OS/net problems? They don't seem to have them. Long live buggy OSes and apps! Else most of us might be standing in a kiosk in a mall and selling cell phones. Arthur Hale, Jim wrote: > >Except, of course, Mac users, all of whom are lost souls who actually enjoy >living in the blue states. :0 >Jim > >-----Original Message----- >From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] >Sent: Saturday, December 25, 2004 2:57 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT > > >On 25 Dec 2004 at 0:19, Arthur Fuller wrote: > > > >>I know it's way off topic but I want to say Merry Christmas and Happy >>Hanukah and Rollicking Ramadan and whatever else might be appropriate to >>your persuasion. >> >> > >Alternatively :-) > >Please accept with no obligation, implied or implicit our best wishes for >an environmentally conscious, socially responsible, low stress, non- >addictive, gender neutral, celebration of the winter solstice holiday, >practiced within the most enjoyable traditions of the religious persuasion >of your choice, or secular practices of your choice, with respect for the >religious/secular persuasions and/or traditions of others, or their choice >not to practice religious or secular traditions at all . . . . . and a >fiscally successful, personally fulfilling, and medically uncomplicated >recognition of the onset of the generally accepted calendar year 2005, but >not without due respect for the calendars of choice of other cultures whose >contributions to society have helped to make civilisation in this world >great, (not to imply that civilisation is necessarily better than any other >alternative) , and without regard to the race, creed, color, age, physical >ability, religious faith, choice of computer platform, or sexual >preference of the wishee. (By accepting this greeting, you are accepting >these terms. This greeting is subject to clarification or withdrawal. It is >freely transferable with no alteration to the original greeting. It implies >no promise by the wisher to actually implement any of the wishes for >her/himself or others, and is void where prohibited by law, and is >revocable at the sole discretion of the wisher. This wish is warranted to >perform as expected within the usual application of good tidings for a >period of one year, or until the issuance of a subsequent holiday >greeting, whichever comes first, and warranty is limited to replacement of >this wish or issuance of a new wish at the sole discretion of the wisher.) > > -- >Stuart > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From Jim.Hale at FleetPride.com Mon Dec 27 10:41:29 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 27 Dec 2004 10:41:29 -0600 Subject: [AccessD] Query SQL correct but not visible in design view Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233730B@corp-es01.fleetpride.com> Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From markamatte at hotmail.com Mon Dec 27 12:12:15 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 27 Dec 2004 18:12:15 +0000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB677233730B@corp-es01.fleetpride.com> Message-ID: Hello All, I'm working on a small A2k app that needs a 'kinda dynamic' approach. I want a form to be displayed with buttons ( of stuff to click on ie text box, piture, whatever)...but I want to buttons to be displayed depending on the number of records in a table. If there are 4 records...then I want 4 buttons...6 records then 6 buttons. Each time the form opens...it may have to add or remove a button depending on the values in the table. Does anyone have any suggestions/ideas/examples of the best approach for this? Thanks, Mark A. Matte From bchacc at san.rr.com Mon Dec 27 12:46:21 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Dec 2004 10:46:21 -0800 Subject: [AccessD] A2k Build Form from Table References: Message-ID: <00e301c4ec44$5c49fae0$6401a8c0@HAL9002> Mark: How about a continuous form where one of the fields is a button (not sure how to do this - I'm a concept guy) Rocky ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 10:12 AM Subject: [AccessD] A2k Build Form from Table > Hello All, > > I'm working on a small A2k app that needs a 'kinda dynamic' approach. I > want a form to be displayed with buttons ( of stuff to click on ie text > box, piture, whatever)...but I want to buttons to be displayed depending > on the number of records in a table. If there are 4 records...then I want > 4 buttons...6 records then 6 buttons. Each time the form opens...it may > have to add or remove a button depending on the values in the table. > > Does anyone have any suggestions/ideas/examples of the best approach for > this? > > Thanks, > > Mark A. Matte > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Mon Dec 27 13:12:49 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 27 Dec 2004 19:12:49 +0000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: <00e301c4ec44$5c49fae0$6401a8c0@HAL9002> Message-ID: Rocky, On a different topic...searched the web a couple of weeks ago for some access stuff and your name and picture from an Access conference came up...hadn't noticed your name on the list in awhile. Hope all's well. Back on topic: Thanks for the feedback...That was the first approach I thought of...but I was concerned about scrolling and I don't want any scrolling if there are more choices. I used 4 and 6 as examples...but as reallity goes...I would probably need more like 30 to 40 records in the tables for some instances. I thought of using multiple subforms side by side ( same subform but with different selects)...with 4 subforms, when the user configures the data...they would have an option of which subform(column from there perspective) the data would appear in. I'm basically looking for a direction...or concept as you called it. Hoping someone has done something like this before...and would be willing to share the experience/problems/tips. Thanks Again, Mark A. Matte >From: "Rocky Smolin - Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] A2k Build Form from Table >Date: Mon, 27 Dec 2004 10:46:21 -0800 > >Mark: > >How about a continuous form where one of the fields is a button (not sure >how to do this - I'm a concept guy) > >Rocky > >----- Original Message ----- From: "Mark A Matte" >To: >Sent: Monday, December 27, 2004 10:12 AM >Subject: [AccessD] A2k Build Form from Table > > >>Hello All, >> >>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>want a form to be displayed with buttons ( of stuff to click on ie text >>box, piture, whatever)...but I want to buttons to be displayed depending >>on the number of records in a table. If there are 4 records...then I want >>4 buttons...6 records then 6 buttons. Each time the form opens...it may >>have to add or remove a button depending on the values in the table. >> >>Does anyone have any suggestions/ideas/examples of the best approach for >>this? >> >>Thanks, >> >>Mark A. Matte >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Mon Dec 27 13:19:25 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 28 Dec 2004 00:49:25 +0530 Subject: [AccessD] Passing Param arrays References: <001d01c4e96d$c5f21420$677aa8c0@ColbyM6805> Message-ID: <017b01c4ec49$19e8ee40$651865cb@winxp> ================================ Nested Functions Using Arrays As Arguments ================================ This pertains to functions using array arguments and then returning an array as the result. Observations placed below are based upon tests conducted on Access XP (running on Win XP). A function using ParamArray as the keyword for its array argument is governed by the following limitations. (a) Each element of the array is required to be mentioned individually. Simply using an array variable (or a function that returns an array) in lieu, will not do. (b) ParamArray keyword is not to be preceded with ByVal, ByRef, or Optional keywords. (c) ParamArray type argument is to be used only as the last argument in arglist to indicate that the final argument is an optional array of Variant elements. On the other hand, if the array argument is handled without using the keyword ParamArray, there is far greater flexibility regarding the manner in which the array argument can be supplied. Any of the following alternatives will do. (a) An array variable (b) A function returning an array (c) A literal array using the built-in Array() function. Example - Array(2,4,8,16,32,64) It would thus be seen that, if functions returning array values are to be nested, those having ParamArray as the keyword stand disqualified, except for being used as the very first step. All higher layer functions have to be those using an array variable as their argument, without ParamArray keyword. As an illustration, two sample functions are given below. Fn_PAr() uses ParamArray as the keyword for its array argument, while Fn_Ar() uses a normal array variable as its argument, without the keyword ParamArray. Both these functions double the value of each element of the input array argument and return the result as an array. Sample test procedures for verifying the performance of above functions under three layers of nesting are also given below. Brief details - (a) Sub P_TestArrayFunctions_A() Three level nesting of array functions. Function having ParamArray as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (b) Sub P_TestArrayFunctions_B() Three level nesting of array functions. Function having an array variable as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (c) Sub P_TestArrayFunctions_C() Three level nesting of array functions. Function having a literal Array() function as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. Conclusion -------------- Considering its superior flexibility as explained above, a function using a straight array variable as its argument (without being preceded by the keyword ParamArray) should prove universally more convenient as compared to one with ParamArray keyword. While it is amenable to multi-level nesting, accepting array variable (or function returning an array) as its argument, it can also mimic the ParamArray style input (i.e. literal supply of individual elements of array argument) as demonstrated in test procedure Sub P_TestArrayFunctions_C() below. A.D.Tejpal -------------- =================================== Function Fn_PAr(ParamArray Pa() _ As Variant) As Variant ' Doubles each element of ParamArray ' argument Pa() and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Pa)) For Cnt = LBound(Pa) To UBound(Pa) La(Cnt) = 2 * Pa(Cnt) Next Fn_PAr = La End Function '------------------------------------ Function Fn_Ar(ByVal Ar As Variant) As Variant ' Doubles each element of array argument Ar ' and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Ar)) For Cnt = LBound(Ar) To UBound(Ar) La(Cnt) = 2 * Ar(Cnt) Next Fn_Ar = La End Function '------------------------------------ Sub P_TestArrayFunctions_A() ' Three level nesting of array functions. ' Function having ParamArray as its ' argument is used as an array argument for ' another function, which in turn, is used as ' an array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_PAr(2, 4, 8, 16, 32, 64))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_B() ' Three level nesting of array functions. ' Function having an array variable as its ' argument is used as an array argument ' for another function, which in turn, is used ' as an array argument for the final function. Dim Rtv As Variant Dim Cnt As Long, Ar As Variant Ar = Array(2, 4, 8, 16, 32, 64) Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Ar))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_C() ' Three level nesting of array functions. ' Function having a literal Array() function as ' its argument is used as an array argument for ' another function, which in turn, is used as an ' array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Array(2, 4, 8, 16, 32, 64)))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub =================================== ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:35 Subject: [AccessD] Passing Param arrays I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com From bchacc at san.rr.com Mon Dec 27 13:39:19 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Dec 2004 11:39:19 -0800 Subject: [AccessD] A2k Build Form from Table References: Message-ID: <010501c4ec4b$c23063b0$6401a8c0@HAL9002> Mark: Everything's perfect here. Thanks. If you don't know how many records are going to be in the table or what the maximum will be, I'm not sure how you can organize a screen which won't have scrolling. You could put 40 invisible buttons on the form and make them visible and change their captions depending on how many records were present in the table. But if they go over 40 records, you've got a problem. Maybe describe more what you're trying to do and there will be a different approach to solving the problem. On the other topic: IS it time for the AccessD list to try another abortive attempt at organizing a conference somewhere? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 11:12 AM Subject: Re: [AccessD] A2k Build Form from Table > Rocky, > > On a different topic...searched the web a couple of weeks ago for some > access stuff and your name and picture from an Access conference came > up...hadn't noticed your name on the list in awhile. Hope all's well. > > Back on topic: > Thanks for the feedback...That was the first approach I thought of...but I > was concerned about scrolling and I don't want any scrolling if there are > more choices. I used 4 and 6 as examples...but as reallity goes...I would > probably need more like 30 to 40 records in the tables for some instances. > I thought of using multiple subforms side by side ( same subform but with > different selects)...with 4 subforms, when the user configures the > data...they would have an option of which subform(column from there > perspective) the data would appear in. > > I'm basically looking for a direction...or concept as you called it. > Hoping someone has done something like this before...and would be willing > to share the experience/problems/tips. > > Thanks Again, > > Mark A. Matte >>From: "Rocky Smolin - Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: Re: [AccessD] A2k Build Form from Table >>Date: Mon, 27 Dec 2004 10:46:21 -0800 >> >>Mark: >> >>How about a continuous form where one of the fields is a button (not sure >>how to do this - I'm a concept guy) >> >>Rocky >> >>----- Original Message ----- From: "Mark A Matte" >>To: >>Sent: Monday, December 27, 2004 10:12 AM >>Subject: [AccessD] A2k Build Form from Table >> >> >>>Hello All, >>> >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>>want a form to be displayed with buttons ( of stuff to click on ie text >>>box, piture, whatever)...but I want to buttons to be displayed depending >>>on the number of records in a table. If there are 4 records...then I >>>want 4 buttons...6 records then 6 buttons. Each time the form opens...it >>>may have to add or remove a button depending on the values in the table. >>> >>>Does anyone have any suggestions/ideas/examples of the best approach for >>>this? >>> >>>Thanks, >>> >>>Mark A. Matte >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dmcafee at pacbell.net Mon Dec 27 14:11:28 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Mon, 27 Dec 2004 12:11:28 -0800 Subject: [AccessD] A2k Build Form from Table In-Reply-To: <010501c4ec4b$c23063b0$6401a8c0@HAL9002> Message-ID: Mark, as Rocky has mentioned, this will be hard if you set a max number of possible buttons. I was going to do a similar task once using the switchboard concept, only opening it up a bit to allow ten or twelve choices, but I never had more than 5 minutes to spend on it Basically have a dozen (or so) "picture buttons" on the form, all hidden. Number them consecutively such as imj1, imj2... Open a given recordset (at form load), which a column containing the name of a function or sub to run. You can use the count to figure how many buttons to unhide. The OnClick event of each button will have to figure out it own name such as Right(Me.ActiveControl.Name,1). Now take that "button number" and go to the given record in the recordset and call the column's function using EVAL() HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, December 27, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2k Build Form from Table Mark: Everything's perfect here. Thanks. If you don't know how many records are going to be in the table or what the maximum will be, I'm not sure how you can organize a screen which won't have scrolling. You could put 40 invisible buttons on the form and make them visible and change their captions depending on how many records were present in the table. But if they go over 40 records, you've got a problem. Maybe describe more what you're trying to do and there will be a different approach to solving the problem. On the other topic: IS it time for the AccessD list to try another abortive attempt at organizing a conference somewhere? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 11:12 AM Subject: Re: [AccessD] A2k Build Form from Table > Rocky, > > On a different topic...searched the web a couple of weeks ago for some > access stuff and your name and picture from an Access conference came > up...hadn't noticed your name on the list in awhile. Hope all's well. > > Back on topic: > Thanks for the feedback...That was the first approach I thought of...but I > was concerned about scrolling and I don't want any scrolling if there are > more choices. I used 4 and 6 as examples...but as reallity goes...I would > probably need more like 30 to 40 records in the tables for some instances. > I thought of using multiple subforms side by side ( same subform but with > different selects)...with 4 subforms, when the user configures the > data...they would have an option of which subform(column from there > perspective) the data would appear in. > > I'm basically looking for a direction...or concept as you called it. > Hoping someone has done something like this before...and would be willing > to share the experience/problems/tips. > > Thanks Again, > > Mark A. Matte >>From: "Rocky Smolin - Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: Re: [AccessD] A2k Build Form from Table >>Date: Mon, 27 Dec 2004 10:46:21 -0800 >> >>Mark: >> >>How about a continuous form where one of the fields is a button (not sure >>how to do this - I'm a concept guy) >> >>Rocky >> >>----- Original Message ----- From: "Mark A Matte" >>To: >>Sent: Monday, December 27, 2004 10:12 AM >>Subject: [AccessD] A2k Build Form from Table >> >> >>>Hello All, >>> >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>>want a form to be displayed with buttons ( of stuff to click on ie text >>>box, piture, whatever)...but I want to buttons to be displayed depending >>>on the number of records in a table. If there are 4 records...then I >>>want 4 buttons...6 records then 6 buttons. Each time the form opens...it >>>may have to add or remove a button depending on the values in the table. >>> >>>Does anyone have any suggestions/ideas/examples of the best approach for >>>this? >>> >>>Thanks, >>> >>>Mark A. Matte >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Mon Dec 27 15:26:14 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 27 Dec 2004 16:26:14 -0500 Subject: [AccessD] A2k Build Form from Table References: Message-ID: William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, December 27, 2004 3:11 PM Subject: RE: [AccessD] A2k Build Form from Table > Mark, as Rocky has mentioned, this will be hard if you set a max number of > possible buttons. I was going to do a similar task once using the > switchboard concept, only opening it up a bit to allow ten or twelve > choices, but I never had more than 5 minutes to spend on it > > Basically have a dozen (or so) "picture buttons" on the form, all hidden. > Number them consecutively such as imj1, imj2... > > Open a given recordset (at form load), which a column containing the name > of > a function or sub to run. You can use the count to figure how many buttons > to unhide. The OnClick event of each button will have to figure out it own > name such as Right(Me.ActiveControl.Name,1). Now take that "button number" > and go to the given record in the recordset and call the column's function > using EVAL() > > > HTH > David McAfee > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, December 27, 2004 11:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2k Build Form from Table > > > Mark: > > Everything's perfect here. Thanks. > > If you don't know how many records are going to be in the table or what > the > maximum will be, I'm not sure how you can organize a screen which won't > have > scrolling. > > You could put 40 invisible buttons on the form and make them visible and > change their captions depending on how many records were present in the > table. But if they go over 40 records, you've got a problem. > > Maybe describe more what you're trying to do and there will be a different > approach to solving the problem. > > On the other topic: IS it time for the AccessD list to try another > abortive > attempt at organizing a conference somewhere? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > > ----- Original Message ----- > From: "Mark A Matte" > To: > Sent: Monday, December 27, 2004 11:12 AM > Subject: Re: [AccessD] A2k Build Form from Table > > >> Rocky, >> >> On a different topic...searched the web a couple of weeks ago for some >> access stuff and your name and picture from an Access conference came >> up...hadn't noticed your name on the list in awhile. Hope all's well. >> >> Back on topic: >> Thanks for the feedback...That was the first approach I thought of...but >> I >> was concerned about scrolling and I don't want any scrolling if there are >> more choices. I used 4 and 6 as examples...but as reallity goes...I >> would >> probably need more like 30 to 40 records in the tables for some >> instances. >> I thought of using multiple subforms side by side ( same subform but with >> different selects)...with 4 subforms, when the user configures the >> data...they would have an option of which subform(column from there >> perspective) the data would appear in. >> >> I'm basically looking for a direction...or concept as you called it. >> Hoping someone has done something like this before...and would be willing >> to share the experience/problems/tips. >> >> Thanks Again, >> >> Mark A. Matte >>>From: "Rocky Smolin - Beach Access Software" >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: "Access Developers discussion and problem >>>solving" >>>Subject: Re: [AccessD] A2k Build Form from Table >>>Date: Mon, 27 Dec 2004 10:46:21 -0800 >>> >>>Mark: >>> >>>How about a continuous form where one of the fields is a button (not sure >>>how to do this - I'm a concept guy) >>> >>>Rocky >>> >>>----- Original Message ----- From: "Mark A Matte" >>> >>>To: >>>Sent: Monday, December 27, 2004 10:12 AM >>>Subject: [AccessD] A2k Build Form from Table >>> >>> >>>>Hello All, >>>> >>>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>>>want a form to be displayed with buttons ( of stuff to click on ie text >>>>box, piture, whatever)...but I want to buttons to be displayed depending >>>>on the number of records in a table. If there are 4 records...then I >>>>want 4 buttons...6 records then 6 buttons. Each time the form >>>>opens...it >>>>may have to add or remove a button depending on the values in the table. >>>> >>>>Does anyone have any suggestions/ideas/examples of the best approach for >>>>this? >>>> >>>>Thanks, >>>> >>>>Mark A. Matte >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Mon Dec 27 15:31:04 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 27 Dec 2004 16:31:04 -0500 Subject: [AccessD] A2k Build Form from Table References: Message-ID: ..sorry 'bout that :( ..anyway ...JC did some work with the switchboard a couple years back that basically allowed you to assign an almost unlimited number of buttons ...and since that is table record driven I'd think it would be adaptable to your needs with a bit of spit 'n polish on the code ...try his site where I'm sure he still has a sample posted ...if not, let me know since I never throw any sample code out ...even JC's ...which just goes to show how desperate one person can be :)) William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, December 27, 2004 3:11 PM Subject: RE: [AccessD] A2k Build Form from Table > Mark, as Rocky has mentioned, this will be hard if you set a max number of > possible buttons. I was going to do a similar task once using the > switchboard concept, only opening it up a bit to allow ten or twelve > choices, but I never had more than 5 minutes to spend on it > > Basically have a dozen (or so) "picture buttons" on the form, all hidden. > Number them consecutively such as imj1, imj2... > > Open a given recordset (at form load), which a column containing the name > of > a function or sub to run. You can use the count to figure how many buttons > to unhide. The OnClick event of each button will have to figure out it own > name such as Right(Me.ActiveControl.Name,1). Now take that "button number" > and go to the given record in the recordset and call the column's function > using EVAL() > > > HTH > David McAfee > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, December 27, 2004 11:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2k Build Form from Table > > > Mark: > > Everything's perfect here. Thanks. > > If you don't know how many records are going to be in the table or what > the > maximum will be, I'm not sure how you can organize a screen which won't > have > scrolling. > > You could put 40 invisible buttons on the form and make them visible and > change their captions depending on how many records were present in the > table. But if they go over 40 records, you've got a problem. > > Maybe describe more what you're trying to do and there will be a different > approach to solving the problem. > > On the other topic: IS it time for the AccessD list to try another > abortive > attempt at organizing a conference somewhere? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > > ----- Original Message ----- > From: "Mark A Matte" > To: > Sent: Monday, December 27, 2004 11:12 AM > Subject: Re: [AccessD] A2k Build Form from Table > > >> Rocky, >> >> On a different topic...searched the web a couple of weeks ago for some >> access stuff and your name and picture from an Access conference came >> up...hadn't noticed your name on the list in awhile. Hope all's well. >> >> Back on topic: >> Thanks for the feedback...That was the first approach I thought of...but >> I >> was concerned about scrolling and I don't want any scrolling if there are >> more choices. I used 4 and 6 as examples...but as reallity goes...I >> would >> probably need more like 30 to 40 records in the tables for some >> instances. >> I thought of using multiple subforms side by side ( same subform but with >> different selects)...with 4 subforms, when the user configures the >> data...they would have an option of which subform(column from there >> perspective) the data would appear in. >> >> I'm basically looking for a direction...or concept as you called it. >> Hoping someone has done something like this before...and would be willing >> to share the experience/problems/tips. >> >> Thanks Again, >> >> Mark A. Matte >>>From: "Rocky Smolin - Beach Access Software" >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: "Access Developers discussion and problem >>>solving" >>>Subject: Re: [AccessD] A2k Build Form from Table >>>Date: Mon, 27 Dec 2004 10:46:21 -0800 >>> >>>Mark: >>> >>>How about a continuous form where one of the fields is a button (not sure >>>how to do this - I'm a concept guy) >>> >>>Rocky >>> >>>----- Original Message ----- From: "Mark A Matte" >>> >>>To: >>>Sent: Monday, December 27, 2004 10:12 AM >>>Subject: [AccessD] A2k Build Form from Table >>> >>> >>>>Hello All, >>>> >>>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>>>want a form to be displayed with buttons ( of stuff to click on ie text >>>>box, piture, whatever)...but I want to buttons to be displayed depending >>>>on the number of records in a table. If there are 4 records...then I >>>>want 4 buttons...6 records then 6 buttons. Each time the form >>>>opens...it >>>>may have to add or remove a button depending on the values in the table. >>>> >>>>Does anyone have any suggestions/ideas/examples of the best approach for >>>>this? >>>> >>>>Thanks, >>>> >>>>Mark A. Matte >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Mon Dec 27 15:41:05 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 27 Dec 2004 21:41:05 +0000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: Message-ID: Rocky, Lets use the example of BEER...If a place has 10 beers listed in their inventory...I want 10 beer buttons to show on the 'Beer Selection' Screen. If they add 15 more to inventory table...I want 25 buttons on the selection screen. My goal is no program or coding changes for an inventory change...and avoid scrolling when they do this. I could build ALL buttons that would fit on the page...hide them unless there are records in the table. It might be a little tricky if they mark one of the selections inactive(in the table)...which in theory would cause all of the buttons below the inactive one...to be shifted up by one position. I think I can work with this though. Thanks David and Rocky. ...but I am still open to ANY ideas or thoughts anyone has. Thanks Again, Mark A. Matte >From: >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A2k Build Form from Table >Date: Mon, 27 Dec 2004 12:11:28 -0800 > >Mark, as Rocky has mentioned, this will be hard if you set a max number of >possible buttons. I was going to do a similar task once using the >switchboard concept, only opening it up a bit to allow ten or twelve >choices, but I never had more than 5 minutes to spend on it > >Basically have a dozen (or so) "picture buttons" on the form, all hidden. >Number them consecutively such as imj1, imj2... > >Open a given recordset (at form load), which a column containing the name >of >a function or sub to run. You can use the count to figure how many buttons >to unhide. The OnClick event of each button will have to figure out it own >name such as Right(Me.ActiveControl.Name,1). Now take that "button number" >and go to the given record in the recordset and call the column's function >using EVAL() > > >HTH >David McAfee > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - >Beach Access Software >Sent: Monday, December 27, 2004 11:39 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2k Build Form from Table > > >Mark: > >Everything's perfect here. Thanks. > >If you don't know how many records are going to be in the table or what the >maximum will be, I'm not sure how you can organize a screen which won't >have >scrolling. > >You could put 40 invisible buttons on the form and make them visible and >change their captions depending on how many records were present in the >table. But if they go over 40 records, you've got a problem. > >Maybe describe more what you're trying to do and there will be a different >approach to solving the problem. > >On the other topic: IS it time for the AccessD list to try another >abortive >attempt at organizing a conference somewhere? > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > > > >----- Original Message ----- >From: "Mark A Matte" >To: >Sent: Monday, December 27, 2004 11:12 AM >Subject: Re: [AccessD] A2k Build Form from Table > > > > Rocky, > > > > On a different topic...searched the web a couple of weeks ago for some > > access stuff and your name and picture from an Access conference came > > up...hadn't noticed your name on the list in awhile. Hope all's well. > > > > Back on topic: > > Thanks for the feedback...That was the first approach I thought of...but >I > > was concerned about scrolling and I don't want any scrolling if there >are > > more choices. I used 4 and 6 as examples...but as reallity goes...I >would > > probably need more like 30 to 40 records in the tables for some >instances. > > I thought of using multiple subforms side by side ( same subform but >with > > different selects)...with 4 subforms, when the user configures the > > data...they would have an option of which subform(column from there > > perspective) the data would appear in. > > > > I'm basically looking for a direction...or concept as you called it. > > Hoping someone has done something like this before...and would be >willing > > to share the experience/problems/tips. > > > > Thanks Again, > > > > Mark A. Matte > >>From: "Rocky Smolin - Beach Access Software" > >>Reply-To: Access Developers discussion and problem > >>solving > >>To: "Access Developers discussion and problem > >>solving" > >>Subject: Re: [AccessD] A2k Build Form from Table > >>Date: Mon, 27 Dec 2004 10:46:21 -0800 > >> > >>Mark: > >> > >>How about a continuous form where one of the fields is a button (not >sure > >>how to do this - I'm a concept guy) > >> > >>Rocky > >> > >>----- Original Message ----- From: "Mark A Matte" > > >>To: > >>Sent: Monday, December 27, 2004 10:12 AM > >>Subject: [AccessD] A2k Build Form from Table > >> > >> > >>>Hello All, > >>> > >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. >I > >>>want a form to be displayed with buttons ( of stuff to click on ie text > >>>box, piture, whatever)...but I want to buttons to be displayed >depending > >>>on the number of records in a table. If there are 4 records...then I > >>>want 4 buttons...6 records then 6 buttons. Each time the form >opens...it > >>>may have to add or remove a button depending on the values in the >table. > >>> > >>>Does anyone have any suggestions/ideas/examples of the best approach >for > >>>this? > >>> > >>>Thanks, > >>> > >>>Mark A. Matte > >>> > >>> > >>>-- > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>Website: http://www.databaseadvisors.com > >>> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Dec 27 16:39:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 28 Dec 2004 08:39:19 +1000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: References: Message-ID: <41D11BB7.27300.229C4203@lexacorp.com.pg> On 27 Dec 2004 at 21:41, Mark A Matte wrote: > I could build ALL buttons that would fit on the page...hide them unless > there are records in the table. It might be a little tricky if they mark > one of the selections inactive(in the table)...which in theory would cause > all of the buttons below the inactive one...to be shifted up by one > position. > > I think I can work with this though. Thanks David and Rocky. > You should be able to do this easily by modifying the standard Switchboard and its underlying code. You can have as many buttons on the switchboard as you want, just add extra buttons using the same naming scheme and change the value of "Const conNumButtons." In the Fill_options code, you could display but disable the respective button if the item is "Inactive" -- Stuart From dmcafee at pacbell.net Mon Dec 27 16:58:56 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Mon, 27 Dec 2004 14:58:56 -0800 Subject: [AccessD] A2k Build Form from Table In-Reply-To: Message-ID: Ah, you are building a "McDonald's" order entry screen :) I thought you were building a fancy menu system. The same applies as what I mentioned earlier. You just need to handle the possibility of more "beers" being added over time than you have buttons for. You can either do this my selecting top 25 (if you can only fit 25 buttons on the form) or if record count >25 then unhide a "next" button that will basically re-format the screen for the next group of 25 "beers". What do you want to happen when the user clicks on one of these pictures? are you adding inventory to a pick list? David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Monday, December 27, 2004 1:41 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A2k Build Form from Table Rocky, Lets use the example of BEER...If a place has 10 beers listed in their inventory...I want 10 beer buttons to show on the 'Beer Selection' Screen. If they add 15 more to inventory table...I want 25 buttons on the selection screen. My goal is no program or coding changes for an inventory change...and avoid scrolling when they do this. I could build ALL buttons that would fit on the page...hide them unless there are records in the table. It might be a little tricky if they mark one of the selections inactive(in the table)...which in theory would cause all of the buttons below the inactive one...to be shifted up by one position. I think I can work with this though. Thanks David and Rocky. ...but I am still open to ANY ideas or thoughts anyone has. Thanks Again, Mark A. Matte >From: >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A2k Build Form from Table >Date: Mon, 27 Dec 2004 12:11:28 -0800 > >Mark, as Rocky has mentioned, this will be hard if you set a max number of >possible buttons. I was going to do a similar task once using the >switchboard concept, only opening it up a bit to allow ten or twelve >choices, but I never had more than 5 minutes to spend on it > >Basically have a dozen (or so) "picture buttons" on the form, all hidden. >Number them consecutively such as imj1, imj2... > >Open a given recordset (at form load), which a column containing the name >of >a function or sub to run. You can use the count to figure how many buttons >to unhide. The OnClick event of each button will have to figure out it own >name such as Right(Me.ActiveControl.Name,1). Now take that "button number" >and go to the given record in the recordset and call the column's function >using EVAL() > > >HTH >David McAfee > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - >Beach Access Software >Sent: Monday, December 27, 2004 11:39 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2k Build Form from Table > > >Mark: > >Everything's perfect here. Thanks. > >If you don't know how many records are going to be in the table or what the >maximum will be, I'm not sure how you can organize a screen which won't >have >scrolling. > >You could put 40 invisible buttons on the form and make them visible and >change their captions depending on how many records were present in the >table. But if they go over 40 records, you've got a problem. > >Maybe describe more what you're trying to do and there will be a different >approach to solving the problem. > >On the other topic: IS it time for the AccessD list to try another >abortive >attempt at organizing a conference somewhere? > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > > > >----- Original Message ----- >From: "Mark A Matte" >To: >Sent: Monday, December 27, 2004 11:12 AM >Subject: Re: [AccessD] A2k Build Form from Table > > > > Rocky, > > > > On a different topic...searched the web a couple of weeks ago for some > > access stuff and your name and picture from an Access conference came > > up...hadn't noticed your name on the list in awhile. Hope all's well. > > > > Back on topic: > > Thanks for the feedback...That was the first approach I thought of...but >I > > was concerned about scrolling and I don't want any scrolling if there >are > > more choices. I used 4 and 6 as examples...but as reallity goes...I >would > > probably need more like 30 to 40 records in the tables for some >instances. > > I thought of using multiple subforms side by side ( same subform but >with > > different selects)...with 4 subforms, when the user configures the > > data...they would have an option of which subform(column from there > > perspective) the data would appear in. > > > > I'm basically looking for a direction...or concept as you called it. > > Hoping someone has done something like this before...and would be >willing > > to share the experience/problems/tips. > > > > Thanks Again, > > > > Mark A. Matte > >>From: "Rocky Smolin - Beach Access Software" > >>Reply-To: Access Developers discussion and problem > >>solving > >>To: "Access Developers discussion and problem > >>solving" > >>Subject: Re: [AccessD] A2k Build Form from Table > >>Date: Mon, 27 Dec 2004 10:46:21 -0800 > >> > >>Mark: > >> > >>How about a continuous form where one of the fields is a button (not >sure > >>how to do this - I'm a concept guy) > >> > >>Rocky > >> > >>----- Original Message ----- From: "Mark A Matte" > > >>To: > >>Sent: Monday, December 27, 2004 10:12 AM > >>Subject: [AccessD] A2k Build Form from Table > >> > >> > >>>Hello All, > >>> > >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. >I > >>>want a form to be displayed with buttons ( of stuff to click on ie text > >>>box, piture, whatever)...but I want to buttons to be displayed >depending > >>>on the number of records in a table. If there are 4 records...then I > >>>want 4 buttons...6 records then 6 buttons. Each time the form >opens...it > >>>may have to add or remove a button depending on the values in the >table. > >>> > >>>Does anyone have any suggestions/ideas/examples of the best approach >for > >>>this? > >>> > >>>Thanks, > >>> > >>>Mark A. Matte > >>> > >>> > >>>-- > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>Website: http://www.databaseadvisors.com > >>> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Dec 27 19:27:38 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 27 Dec 2004 20:27:38 -0500 Subject: [AccessD] A2k Build Form from Table In-Reply-To: Message-ID: Mark, I've got an old cash register program I wrote that I'm sending along. Think it will give you a few ideas. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Monday, December 27, 2004 1:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] A2k Build Form from Table Hello All, I'm working on a small A2k app that needs a 'kinda dynamic' approach. I want a form to be displayed with buttons ( of stuff to click on ie text box, piture, whatever)...but I want to buttons to be displayed depending on the number of records in a table. If there are 4 records...then I want 4 buttons...6 records then 6 buttons. Each time the form opens...it may have to add or remove a button depending on the values in the table. Does anyone have any suggestions/ideas/examples of the best approach for this? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Dec 27 20:06:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 27 Dec 2004 21:06:45 -0500 Subject: [AccessD] Query SQL correct but not visible in design view In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB677233730B@corp-es01.fleetpride.com> Message-ID: <001c01c4ec81$e55d4d90$0300a8c0@ColbyM6805> Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwcolby at colbyconsulting.com Mon Dec 27 20:10:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 27 Dec 2004 21:10:51 -0500 Subject: [AccessD] A2k Build Form from Table In-Reply-To: Message-ID: <001d01c4ec82$77e868c0$0300a8c0@ColbyM6805> ROTFL! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, December 27, 2004 4:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2k Build Form from Table ..sorry 'bout that :( ..anyway ...JC did some work with the switchboard a couple years back that basically allowed you to assign an almost unlimited number of buttons ...and since that is table record driven I'd think it would be adaptable to your needs with a bit of spit 'n polish on the code ...try his site where I'm sure he still has a sample posted ...if not, let me know since I never throw any sample code out ...even JC's ...which just goes to show how desperate one person can be :)) William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, December 27, 2004 3:11 PM Subject: RE: [AccessD] A2k Build Form from Table > Mark, as Rocky has mentioned, this will be hard if you set a max > number of possible buttons. I was going to do a similar task once > using the switchboard concept, only opening it up a bit to allow ten > or twelve choices, but I never had more than 5 minutes to spend on it > > Basically have a dozen (or so) "picture buttons" on the form, all > hidden. Number them consecutively such as imj1, imj2... > > Open a given recordset (at form load), which a column containing the > name > of > a function or sub to run. You can use the count to figure how many buttons > to unhide. The OnClick event of each button will have to figure out it own > name such as Right(Me.ActiveControl.Name,1). Now take that "button number" > and go to the given record in the recordset and call the column's function > using EVAL() > > > HTH > David McAfee > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, December 27, 2004 11:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2k Build Form from Table > > > Mark: > > Everything's perfect here. Thanks. > > If you don't know how many records are going to be in the table or > what > the > maximum will be, I'm not sure how you can organize a screen which won't > have > scrolling. > > You could put 40 invisible buttons on the form and make them visible > and change their captions depending on how many records were present > in the table. But if they go over 40 records, you've got a problem. > > Maybe describe more what you're trying to do and there will be a > different approach to solving the problem. > > On the other topic: IS it time for the AccessD list to try another > abortive > attempt at organizing a conference somewhere? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > > ----- Original Message ----- > From: "Mark A Matte" > To: > Sent: Monday, December 27, 2004 11:12 AM > Subject: Re: [AccessD] A2k Build Form from Table > > >> Rocky, >> >> On a different topic...searched the web a couple of weeks ago for >> some access stuff and your name and picture from an Access conference >> came up...hadn't noticed your name on the list in awhile. Hope all's >> well. >> >> Back on topic: >> Thanks for the feedback...That was the first approach I thought >> of...but >> I >> was concerned about scrolling and I don't want any scrolling if there are >> more choices. I used 4 and 6 as examples...but as reallity goes...I >> would >> probably need more like 30 to 40 records in the tables for some >> instances. >> I thought of using multiple subforms side by side ( same subform but with >> different selects)...with 4 subforms, when the user configures the >> data...they would have an option of which subform(column from there >> perspective) the data would appear in. >> >> I'm basically looking for a direction...or concept as you called it. >> Hoping someone has done something like this before...and would be >> willing to share the experience/problems/tips. >> >> Thanks Again, >> >> Mark A. Matte >>>From: "Rocky Smolin - Beach Access Software" >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: "Access Developers discussion and problem >>>solving" >>>Subject: Re: [AccessD] A2k Build Form from Table >>>Date: Mon, 27 Dec 2004 10:46:21 -0800 >>> >>>Mark: >>> >>>How about a continuous form where one of the fields is a button (not >>>sure how to do this - I'm a concept guy) >>> >>>Rocky >>> >>>----- Original Message ----- From: "Mark A Matte" >>> >>>To: >>>Sent: Monday, December 27, 2004 10:12 AM >>>Subject: [AccessD] A2k Build Form from Table >>> >>> >>>>Hello All, >>>> >>>>I'm working on a small A2k app that needs a 'kinda dynamic' >>>>approach. I want a form to be displayed with buttons ( of stuff to >>>>click on ie text box, piture, whatever)...but I want to buttons to >>>>be displayed depending on the number of records in a table. If >>>>there are 4 records...then I want 4 buttons...6 records then 6 >>>>buttons. Each time the form opens...it may have to add or remove a >>>>button depending on the values in the table. >>>> >>>>Does anyone have any suggestions/ideas/examples of the best approach >>>>for this? >>>> >>>>Thanks, >>>> >>>>Mark A. Matte >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Dec 27 20:16:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 27 Dec 2004 21:16:56 -0500 Subject: [AccessD] Passing Param arrays In-Reply-To: <017b01c4ec49$19e8ee40$651865cb@winxp> Message-ID: <001e01c4ec83$514035d0$0300a8c0@ColbyM6805> In this case, the function is called from a query, where I need to be able to pass in N fields from the query. The number can change. There is no place to dimension or set up the array. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Monday, December 27, 2004 2:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Passing Param arrays ================================ Nested Functions Using Arrays As Arguments ================================ This pertains to functions using array arguments and then returning an array as the result. Observations placed below are based upon tests conducted on Access XP (running on Win XP). A function using ParamArray as the keyword for its array argument is governed by the following limitations. (a) Each element of the array is required to be mentioned individually. Simply using an array variable (or a function that returns an array) in lieu, will not do. (b) ParamArray keyword is not to be preceded with ByVal, ByRef, or Optional keywords. (c) ParamArray type argument is to be used only as the last argument in arglist to indicate that the final argument is an optional array of Variant elements. On the other hand, if the array argument is handled without using the keyword ParamArray, there is far greater flexibility regarding the manner in which the array argument can be supplied. Any of the following alternatives will do. (a) An array variable (b) A function returning an array (c) A literal array using the built-in Array() function. Example - Array(2,4,8,16,32,64) It would thus be seen that, if functions returning array values are to be nested, those having ParamArray as the keyword stand disqualified, except for being used as the very first step. All higher layer functions have to be those using an array variable as their argument, without ParamArray keyword. As an illustration, two sample functions are given below. Fn_PAr() uses ParamArray as the keyword for its array argument, while Fn_Ar() uses a normal array variable as its argument, without the keyword ParamArray. Both these functions double the value of each element of the input array argument and return the result as an array. Sample test procedures for verifying the performance of above functions under three layers of nesting are also given below. Brief details - (a) Sub P_TestArrayFunctions_A() Three level nesting of array functions. Function having ParamArray as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (b) Sub P_TestArrayFunctions_B() Three level nesting of array functions. Function having an array variable as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (c) Sub P_TestArrayFunctions_C() Three level nesting of array functions. Function having a literal Array() function as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. Conclusion -------------- Considering its superior flexibility as explained above, a function using a straight array variable as its argument (without being preceded by the keyword ParamArray) should prove universally more convenient as compared to one with ParamArray keyword. While it is amenable to multi-level nesting, accepting array variable (or function returning an array) as its argument, it can also mimic the ParamArray style input (i.e. literal supply of individual elements of array argument) as demonstrated in test procedure Sub P_TestArrayFunctions_C() below. A.D.Tejpal -------------- =================================== Function Fn_PAr(ParamArray Pa() _ As Variant) As Variant ' Doubles each element of ParamArray ' argument Pa() and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Pa)) For Cnt = LBound(Pa) To UBound(Pa) La(Cnt) = 2 * Pa(Cnt) Next Fn_PAr = La End Function '------------------------------------ Function Fn_Ar(ByVal Ar As Variant) As Variant ' Doubles each element of array argument Ar ' and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Ar)) For Cnt = LBound(Ar) To UBound(Ar) La(Cnt) = 2 * Ar(Cnt) Next Fn_Ar = La End Function '------------------------------------ Sub P_TestArrayFunctions_A() ' Three level nesting of array functions. ' Function having ParamArray as its ' argument is used as an array argument for ' another function, which in turn, is used as ' an array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_PAr(2, 4, 8, 16, 32, 64))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_B() ' Three level nesting of array functions. ' Function having an array variable as its ' argument is used as an array argument ' for another function, which in turn, is used ' as an array argument for the final function. Dim Rtv As Variant Dim Cnt As Long, Ar As Variant Ar = Array(2, 4, 8, 16, 32, 64) Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Ar))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_C() ' Three level nesting of array functions. ' Function having a literal Array() function as ' its argument is used as an array argument for ' another function, which in turn, is used as an ' array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Array(2, 4, 8, 16, 32, 64)))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub =================================== ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:35 Subject: [AccessD] Passing Param arrays I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Dec 27 22:08:00 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 27 Dec 2004 20:08:00 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC In-Reply-To: Message-ID: <0I9E00M67ZG68N@l-daemon> Hi All Never having used an ODBC connection, to MS SQL, since pre 1997, I am having some issues when linking the tables, to Access. The tables link OK but each table is prefixed with the owner code, in this case DBO. Example table 'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? Any help would be greatly appreciated as the prospect of manually renaming 250 odd tables does not excite. MTIA Jim From bchacc at san.rr.com Tue Dec 28 00:22:23 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Dec 2004 22:22:23 -0800 Subject: [AccessD] A2k Build Form from Table References: Message-ID: <025601c4eca5$983fe620$6401a8c0@HAL9002> Mark: "If they add 15 more to inventory table...I want 25 buttons on the selection screen. My goal is no program or coding changes for an inventory change...and avoid scrolling when they do this." I don't think you can get there. Let's take the simple case: they add 3500 beers to inventory. Do you want 2500 buttons on the screen even if you allow scrolling? Without scrolling there's only one way to do it: create the buttons on the fly and size them so they'll all fit on the screen. However, if you get enough buttons the captions or pictures won't be legible. IS there some practical limit you can set on the number of records you need reflected in buttons on the screen? Rocky ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 1:41 PM Subject: RE: [AccessD] A2k Build Form from Table > Rocky, > > Lets use the example of BEER...If a place has 10 beers listed in their > inventory...I want 10 beer buttons to show on the 'Beer Selection' Screen. > If they add 15 more to inventory table...I want 25 buttons on the > selection screen. > > My goal is no program or coding changes for an inventory change...and > avoid scrolling when they do this. > > I could build ALL buttons that would fit on the page...hide them unless > there are records in the table. It might be a little tricky if they mark > one of the selections inactive(in the table)...which in theory would cause > all of the buttons below the inactive one...to be shifted up by one > position. > > I think I can work with this though. Thanks David and Rocky. > > ...but I am still open to ANY ideas or thoughts anyone has. > > Thanks Again, > > Mark A. Matte > >>From: >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: RE: [AccessD] A2k Build Form from Table >>Date: Mon, 27 Dec 2004 12:11:28 -0800 >> >>Mark, as Rocky has mentioned, this will be hard if you set a max number of >>possible buttons. I was going to do a similar task once using the >>switchboard concept, only opening it up a bit to allow ten or twelve >>choices, but I never had more than 5 minutes to spend on it >> >>Basically have a dozen (or so) "picture buttons" on the form, all hidden. >>Number them consecutively such as imj1, imj2... >> >>Open a given recordset (at form load), which a column containing the name >>of >>a function or sub to run. You can use the count to figure how many buttons >>to unhide. The OnClick event of each button will have to figure out it own >>name such as Right(Me.ActiveControl.Name,1). Now take that "button number" >>and go to the given record in the recordset and call the column's function >>using EVAL() >> >> >>HTH >>David McAfee >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - >>Beach Access Software >>Sent: Monday, December 27, 2004 11:39 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] A2k Build Form from Table >> >> >>Mark: >> >>Everything's perfect here. Thanks. >> >>If you don't know how many records are going to be in the table or what >>the >>maximum will be, I'm not sure how you can organize a screen which won't >>have >>scrolling. >> >>You could put 40 invisible buttons on the form and make them visible and >>change their captions depending on how many records were present in the >>table. But if they go over 40 records, you've got a problem. >> >>Maybe describe more what you're trying to do and there will be a different >>approach to solving the problem. >> >>On the other topic: IS it time for the AccessD list to try another >>abortive >>attempt at organizing a conference somewhere? >> >>Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >> >> >> >>----- Original Message ----- >>From: "Mark A Matte" >>To: >>Sent: Monday, December 27, 2004 11:12 AM >>Subject: Re: [AccessD] A2k Build Form from Table >> >> >> > Rocky, >> > >> > On a different topic...searched the web a couple of weeks ago for some >> > access stuff and your name and picture from an Access conference came >> > up...hadn't noticed your name on the list in awhile. Hope all's well. >> > >> > Back on topic: >> > Thanks for the feedback...That was the first approach I thought >> > of...but >>I >> > was concerned about scrolling and I don't want any scrolling if there >>are >> > more choices. I used 4 and 6 as examples...but as reallity goes...I >>would >> > probably need more like 30 to 40 records in the tables for some >>instances. >> > I thought of using multiple subforms side by side ( same subform but >>with >> > different selects)...with 4 subforms, when the user configures the >> > data...they would have an option of which subform(column from there >> > perspective) the data would appear in. >> > >> > I'm basically looking for a direction...or concept as you called it. >> > Hoping someone has done something like this before...and would be >>willing >> > to share the experience/problems/tips. >> > >> > Thanks Again, >> > >> > Mark A. Matte >> >>From: "Rocky Smolin - Beach Access Software" >> >>Reply-To: Access Developers discussion and problem >> >>solving >> >>To: "Access Developers discussion and problem >> >>solving" >> >>Subject: Re: [AccessD] A2k Build Form from Table >> >>Date: Mon, 27 Dec 2004 10:46:21 -0800 >> >> >> >>Mark: >> >> >> >>How about a continuous form where one of the fields is a button (not >>sure >> >>how to do this - I'm a concept guy) >> >> >> >>Rocky >> >> >> >>----- Original Message ----- From: "Mark A Matte" >> >> >>To: >> >>Sent: Monday, December 27, 2004 10:12 AM >> >>Subject: [AccessD] A2k Build Form from Table >> >> >> >> >> >>>Hello All, >> >>> >> >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. >>I >> >>>want a form to be displayed with buttons ( of stuff to click on ie >> >>>text >> >>>box, piture, whatever)...but I want to buttons to be displayed >>depending >> >>>on the number of records in a table. If there are 4 records...then I >> >>>want 4 buttons...6 records then 6 buttons. Each time the form >>opens...it >> >>>may have to add or remove a button depending on the values in the >>table. >> >>> >> >>>Does anyone have any suggestions/ideas/examples of the best approach >>for >> >>>this? >> >>> >> >>>Thanks, >> >>> >> >>>Mark A. Matte >> >>> >> >>> >> >>>-- >> >>>AccessD mailing list >> >>>AccessD at databaseadvisors.com >> >>>http://databaseadvisors.com/mailman/listinfo/accessd >> >>>Website: http://www.databaseadvisors.com >> >>> >> >> >> >>-- >> >>AccessD mailing list >> >>AccessD at databaseadvisors.com >> >>http://databaseadvisors.com/mailman/listinfo/accessd >> >>Website: http://www.databaseadvisors.com >> > >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Dec 28 00:49:52 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 27 Dec 2004 22:49:52 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC References: <0I9E00M67ZG68N@l-daemon> Message-ID: <41D10210.3000401@shaw.ca> There is a "MYSQL/ODBC list" Join the mailing list from this page about 2/3 down. http://lists.mysql.com Some of ODBC drivers for MaxDB don't always work and you might have to go back a release from the latest one. At least it was that way a year ago. I had Access 97 with WinXP connected at that time to MaxDB not MySQL Maybe look through the archives when you are subscribing to the list Jim Lawrence wrote: >Hi All > >Never having used an ODBC connection, to MS SQL, since pre 1997, I am having >some issues when linking the tables, to Access. The tables link OK but each >table is prefixed with the owner code, in this case DBO. Example table >'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? > >Any help would be greatly appreciated as the prospect of manually renaming >250 odd tables does not excite. > >MTIA >Jim > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Tue Dec 28 01:41:21 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 27 Dec 2004 23:41:21 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC In-Reply-To: <41D10210.3000401@shaw.ca> Message-ID: <0I9F0040P9BQGQ@l-daemon> Thanks Marty: ...But the question is to do with MS SQL not MySQL. The ODBC driver is actually Microsoft's driver. I am having an issue with the way it retrieves the table names from the MS SQL DB. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, December 27, 2004 10:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking Tables from MS SQL using ODBC There is a "MYSQL/ODBC list" Join the mailing list from this page about 2/3 down. http://lists.mysql.com Some of ODBC drivers for MaxDB don't always work and you might have to go back a release from the latest one. At least it was that way a year ago. I had Access 97 with WinXP connected at that time to MaxDB not MySQL Maybe look through the archives when you are subscribing to the list Jim Lawrence wrote: >Hi All > >Never having used an ODBC connection, to MS SQL, since pre 1997, I am having >some issues when linking the tables, to Access. The tables link OK but each >table is prefixed with the owner code, in this case DBO. Example table >'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? > >Any help would be greatly appreciated as the prospect of manually renaming >250 odd tables does not excite. > >MTIA >Jim > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Dec 28 02:58:18 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Dec 2004 09:58:18 +0100 Subject: [AccessD] Linking Tables from MS SQL using ODBC Message-ID: Hi Jim It is normal, but no big deal. Just loop through the DAO.TableDefs collection and adjust the Name property if this begins with "dbo_". /gustav >>> accessd at shaw.ca 28-12-2004 05:08:00 >>> Hi All Never having used an ODBC connection, to MS SQL, since pre 1997, I am having some issues when linking the tables, to Access. The tables link OK but each table is prefixed with the owner code, in this case DBO. Example table 'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? Any help would be greatly appreciated as the prospect of manually renaming 250 odd tables does not excite. MTIA Jim From viner at EUnet.yu Tue Dec 28 06:29:34 2004 From: viner at EUnet.yu (ErvinBrindza) Date: Tue, 28 Dec 2004 13:29:34 +0100 Subject: [AccessD] A2k Build Form from Table References: Message-ID: <007d01c4ecd8$ea712070$5b00a8c0@RazvojErvin> And what about the code behind all those buttons? Maybe a simple combo box would be suitable... Ervin ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 10:41 PM Subject: RE: [AccessD] A2k Build Form from Table > Rocky, > > Lets use the example of BEER...If a place has 10 beers listed in their > inventory...I want 10 beer buttons to show on the 'Beer Selection' Screen. > If they add 15 more to inventory table...I want 25 buttons on the selection > screen. > > My goal is no program or coding changes for an inventory change...and avoid > scrolling when they do this. > > I could build ALL buttons that would fit on the page...hide them unless > there are records in the table. It might be a little tricky if they mark > one of the selections inactive(in the table)...which in theory would cause > all of the buttons below the inactive one...to be shifted up by one > position. > > I think I can work with this though. Thanks David and Rocky. > > ...but I am still open to ANY ideas or thoughts anyone has. > > Thanks Again, > > Mark A. Matte > > >From: > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A2k Build Form from Table > >Date: Mon, 27 Dec 2004 12:11:28 -0800 > > > >Mark, as Rocky has mentioned, this will be hard if you set a max number of > >possible buttons. I was going to do a similar task once using the > >switchboard concept, only opening it up a bit to allow ten or twelve > >choices, but I never had more than 5 minutes to spend on it > > > >Basically have a dozen (or so) "picture buttons" on the form, all hidden. > >Number them consecutively such as imj1, imj2... > > > >Open a given recordset (at form load), which a column containing the name > >of > >a function or sub to run. You can use the count to figure how many buttons > >to unhide. The OnClick event of each button will have to figure out it own > >name such as Right(Me.ActiveControl.Name,1). Now take that "button number" > >and go to the given record in the recordset and call the column's function > >using EVAL() > > > > > >HTH > >David McAfee > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > >Beach Access Software > >Sent: Monday, December 27, 2004 11:39 AM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] A2k Build Form from Table > > > > > >Mark: > > > >Everything's perfect here. Thanks. > > > >If you don't know how many records are going to be in the table or what the > >maximum will be, I'm not sure how you can organize a screen which won't > >have > >scrolling. > > > >You could put 40 invisible buttons on the form and make them visible and > >change their captions depending on how many records were present in the > >table. But if they go over 40 records, you've got a problem. > > > >Maybe describe more what you're trying to do and there will be a different > >approach to solving the problem. > > > >On the other topic: IS it time for the AccessD list to try another > >abortive > >attempt at organizing a conference somewhere? > > > >Regards, > > > >Rocky Smolin > >Beach Access Software > >http://www.e-z-mrp.com > >858-259-4334 > > > > > > > > > >----- Original Message ----- > >From: "Mark A Matte" > >To: > >Sent: Monday, December 27, 2004 11:12 AM > >Subject: Re: [AccessD] A2k Build Form from Table > > > > > > > Rocky, > > > > > > On a different topic...searched the web a couple of weeks ago for some > > > access stuff and your name and picture from an Access conference came > > > up...hadn't noticed your name on the list in awhile. Hope all's well. > > > > > > Back on topic: > > > Thanks for the feedback...That was the first approach I thought of...but > >I > > > was concerned about scrolling and I don't want any scrolling if there > >are > > > more choices. I used 4 and 6 as examples...but as reallity goes...I > >would > > > probably need more like 30 to 40 records in the tables for some > >instances. > > > I thought of using multiple subforms side by side ( same subform but > >with > > > different selects)...with 4 subforms, when the user configures the > > > data...they would have an option of which subform(column from there > > > perspective) the data would appear in. > > > > > > I'm basically looking for a direction...or concept as you called it. > > > Hoping someone has done something like this before...and would be > >willing > > > to share the experience/problems/tips. > > > > > > Thanks Again, > > > > > > Mark A. Matte > > >>From: "Rocky Smolin - Beach Access Software" > > >>Reply-To: Access Developers discussion and problem > > >>solving > > >>To: "Access Developers discussion and problem > > >>solving" > > >>Subject: Re: [AccessD] A2k Build Form from Table > > >>Date: Mon, 27 Dec 2004 10:46:21 -0800 > > >> > > >>Mark: > > >> > > >>How about a continuous form where one of the fields is a button (not > >sure > > >>how to do this - I'm a concept guy) > > >> > > >>Rocky > > >> > > >>----- Original Message ----- From: "Mark A Matte" > > > > >>To: > > >>Sent: Monday, December 27, 2004 10:12 AM > > >>Subject: [AccessD] A2k Build Form from Table > > >> > > >> > > >>>Hello All, > > >>> > > >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. > >I > > >>>want a form to be displayed with buttons ( of stuff to click on ie text > > >>>box, piture, whatever)...but I want to buttons to be displayed > >depending > > >>>on the number of records in a table. If there are 4 records...then I > > >>>want 4 buttons...6 records then 6 buttons. Each time the form > >opens...it > > >>>may have to add or remove a button depending on the values in the > >table. > > >>> > > >>>Does anyone have any suggestions/ideas/examples of the best approach > >for > > >>>this? > > >>> > > >>>Thanks, > > >>> > > >>>Mark A. Matte > > >>> > > >>> > > >>>-- > > >>>AccessD mailing list > > >>>AccessD at databaseadvisors.com > > >>>http://databaseadvisors.com/mailman/listinfo/accessd > > >>>Website: http://www.databaseadvisors.com > > >>> > > >> > > >>-- > > >>AccessD mailing list > > >>AccessD at databaseadvisors.com > > >>http://databaseadvisors.com/mailman/listinfo/accessd > > >>Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Dec 28 06:52:10 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 28 Dec 2004 22:52:10 +1000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: <007d01c4ecd8$ea712070$5b00a8c0@RazvojErvin> Message-ID: <41D1E39A.647.25A90764@lexacorp.com.pg> On 28 Dec 2004 at 13:29, ErvinBrindza wrote: > And what about the code behind all those buttons? Maybe a simple combo box > would be suitable... > Ervin > Each button just needs an on_click action of "=Handlebuttonclick(index)" -- Stuart From dwaters at usinternet.com Tue Dec 28 08:30:28 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 08:30:28 -0600 Subject: [AccessD] Naming Convention (Query SQL correct but not visible in design view) In-Reply-To: <22946221.1104199670491.JavaMail.root@sniper21.securence.com> Message-ID: <000401c4ece9$c78df180$de1811d8@danwaters> John, You've really thought this through! I will no longer give FK's the same name as the primary key. I do one thing for a specific reason. When naming sub forms or reports they go like this: frmPeople or frmPeopleMain, and frmPeopleSub. I do this so that all the People related forms are adjacent in the database window. Something else I do that is to almost never use an abbreviation in a field, variable, control, or label name. This allows me or someone else to pretty much be able to read the code to see what's happening without my having to put in explanatory comments. It seems that I take more time writing and modifying comments than I do writing code, so minimizing comments is good. Also, when I can read code, I cannot misinterpret what is happening. My names could look like: tblPeopleMain tblPeopleSub lblDesignEngineer txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field name = DesignEngineerApproval dteDesignEngineer - field name = DesignEngineerDate stgDesignEngineer varDesignEngineer . . . . and so on. You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, December 27, 2004 8:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Dec 28 08:47:54 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 28 Dec 2004 06:47:54 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC In-Reply-To: Message-ID: <0I9F0082GT2KGI@l-daemon> Thanks for your help Gustav. I will set up a function to do that. In the place that I am currently working their application was originally designed in Access. When it came to updating the system to work with larger DBs the solution cobbled together was a non-Access front-end and an Access MDB backend that uses ODBC to connect to all the data. Scary :-( Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 28, 2004 12:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linking Tables from MS SQL using ODBC Hi Jim It is normal, but no big deal. Just loop through the DAO.TableDefs collection and adjust the Name property if this begins with "dbo_". /gustav >>> accessd at shaw.ca 28-12-2004 05:08:00 >>> Hi All Never having used an ODBC connection, to MS SQL, since pre 1997, I am having some issues when linking the tables, to Access. The tables link OK but each table is prefixed with the owner code, in this case DBO. Example table 'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? Any help would be greatly appreciated as the prospect of manually renaming 250 odd tables does not excite. MTIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Dec 28 08:52:47 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Dec 2004 15:52:47 +0100 Subject: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) Message-ID: Hi Dan >From a macro you can recompile your code after adjusting the references. I have found no other way to do that (and no, the SysCmd(SomeCompileConstant) doesn't work except when run from the debug window). /gustav >>> dwaters at usinternet.com 28-12-2004 15:30:28 >>> You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? From Subscriptions at servicexp.com Tue Dec 28 09:09:16 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Tue, 28 Dec 2004 10:09:16 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <000401c4ece9$c78df180$de1811d8@danwaters> Message-ID: Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie From dwaters at usinternet.com Tue Dec 28 09:25:43 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 09:25:43 -0600 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <28216779.1104246709045.JavaMail.root@sniper19.securence.com> Message-ID: <000701c4ecf1$7f139600$de1811d8@danwaters> Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Dec 28 09:27:22 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 09:27:22 -0600 Subject: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) In-Reply-To: <30640609.1104245728737.JavaMail.root@sniper20.securence.com> Message-ID: <000801c4ecf1$ba440570$de1811d8@danwaters> Thanks Gustav - That's new for me! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 28, 2004 8:53 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) Hi Dan >From a macro you can recompile your code after adjusting the references. I have found no other way to do that (and no, the SysCmd(SomeCompileConstant) doesn't work except when run from the debug window). /gustav >>> dwaters at usinternet.com 28-12-2004 15:30:28 >>> You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Tue Dec 28 09:29:07 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 28 Dec 2004 10:29:07 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) References: Message-ID: "From a macro you can recompile your code after adjusting the references." gustav ..ok ...I'm confused ...why would I want to use a macro to do that? William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 28, 2004 9:52 AM Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) > Hi Dan > >>From a macro you can recompile your code after adjusting the > references. > I have found no other way to do that (and no, the > SysCmd(SomeCompileConstant) doesn't work except when run from the debug > window). > > /gustav > >>>> dwaters at usinternet.com 28-12-2004 15:30:28 >>> > > You said you use an autoexec macro (I've never used macros in Access). > I > use an invisible startup form, which calls a list of procedures and > functions in a standard module. Do you know of an advantage one way or > the > other? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mastercafe at ctv.es Tue Dec 28 09:46:35 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 28 Dec 2004 16:46:35 +0100 Subject: [AccessD] Vba with SOAP experiences In-Reply-To: Message-ID: <000001c4ecf4$6aa77030$0500a8c0@masterserv> Hi group, we are searching information about SOAP to include on an application for POS (Point of sale). We are trying to put a service to credit card for pay the bill. Thank you very much Juan =========================================== MASTERCAFE S.L. NIF - B 82.617.614 Juan Men?ndez Crespo Plaza Puerta de Europa 2, 1-D (33011 Oviedo) www.mastercafe.com info at mastercafe.com =========================================== El contenido del presente correo es privado. Todos los archivos adjuntos han sido revisados y escaneados con McAfee VirusScan 8. Solo ser?n v?lidos aquellos archivos que est?n identificados en el cuerpo del correo y que se describa su composici?n y contenido del mismo. From Gustav at cactus.dk Tue Dec 28 09:58:39 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Dec 2004 16:58:39 +0100 Subject: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Message-ID: Hi William At lunch, sorry launch time, if you check the references and one is missing and you get it reestablished, your code is left uncompiled. Your code cannot compile itself, thus you'll need to do that from the "outside" and - seen from the code's view - a macro is such an outside place. Another outside place place is a form with a timer event. As the AutoExec macro will run before anything else, you can let it first check and repair the references, then - if needed - recompile the app; it only takes a few seconds. /gustav >>> dejpolsys at hotmail.com 28-12-2004 16:29:07 >>> "From a macro you can recompile your code after adjusting the references." gustav ..ok ...I'm confused ...why would I want to use a macro to do that? William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 28, 2004 9:52 AM Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) > Hi Dan > >>From a macro you can recompile your code after adjusting the > references. > I have found no other way to do that (and no, the > SysCmd(SomeCompileConstant) doesn't work except when run from the debug > window). > > /gustav > >>>> dwaters at usinternet.com 28-12-2004 15:30:28 >>> > > You said you use an autoexec macro (I've never used macros in Access). > I use an invisible startup form, which calls a list of procedures and > functions in a standard module. Do you know of an advantage one way or > the other? From john at winhaven.net Tue Dec 28 10:14:52 2004 From: john at winhaven.net (John Bartow) Date: Tue, 28 Dec 2004 10:14:52 -0600 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <000701c4ecf1$7f139600$de1811d8@danwaters> Message-ID: <200412281016359.SM03308@ScuzzPaq> JC's Timer class sample on his website should be a good starting point. Www.colbyconsulting.com HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 28 10:29:03 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 08:29:03 -0800 Subject: [AccessD] Passing Param arrays Message-ID: John, Use variants. They handle paramarrays quite nicely. If you return a paramarray in a variant to the calling routine and assign it to a variant in that routine, you'll be able to address its elements and test the ubound, etc., just as you would any other paramarray. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, December 27, 2004 6:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Passing Param arrays In this case, the function is called from a query, where I need to be able to pass in N fields from the query. The number can change. There is no place to dimension or set up the array. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Monday, December 27, 2004 2:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Passing Param arrays ================================ Nested Functions Using Arrays As Arguments ================================ This pertains to functions using array arguments and then returning an array as the result. Observations placed below are based upon tests conducted on Access XP (running on Win XP). A function using ParamArray as the keyword for its array argument is governed by the following limitations. (a) Each element of the array is required to be mentioned individually. Simply using an array variable (or a function that returns an array) in lieu, will not do. (b) ParamArray keyword is not to be preceded with ByVal, ByRef, or Optional keywords. (c) ParamArray type argument is to be used only as the last argument in arglist to indicate that the final argument is an optional array of Variant elements. On the other hand, if the array argument is handled without using the keyword ParamArray, there is far greater flexibility regarding the manner in which the array argument can be supplied. Any of the following alternatives will do. (a) An array variable (b) A function returning an array (c) A literal array using the built-in Array() function. Example - Array(2,4,8,16,32,64) It would thus be seen that, if functions returning array values are to be nested, those having ParamArray as the keyword stand disqualified, except for being used as the very first step. All higher layer functions have to be those using an array variable as their argument, without ParamArray keyword. As an illustration, two sample functions are given below. Fn_PAr() uses ParamArray as the keyword for its array argument, while Fn_Ar() uses a normal array variable as its argument, without the keyword ParamArray. Both these functions double the value of each element of the input array argument and return the result as an array. Sample test procedures for verifying the performance of above functions under three layers of nesting are also given below. Brief details - (a) Sub P_TestArrayFunctions_A() Three level nesting of array functions. Function having ParamArray as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (b) Sub P_TestArrayFunctions_B() Three level nesting of array functions. Function having an array variable as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (c) Sub P_TestArrayFunctions_C() Three level nesting of array functions. Function having a literal Array() function as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. Conclusion -------------- Considering its superior flexibility as explained above, a function using a straight array variable as its argument (without being preceded by the keyword ParamArray) should prove universally more convenient as compared to one with ParamArray keyword. While it is amenable to multi-level nesting, accepting array variable (or function returning an array) as its argument, it can also mimic the ParamArray style input (i.e. literal supply of individual elements of array argument) as demonstrated in test procedure Sub P_TestArrayFunctions_C() below. A.D.Tejpal -------------- =================================== Function Fn_PAr(ParamArray Pa() _ As Variant) As Variant ' Doubles each element of ParamArray ' argument Pa() and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Pa)) For Cnt = LBound(Pa) To UBound(Pa) La(Cnt) = 2 * Pa(Cnt) Next Fn_PAr = La End Function '------------------------------------ Function Fn_Ar(ByVal Ar As Variant) As Variant ' Doubles each element of array argument Ar ' and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Ar)) For Cnt = LBound(Ar) To UBound(Ar) La(Cnt) = 2 * Ar(Cnt) Next Fn_Ar = La End Function '------------------------------------ Sub P_TestArrayFunctions_A() ' Three level nesting of array functions. ' Function having ParamArray as its ' argument is used as an array argument for ' another function, which in turn, is used as ' an array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_PAr(2, 4, 8, 16, 32, 64))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_B() ' Three level nesting of array functions. ' Function having an array variable as its ' argument is used as an array argument ' for another function, which in turn, is used ' as an array argument for the final function. Dim Rtv As Variant Dim Cnt As Long, Ar As Variant Ar = Array(2, 4, 8, 16, 32, 64) Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Ar))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_C() ' Three level nesting of array functions. ' Function having a literal Array() function as ' its argument is used as an array argument for ' another function, which in turn, is used as an ' array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Array(2, 4, 8, 16, 32, 64)))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub =================================== ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:35 Subject: [AccessD] Passing Param arrays I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Dec 28 11:09:08 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 12:09:08 -0500 Subject: [AccessD] A2k Build Form from Table In-Reply-To: References: Message-ID: <41D19334.80002@rogers.com> You have a way with backhand compliments don't you? William Hindman wrote: > ..sorry 'bout that :( > > ..anyway ...JC did some work with the switchboard a couple years back > that basically allowed you to assign an almost unlimited number of > buttons ...and since that is table record driven I'd think it would be > adaptable to your needs with a bit of spit 'n polish on the code > ...try his site where I'm sure he still has a sample posted ...if not, > let me know since I never throw any sample code out ...even JC's > ...which just goes to show how desperate one person can be :)) > > William Hindman > >> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From martyconnelly at shaw.ca Tue Dec 28 11:22:00 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Dec 2004 09:22:00 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC References: <0I9F0040P9BQGQ@l-daemon> Message-ID: <41D19638.5030901@shaw.ca> Must be the Eggnog causing blurry vision.. Prepping for Hogmanay. Or just having answered 3 similar questions on MySQL. Jim Lawrence wrote: >Thanks Marty: > >...But the question is to do with MS SQL not MySQL. The ODBC driver is >actually Microsoft's driver. I am having an issue with the way it retrieves >the table names from the MS SQL DB. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Monday, December 27, 2004 10:50 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Linking Tables from MS SQL using ODBC > > >There is a "MYSQL/ODBC list" >Join the mailing list from this page about 2/3 down. >http://lists.mysql.com >Some of ODBC drivers for MaxDB don't always work and you might have >to go back a release from the latest one. At least it was that way a >year ago. I had Access 97 with WinXP connected at that time to MaxDB not >MySQL > >Maybe look through the archives when you are subscribing to the list > > > >Jim Lawrence wrote: > > > >>Hi All >> >>Never having used an ODBC connection, to MS SQL, since pre 1997, I am >> >> >having > > >>some issues when linking the tables, to Access. The tables link OK but each >>table is prefixed with the owner code, in this case DBO. Example table >>'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? >> >>Any help would be greatly appreciated as the prospect of manually renaming >>250 odd tables does not excite. >> >>MTIA >>Jim >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From carbonnb at sympatico.ca Tue Dec 28 11:44:05 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 28 Dec 2004 12:44:05 -0500 Subject: [AccessD] Linking Tables from MS SQL using ODBC In-Reply-To: <41D19638.5030901@shaw.ca> Message-ID: <41D15515.14821.5EF00C@localhost> On 28 Dec 2004 at 9:22, MartyConnelly wrote: > Must be the Eggnog causing blurry vision.. Prepping for Hogmanay. Or > just having answered 3 similar questions on MySQL. It's gotta be the air north of the 49th Marty. I read it as MySQL as well. -- Bryan Carbonnell - carbonnb at sympatico.ca From Lambert.Heenan at AIG.com Tue Dec 28 11:59:28 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 28 Dec 2004 12:59:28 -0500 Subject: [AccessD] Union Queries Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2A0D@xlivmbx21.aig.com> Or, alternatively... Create the two (or more) queries that you want to wind up being part of a union query, all done using the grid and save them all as regular queries, for the sake of this discussion call them 'Query1', 'Query2' etc. Then you can create another new query, open the empty SQL view and type in Select * from Query1 Union Select * from Query2; (and so on). The great advantage of this is that if you need to do any maintenance on any or all parts of the union query you can do so in the query design grid with each of the separate queries that combine to make the union query. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Gregg > Sent: Thursday, December 23, 2004 4:14 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Union Queries > > Good Idea.... sorry about the wrong subject line. > ----- Original Message ----- > From: Hale, Jim > To: 'Access Developers discussion and problem > solving' > Sent: Thursday, December 23, 2004 2:16 PM > Subject: RE: [AccessD] Capture That Record Number > > > no wizard but you can make two separate queries using the grid and save > them, switch to sql view in one of them, type the word "Union" at the > end > and cut and paste the sql from the second query. Pretty simple. Of > course, > the field data types must be the same. > Jim Hale > > -----Original Message----- > From: Gregg [mailto:greggs at msn.com] > Sent: Thursday, December 23, 2004 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Capture That Record Number > > > Is there a wizard or tool out there to make Union Queries? Seems like > there > ought to be some sort of grid layout format that create the SQL. > Thanks... > and OT... Merry Christmas! > > Gregg Steinbrenner > -- > AccessD mailing list > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd rs.com/mailman/listinfo/accessd> > Website: > http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email.-- > AccessD mailing list > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd rs.com/mailman/listinfo/accessd> > Website: > http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Tue Dec 28 12:03:09 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 28 Dec 2004 13:03:09 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: Message-ID: Robert, <> I don't understand why not. The solutions you suggested are no different in terms of the end result. I have a hidden form I open at the startup of my apps and use for a bunch of purposes, one of which is firing off a timer to support background tasks. The only "tweak" is that I have a flag to turn it off to aid debugging. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 10:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Dec 28 12:18:52 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Dec 2004 10:18:52 -0800 Subject: [AccessD] Vba with SOAP experiences References: <000001c4ecf4$6aa77030$0500a8c0@masterserv> Message-ID: <41D1A38C.9020504@shaw.ca> Since MS is downgrading (or whatever metaphor is in vogue today, for no support) their soap toolkits, they are trying to force everything to dotNet web services. You could download Web Service References Tool 2.0 from MS and run with Access 2003. Not sure if it runs with lower versions. You could run with 2003 generate the classes then put them in say Access XP or 2000 If using MS, I might go with Simon Fell's Pocket Soap toolkit, he had his version out a year before Microsoft's tollkit appeared. It works for Java and Pocket Pc's http://www.pocketsoap.com If it is a simple web service say just credit card verification against an asmx or wsdl file, you might get away with just building your own soap mesage and envelope in xml and sending via xmlhttp then parsing the response. Needs a lot of xml and soap basic knowledege to handle errors. You build your Soap envelope and message by looking at the wsdl file. easier if they have Disco (Discovery) service. PS a lot of vendors describe their web service as SOAP but it isn't even close to standard. I looked at Amazon 18 months ago and they were way off. This will work with Access 97 if web service still up. Dim objStyle As MSXML2.DOMDocument Dim objXMLDOM As MSXML2.DOMDocument Const checked As Boolean = True Function BuildSoapEnvelopeSmall(strAddress As String, _ strCity As String, strState As String) As String 'Function builds the SOAP Envelope Dim SOAPEnvelope As String Dim xmlInit As String ' POST /zipcoderesolver/zipcoderesolver.asmx HTTP/1.1 'Host: webservices.eraserver.net 'Content-Type: text/xml; charset=utf-8 'Content -length: length 'SOAPAction: "http://webservices.eraserver.net/FullZipCode" ' 'strAddress = "Microsoft" 'strCity = "Redmond" 'strState = "WA" 'strAddress = "1151 Marina Village" 'strCity = "Alameda" 'strState = "CA" 'Build SOAPEnvelope SOAPEnvelope = " " & _ " " & _ " " & _ " " & "9999" & "" & _ "
" & strAddress & "
" & _ " " & strCity & "" & _ " " & strState & "" & _ "
" & _ "
" & _ "
" xmlInit = "" SOAPEnvelope = xmlInit & SOAPEnvelope BuildSoapEnvelopeSmall = SOAPEnvelope Debug.Print BuildSoapEnvelopeSmall End Function Function SubmitFormSmall(strAddress As String, _ strCity As String, strState As String) As String 'returns Address Zip Code 'Submit Soap Envelope to ASMX net Server Page 'sample call '?SubmitFormSmall ("1151 Marina Village","Alameda", "CA") '? SubmitFormSmall("Microsoft", "Redmond", "WA") Dim objXMLHTTP As New MSXML2.XMLHTTP Dim HTMLResponse As String Dim SoapResponse As String Dim SoapRequest As String Dim objXMLDOM As MSXML2.DOMDocument Set objStyle = New DOMDocument Set objXMLDOM = New DOMDocument objXMLDOM.async = False 'Send SOAP Request Set objXMLHTTP = New MSXML2.XMLHTTP ' objXMLHTTP.setRequestHeader "Content-Type", "text/xml" objXMLHTTP.Open "POST", "http://webservices.eraserver.net/zipcoderesolver/zi" & _ "pcoderesolver.asmx", False objXMLHTTP.setRequestHeader "SOAPAction", "http://webservices.eraserver.net/" & _ "FullZipCode " objXMLHTTP.setRequestHeader "Content-Type", "text/xml" 'On Error Resume Next objXMLHTTP.send BuildSoapEnvelopeSmall(strAddress, _ strCity, strState) MsgBox "XML Status=" & objXMLHTTP.status If (objXMLHTTP.status <> 200) Then 'SoapResponse.innerHTML = objXMLHTTP.responseText Debug.Print "Error=" & objXMLHTTP.responseText Else 'Show SOAP Response MsgBox "returned=" & objXMLHTTP.responseXML.xml Debug.Print "returned=" & objXMLHTTP.responseXML.xml objXMLDOM.loadXML (objXMLHTTP.responseXML.xml) 'Translate SOAP Response from xml and show response Dim strLoginResult As String strLoginResult = objXMLDOM.selectSingleNode("soap:Envelope").xml Debug.Print "xml=" & strLoginResult strLoginResult = objXMLDOM.selectSingleNode _ ("soap:Envelope/soap:Body/FullZipCodeResponse/FullZipCodeResult").xml Debug.Print "text=" & strLoginResult strLoginResult = objXMLDOM.selectSingleNode _ ("soap:Envelope/soap:Body/FullZipCodeResponse/FullZipCodeResult").nodeTypedValue Debug.Print "Zip code value=" & strLoginResult 'If the zip + 4 code all zeroes address not found End If SubmitFormSmall = strLoginResult End Function MastercafeCTV wrote: >Hi group, we are searching information about SOAP to include on an >application for POS (Point of sale). We are trying to put a service to >credit card for pay the bill. > >Thank you very much > >Juan > > >=========================================== >MASTERCAFE S.L. NIF - B 82.617.614 >Juan Men?ndez Crespo >Plaza Puerta de Europa 2, 1-D (33011 Oviedo) >www.mastercafe.com >info at mastercafe.com >=========================================== >El contenido del presente correo es privado. Todos los archivos adjuntos han >sido revisados y escaneados con McAfee VirusScan 8. Solo ser?n v?lidos >aquellos archivos que est?n identificados en el cuerpo del correo y que se >describa su composici?n y contenido del mismo. > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Tue Dec 28 12:58:33 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 13:58:33 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) In-Reply-To: <000401c4ece9$c78df180$de1811d8@danwaters> Message-ID: <003701c4ed0f$3d9f02e0$0300a8c0@ColbyM6805> I cannot count the number of times I've had to work on databases with no naming convention. So I go to find the people table (no tbl of course) and there are forms named people, queries named people, combos named people, reports named people. My rates go up 50% if I have to deal with that. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) John, You've really thought this through! I will no longer give FK's the same name as the primary key. I do one thing for a specific reason. When naming sub forms or reports they go like this: frmPeople or frmPeopleMain, and frmPeopleSub. I do this so that all the People related forms are adjacent in the database window. Something else I do that is to almost never use an abbreviation in a field, variable, control, or label name. This allows me or someone else to pretty much be able to read the code to see what's happening without my having to put in explanatory comments. It seems that I take more time writing and modifying comments than I do writing code, so minimizing comments is good. Also, when I can read code, I cannot misinterpret what is happening. My names could look like: tblPeopleMain tblPeopleSub lblDesignEngineer txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field name = DesignEngineerApproval dteDesignEngineer - field name = DesignEngineerDate stgDesignEngineer varDesignEngineer . . . . and so on. You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, December 27, 2004 8:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Tue Dec 28 13:02:03 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 28 Dec 2004 20:02:03 +0100 Subject: [AccessD] Vba with SOAP experiences In-Reply-To: <41D1A38C.9020504@shaw.ca> Message-ID: <001601c4ed0f$b859c600$0500a8c0@masterserv> Great, thank you very much, we try to study this and check this information. Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: martes, 28 de diciembre de 2004 19:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Vba with SOAP experiences Since MS is downgrading (or whatever metaphor is in vogue today, for no support) their soap toolkits, they are trying to force everything to dotNet web services. You could download Web Service References Tool 2.0 from MS and run with Access 2003. Not sure if it runs with lower versions. You could run with 2003 generate the classes then put them in say Access XP or 2000 If using MS, I might go with Simon Fell's Pocket Soap toolkit, he had his version out a year before Microsoft's tollkit appeared. It works for Java and Pocket Pc's http://www.pocketsoap.com If it is a simple web service say just credit card verification against an asmx or wsdl file, you might get away with just building your own soap mesage and envelope in xml and sending via xmlhttp then parsing the response. Needs a lot of xml and soap basic knowledege to handle errors. You build your Soap envelope and message by looking at the wsdl file. easier if they have Disco (Discovery) service. PS a lot of vendors describe their web service as SOAP but it isn't even close to standard. I looked at Amazon 18 months ago and they were way off. This will work with Access 97 if web service still up. Dim objStyle As MSXML2.DOMDocument Dim objXMLDOM As MSXML2.DOMDocument Const checked As Boolean = True Function BuildSoapEnvelopeSmall(strAddress As String, _ strCity As String, strState As String) As String 'Function builds the SOAP Envelope Dim SOAPEnvelope As String Dim xmlInit As String ' POST /zipcoderesolver/zipcoderesolver.asmx HTTP/1.1 'Host: webservices.eraserver.net 'Content-Type: text/xml; charset=utf-8 'Content -length: length 'SOAPAction: "http://webservices.eraserver.net/FullZipCode" ' 'strAddress = "Microsoft" 'strCity = "Redmond" 'strState = "WA" 'strAddress = "1151 Marina Village" 'strCity = "Alameda" 'strState = "CA" 'Build SOAPEnvelope SOAPEnvelope = " " & _ " " & _ " " & _ " " & "9999" & "" & _ "
" & strAddress & "
" & _ " " & strCity & "" & _ " " & strState & "" & _ "
" & _ "
" & _ "
" xmlInit = "" SOAPEnvelope = xmlInit & SOAPEnvelope BuildSoapEnvelopeSmall = SOAPEnvelope Debug.Print BuildSoapEnvelopeSmall End Function Function SubmitFormSmall(strAddress As String, _ strCity As String, strState As String) As String 'returns Address Zip Code 'Submit Soap Envelope to ASMX net Server Page 'sample call '?SubmitFormSmall ("1151 Marina Village","Alameda", "CA") '? SubmitFormSmall("Microsoft", "Redmond", "WA") Dim objXMLHTTP As New MSXML2.XMLHTTP Dim HTMLResponse As String Dim SoapResponse As String Dim SoapRequest As String Dim objXMLDOM As MSXML2.DOMDocument Set objStyle = New DOMDocument Set objXMLDOM = New DOMDocument objXMLDOM.async = False 'Send SOAP Request Set objXMLHTTP = New MSXML2.XMLHTTP ' objXMLHTTP.setRequestHeader "Content-Type", "text/xml" objXMLHTTP.Open "POST", "http://webservices.eraserver.net/zipcoderesolver/zi" & _ "pcoderesolver.asmx", False objXMLHTTP.setRequestHeader "SOAPAction", "http://webservices.eraserver.net/" & _ "FullZipCode " objXMLHTTP.setRequestHeader "Content-Type", "text/xml" 'On Error Resume Next objXMLHTTP.send BuildSoapEnvelopeSmall(strAddress, _ strCity, strState) MsgBox "XML Status=" & objXMLHTTP.status If (objXMLHTTP.status <> 200) Then 'SoapResponse.innerHTML = objXMLHTTP.responseText Debug.Print "Error=" & objXMLHTTP.responseText Else 'Show SOAP Response MsgBox "returned=" & objXMLHTTP.responseXML.xml Debug.Print "returned=" & objXMLHTTP.responseXML.xml objXMLDOM.loadXML (objXMLHTTP.responseXML.xml) 'Translate SOAP Response from xml and show response Dim strLoginResult As String strLoginResult = objXMLDOM.selectSingleNode("soap:Envelope").xml Debug.Print "xml=" & strLoginResult strLoginResult = objXMLDOM.selectSingleNode _ ("soap:Envelope/soap:Body/FullZipCodeResponse/FullZipCodeResult").xml Debug.Print "text=" & strLoginResult strLoginResult = objXMLDOM.selectSingleNode _ ("soap:Envelope/soap:Body/FullZipCodeResponse/FullZipCodeResult").nodeTypedV alue Debug.Print "Zip code value=" & strLoginResult 'If the zip + 4 code all zeroes address not found End If SubmitFormSmall = strLoginResult End Function MastercafeCTV wrote: >Hi group, we are searching information about SOAP to include on an >application for POS (Point of sale). We are trying to put a service to >credit card for pay the bill. > >Thank you very much > >Juan > > >=========================================== >MASTERCAFE S.L. NIF - B 82.617.614 >Juan Men?ndez Crespo >Plaza Puerta de Europa 2, 1-D (33011 Oviedo) www.mastercafe.com >info at mastercafe.com >=========================================== >El contenido del presente correo es privado. Todos los archivos adjuntos han >sido revisados y escaneados con McAfee VirusScan 8. Solo ser?n v?lidos >aquellos archivos que est?n identificados en el cuerpo del correo y que se >describa su composici?n y contenido del mismo. > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Dec 28 13:21:24 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 13:21:24 -0600 Subject: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) In-Reply-To: <8654425.1104260480240.JavaMail.root@sniper20.securence.com> Message-ID: <001301c4ed12$6c351970$de1811d8@danwaters> Hmmmm . . . How do you find databases like that where you can raise your rates? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 12:59 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) I cannot count the number of times I've had to work on databases with no naming convention. So I go to find the people table (no tbl of course) and there are forms named people, queries named people, combos named people, reports named people. My rates go up 50% if I have to deal with that. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) John, You've really thought this through! I will no longer give FK's the same name as the primary key. I do one thing for a specific reason. When naming sub forms or reports they go like this: frmPeople or frmPeopleMain, and frmPeopleSub. I do this so that all the People related forms are adjacent in the database window. Something else I do that is to almost never use an abbreviation in a field, variable, control, or label name. This allows me or someone else to pretty much be able to read the code to see what's happening without my having to put in explanatory comments. It seems that I take more time writing and modifying comments than I do writing code, so minimizing comments is good. Also, when I can read code, I cannot misinterpret what is happening. My names could look like: tblPeopleMain tblPeopleSub lblDesignEngineer txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field name = DesignEngineerApproval dteDesignEngineer - field name = DesignEngineerDate stgDesignEngineer varDesignEngineer . . . . and so on. You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, December 27, 2004 8:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 28 13:35:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 14:35:05 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) In-Reply-To: <001301c4ed12$6c351970$de1811d8@danwaters> Message-ID: <003e01c4ed14$55423e30$0300a8c0@ColbyM6805> LOL, I don't find databases where I can raise my rates, I find databases where it is such a mess I don't want to work on it. If they are willing to pay more... Usually I find these jobs generally demand a rewrite anyway and I say so. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 2:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Hmmmm . . . How do you find databases like that where you can raise your rates? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 12:59 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) I cannot count the number of times I've had to work on databases with no naming convention. So I go to find the people table (no tbl of course) and there are forms named people, queries named people, combos named people, reports named people. My rates go up 50% if I have to deal with that. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) John, You've really thought this through! I will no longer give FK's the same name as the primary key. I do one thing for a specific reason. When naming sub forms or reports they go like this: frmPeople or frmPeopleMain, and frmPeopleSub. I do this so that all the People related forms are adjacent in the database window. Something else I do that is to almost never use an abbreviation in a field, variable, control, or label name. This allows me or someone else to pretty much be able to read the code to see what's happening without my having to put in explanatory comments. It seems that I take more time writing and modifying comments than I do writing code, so minimizing comments is good. Also, when I can read code, I cannot misinterpret what is happening. My names could look like: tblPeopleMain tblPeopleSub lblDesignEngineer txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field name = DesignEngineerApproval dteDesignEngineer - field name = DesignEngineerDate stgDesignEngineer varDesignEngineer . . . . and so on. You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, December 27, 2004 8:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Dec 28 13:46:27 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 14:46:27 -0500 Subject: [AccessD] Question about SubForms In-Reply-To: <41D19638.5030901@shaw.ca> References: <0I9F0040P9BQGQ@l-daemon> <41D19638.5030901@shaw.ca> Message-ID: <41D1B813.5060300@rogers.com> I have a tabbed form on which each tab contains a subform. One of these subforms can also be opened independently. It contains a form header which contains a "finder" (i.e. combo-box that does the find-thing). When it's opened as an independent form, I want the header to show, but when opened as a sub-form I want it to be hidden. Unsure of the syntax here. My OnOpen code simply says (so far) If IsSubForm(Me) Then ' various failed attempts go here End If The function IsOpen() is pretty much standard. Check the form's parent.name attribute. But I am unsure how to hide the header given a True response from IsSubForm(). TIA, Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From artful at rogers.com Tue Dec 28 13:57:55 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 14:57:55 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) In-Reply-To: <003701c4ed0f$3d9f02e0$0300a8c0@ColbyM6805> References: <003701c4ed0f$3d9f02e0$0300a8c0@ColbyM6805> Message-ID: <41D1BAC3.1020608@rogers.com> Well, JC, I beg to differ. In fact I wrote a SQL Tip for builder.com on this subject, proposing a new convention, and that tip received more responses that any other tip ever published by builder.com. I have grown extremely tired of classic Hungarian notation, because I feel that it increases noise at the expense of signal. I call my new convention Object-Action. It subscribes to most of your rules but insists that the "prefix" become a "suffix" -- the reason for this change may have to do with the fact that by and large I live in the MS-SQL world rather than the MDB world, but still, I like things to sort in an intelligent way -- without having to read past the prefixes before obtaining useful information. This is especially true in AXP, where the Queries tab rolls in views and sprocs within a single tab. I DO NOT want to have to ignore the first N letters in order to read the information. If every single value begins with "tbl" or "vue" or "sproc" then why bother? Make that a suffix instead, so the stuff related to "Customer" sorts alphabetically in the place where I would expect to find it. Having located the object of interest, I can then examine the suffix and determine what sort of object it is. Again, this may pertain more to MS-SQL than Access. But let's suppose that there are 3 objects related to the Customer table: Customer_Select_sproc Customer_Select_udf Customer_Select_vue Customer_tbl In a normal sort they are presented in exactly this way, and assuming that the developer was throrough enough to include description attributes, then I know what I'm dealing with right away. If I need to do something to the customers table, I know exactly where to look, and everything sorts accordingly. Not to say that your convention doesn't work. Merely to say that mine works better. LOL! Arthur John W. Colby wrote: >I cannot count the number of times I've had to work on databases with no >naming convention. So I go to find the people table (no tbl of course) and >there are forms named people, queries named people, combos named people, >reports named people. My rates go up 50% if I have to deal with that. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, December 28, 2004 9:30 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visible >indesign view) > > >John, > >You've really thought this through! I will no longer give FK's the same >name as the primary key. > >I do one thing for a specific reason. When naming sub forms or reports they >go like this: > >frmPeople or frmPeopleMain, and frmPeopleSub. > >I do this so that all the People related forms are adjacent in the database >window. > >Something else I do that is to almost never use an abbreviation in a field, >variable, control, or label name. This allows me or someone else to pretty >much be able to read the code to see what's happening without my having to >put in explanatory comments. It seems that I take more time writing and >modifying comments than I do writing code, so minimizing comments is good. >Also, when I can read code, I cannot misinterpret what is happening. > >My names could look like: > >tblPeopleMain >tblPeopleSub >lblDesignEngineer >txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field >name = DesignEngineerApproval dteDesignEngineer - field name = >DesignEngineerDate stgDesignEngineer varDesignEngineer > >. . . . and so on. > >You said you use an autoexec macro (I've never used macros in Access). I >use an invisible startup form, which calls a list of procedures and >functions in a standard module. Do you know of an advantage one way or the >other? > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Monday, December 27, 2004 8:07 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > >Jim, > >I actually have a very rigorous naming convention that I do follow, >religiously. My convention is: > >I NEVER use special characters in any object name - >`~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object >name (as well as a space). > >I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - >and of course I don't use macros except for autoexec and autokeys, neither >of which can have a mac prefix. > >I do NOT prefix fields with fld > >I do NOT put the data type in the field name. I have just had too many >instances where the data type changes, and it is a PITA doing the search and >replace to make the change. > >In field names, I use the first two characters of the table name, unless the >name is multiple words, in which case I use the first letter of each word. > >tblPeople = PE >tblAutos = AU >tblPeopleAutos = PA >Etc. > >I then use an underscore to delineate the end of the table name prefix > >PE_ >PA_ > >I then use ID for the PK > >PE_ID >PA_ID > >I use words, sometimes abbreviations for the words > >PE_LastName or >PE_LName > >Foreign keys are the PK name in the "parent" table, with the underscore >removed, and the 'ID' coming first > >tblPeople >PE_ID <<< >PE_Lname > >tblAutos >AU_ID <<<< >AU_Model >AU_Color > >tblPeopleAutos >PA_ID >PA_IDPE <<<< >PA_IDAU <<<< > >I place all FKs at the top of the table so that they can be easily found in >any table. I "swap" the ID and the table prefix so that it is obvious that >a field is a FK. If there is an ID after the underscore, then the field is >a FK (or the PK of the table). _IDPE, _IDAU etc. > >This convention makes it dead simple to work with tables. There is NEVER a >field name in two different tables with the same field name, since the table >name prefix is always unique. I never get the "can't figure out what table >this field comes from" message from the query builder. > >It is dead simple to look at a FK and "see" what the PK is called in the >"parent" table: > >PA_IDPE << > >Take the IDPE, swap the ID and PE, and place an underscore between them > >PE_ID > >After using this convention for a little while, it "just works" and makes >the process of finding relationships between tables a breeze. > >I have run into a few instances where there are hundreds of tables where I >have to maintain a table of prefixes to ensure that there aren't collisions >(two tables with the same prefix). In those instances it I usually have to >go with more than two characters to denote a table name word. > >I have used this convention since about 1995 or thereabouts. I have shown >many developers how to use it and most of them love it. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Monday, December 27, 2004 11:41 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >Do you use foreign key field names that are different from the primary key >name in the parent tables? What sort of naming convention do you use? I >always find it easier to understand a database when I can track fields such >as fldFirstName throughout a table structure. However, I must confess I >don't religiously follow this naming convention myself. Jim Hale > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Saturday, December 25, 2004 12:40 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >That would explain it. I do not use the table qualifier unless the field >name is the same in different tables which is generally not the case in my >systems. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal >Sent: Saturday, December 25, 2004 12:23 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Query SQL correct but not visible in design view > > >John, > > If an SQL statement is put directly in SQL view of QBE, without having >first dragged any field into the QBE grid, relevant fields get displayed in >the grid only if their names in SELECT clause are qualified by the table >name. > > For example - > (a) SELECT * FROM tbl1 - will not show any field in QBE grid. > (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE >grid. > > Note - This is as per tests conducted on Access XP running on Win XP. > >A.D.Tejpal >-------------- > > ----- Original Message ----- > From: John W. Colby > To: 'Access Developers discussion and problem solving' > Sent: Friday, December 24, 2004 09:04 > Subject: [AccessD] Query SQL correct but not visible in design view > > > I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL >runs but only the tables and their joins are visible in the QBE grid. There >are no fields visible etc. Does anyone understand what causes Access to do > this? > I have had the same thing occur even with something as simple as a SELECT >* from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in >the grid. The query executes correctly. > > Anyone? > > John W. Colby > www.ColbyConsulting.com > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From donald.a.Mcgillivray at mail.sprint.com Tue Dec 28 14:00:20 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Tue, 28 Dec 2004 14:00:20 -0600 Subject: [AccessD] Question about SubForms Message-ID: <988E2AC88CCB54459286C4077DB662F503189D3A@PDAWB03C.ad.sprint.com> Looks like you want to control this from the subform side, but how about doing it on open of the main form: Me.SubForm.Form.FormHeader.Visible = False Tested this in AccessXP and seems to work. HTH, Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, December 28, 2004 11:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Question about SubForms I have a tabbed form on which each tab contains a subform. One of these subforms can also be opened independently. It contains a form header which contains a "finder" (i.e. combo-box that does the find-thing). When it's opened as an independent form, I want the header to show, but when opened as a sub-form I want it to be hidden. Unsure of the syntax here. My OnOpen code simply says (so far) If IsSubForm(Me) Then ' various failed attempts go here End If The function IsOpen() is pretty much standard. Check the form's parent.name attribute. But I am unsure how to hide the header given a True response from IsSubForm(). TIA, Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Dec 28 14:13:47 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Dec 2004 21:13:47 +0100 Subject: [AccessD] Question about SubForms Message-ID: Hi Arthur This works here: Private Sub Form_Open(Cancel As Integer) If IsSubform() Then Me.Section(acHeader).Visible = False End If End Sub However, I don't test for Me.Parent: Private Function IsSubform() As Boolean Static booSubform As Boolean Static lngFormsCount As Long If lngFormsCount = 0 Then lngFormsCount = Forms.Count booSubform = StrComp(Forms(lngFormsCount - 1).Name, Me.Name, vbTextCompare) End If IsSubform = booSubform End Function /gustav >>> artful at rogers.com 28-12-2004 20:46:27 >>> I have a tabbed form on which each tab contains a subform. One of these subforms can also be opened independently. It contains a form header which contains a "finder" (i.e. combo-box that does the find-thing). When it's opened as an independent form, I want the header to show, but when opened as a sub-form I want it to be hidden. Unsure of the syntax here. My OnOpen code simply says (so far) If IsSubForm(Me) Then ' various failed attempts go here End If The function IsOpen() is pretty much standard. Check the form's parent.name attribute. But I am unsure how to hide the header given a True response from IsSubForm(). TIA, Arthur From jwcolby at colbyconsulting.com Tue Dec 28 14:14:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 15:14:56 -0500 Subject: [AccessD] Question about SubForms In-Reply-To: <41D1B813.5060300@rogers.com> Message-ID: <004001c4ed19$e9972aa0$0300a8c0@ColbyM6805> You need to check for me.parent. If that property contains something then it is a subform. If checking the property generates an error then there is no parent. Typically you can do something like: Function IsSubForm(frm as form) as boolean Dim str as string on error resume next str = me.parent.name if err = 0 then IsSubForm = true else IsSubForm = false endif End function This function is "compiled in Outlook" but I use a function pretty much like this so it should run pretty much as is. A subform's parent is a subform control by the way. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, December 28, 2004 2:46 PM To: Access Developers discussion and problem solving Subject: [AccessD] Question about SubForms I have a tabbed form on which each tab contains a subform. One of these subforms can also be opened independently. It contains a form header which contains a "finder" (i.e. combo-box that does the find-thing). When it's opened as an independent form, I want the header to show, but when opened as a sub-form I want it to be hidden. Unsure of the syntax here. My OnOpen code simply says (so far) If IsSubForm(Me) Then ' various failed attempts go here End If The function IsOpen() is pretty much standard. Check the form's parent.name attribute. But I am unsure how to hide the header given a True response from IsSubForm(). TIA, Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 28 14:25:35 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 15:25:35 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) In-Reply-To: <41D1BAC3.1020608@rogers.com> Message-ID: <004301c4ed1b$6619e710$0300a8c0@ColbyM6805> Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, December 28, 2004 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) Well, JC, I beg to differ. In fact I wrote a SQL Tip for builder.com on this subject, proposing a new convention, and that tip received more responses that any other tip ever published by builder.com. I have grown extremely tired of classic Hungarian notation, because I feel that it increases noise at the expense of signal. I call my new convention Object-Action. It subscribes to most of your rules but insists that the "prefix" become a "suffix" -- the reason for this change may have to do with the fact that by and large I live in the MS-SQL world rather than the MDB world, but still, I like things to sort in an intelligent way -- without having to read past the prefixes before obtaining useful information. This is especially true in AXP, where the Queries tab rolls in views and sprocs within a single tab. I DO NOT want to have to ignore the first N letters in order to read the information. If every single value begins with "tbl" or "vue" or "sproc" then why bother? Make that a suffix instead, so the stuff related to "Customer" sorts alphabetically in the place where I would expect to find it. Having located the object of interest, I can then examine the suffix and determine what sort of object it is. Again, this may pertain more to MS-SQL than Access. But let's suppose that there are 3 objects related to the Customer table: Customer_Select_sproc Customer_Select_udf Customer_Select_vue Customer_tbl In a normal sort they are presented in exactly this way, and assuming that the developer was throrough enough to include description attributes, then I know what I'm dealing with right away. If I need to do something to the customers table, I know exactly where to look, and everything sorts accordingly. Not to say that your convention doesn't work. Merely to say that mine works better. LOL! Arthur John W. Colby wrote: >I cannot count the number of times I've had to work on databases with >no naming convention. So I go to find the people table (no tbl of >course) and there are forms named people, queries named people, combos >named people, reports named people. My rates go up 50% if I have to deal with that. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, December 28, 2004 9:30 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Naming Convention (Query SQL correct but not >visible indesign view) > > >John, > >You've really thought this through! I will no longer give FK's the >same name as the primary key. > >I do one thing for a specific reason. When naming sub forms or reports >they go like this: > >frmPeople or frmPeopleMain, and frmPeopleSub. > >I do this so that all the People related forms are adjacent in the >database window. > >Something else I do that is to almost never use an abbreviation in a >field, variable, control, or label name. This allows me or someone >else to pretty much be able to read the code to see what's happening >without my having to put in explanatory comments. It seems that I take >more time writing and modifying comments than I do writing code, so >minimizing comments is good. Also, when I can read code, I cannot >misinterpret what is happening. > >My names could look like: > >tblPeopleMain >tblPeopleSub >lblDesignEngineer >txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - >field name = DesignEngineerApproval dteDesignEngineer - field name = >DesignEngineerDate stgDesignEngineer varDesignEngineer > >. . . . and so on. > >You said you use an autoexec macro (I've never used macros in Access). >I use an invisible startup form, which calls a list of procedures and >functions in a standard module. Do you know of an advantage one way or >the other? > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. >Colby >Sent: Monday, December 27, 2004 8:07 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > >Jim, > >I actually have a very rigorous naming convention that I do follow, >religiously. My convention is: > >I NEVER use special characters in any object name - >`~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an >object name (as well as a space). > >I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), >tbl/tlkp/tmm, - and of course I don't use macros except for autoexec >and autokeys, neither of which can have a mac prefix. > >I do NOT prefix fields with fld > >I do NOT put the data type in the field name. I have just had too many >instances where the data type changes, and it is a PITA doing the >search and replace to make the change. > >In field names, I use the first two characters of the table name, >unless the name is multiple words, in which case I use the first letter >of each word. > >tblPeople = PE >tblAutos = AU >tblPeopleAutos = PA >Etc. > >I then use an underscore to delineate the end of the table name prefix > >PE_ >PA_ > >I then use ID for the PK > >PE_ID >PA_ID > >I use words, sometimes abbreviations for the words > >PE_LastName or >PE_LName > >Foreign keys are the PK name in the "parent" table, with the underscore >removed, and the 'ID' coming first > >tblPeople >PE_ID <<< >PE_Lname > >tblAutos >AU_ID <<<< >AU_Model >AU_Color > >tblPeopleAutos >PA_ID >PA_IDPE <<<< >PA_IDAU <<<< > >I place all FKs at the top of the table so that they can be easily >found in any table. I "swap" the ID and the table prefix so that it is >obvious that a field is a FK. If there is an ID after the underscore, >then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. > >This convention makes it dead simple to work with tables. There is >NEVER a field name in two different tables with the same field name, >since the table name prefix is always unique. I never get the "can't >figure out what table this field comes from" message from the query builder. > >It is dead simple to look at a FK and "see" what the PK is called in >the "parent" table: > >PA_IDPE << > >Take the IDPE, swap the ID and PE, and place an underscore between them > >PE_ID > >After using this convention for a little while, it "just works" and >makes the process of finding relationships between tables a breeze. > >I have run into a few instances where there are hundreds of tables >where I have to maintain a table of prefixes to ensure that there >aren't collisions (two tables with the same prefix). In those >instances it I usually have to go with more than two characters to >denote a table name word. > >I have used this convention since about 1995 or thereabouts. I have >shown many developers how to use it and most of them love it. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Monday, December 27, 2004 11:41 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >Do you use foreign key field names that are different from the primary >key name in the parent tables? What sort of naming convention do you >use? I always find it easier to understand a database when I can track >fields such as fldFirstName throughout a table structure. However, I >must confess I don't religiously follow this naming convention myself. >Jim Hale > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Saturday, December 25, 2004 12:40 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >That would explain it. I do not use the table qualifier unless the >field name is the same in different tables which is generally not the >case in my systems. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal >Sent: Saturday, December 25, 2004 12:23 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Query SQL correct but not visible in design view > > >John, > > If an SQL statement is put directly in SQL view of QBE, without >having first dragged any field into the QBE grid, relevant fields get >displayed in the grid only if their names in SELECT clause are >qualified by the table name. > > For example - > (a) SELECT * FROM tbl1 - will not show any field in QBE grid. > (b) SELECT tbl1.* FROM tbl1 - will result in correct display in >QBE grid. > > Note - This is as per tests conducted on Access XP running on Win > XP. > >A.D.Tejpal >-------------- > > ----- Original Message ----- > From: John W. Colby > To: 'Access Developers discussion and problem solving' > Sent: Friday, December 24, 2004 09:04 > Subject: [AccessD] Query SQL correct but not visible in design view > > > I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. >The SQL runs but only the tables and their joins are visible in the QBE >grid. There are no fields visible etc. Does anyone understand what >causes Access to do > this? > I have had the same thing occur even with something as simple as a SELECT >* from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in >the grid. The query executes correctly. > > Anyone? > > John W. Colby > www.ColbyConsulting.com > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 28 15:01:01 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 13:01:01 -0800 Subject: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Message-ID: I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, December 28, 2004 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) Well, JC, I beg to differ. In fact I wrote a SQL Tip for builder.com on this subject, proposing a new convention, and that tip received more responses that any other tip ever published by builder.com. I have grown extremely tired of classic Hungarian notation, because I feel that it increases noise at the expense of signal. I call my new convention Object-Action. It subscribes to most of your rules but insists that the "prefix" become a "suffix" -- the reason for this change may have to do with the fact that by and large I live in the MS-SQL world rather than the MDB world, but still, I like things to sort in an intelligent way -- without having to read past the prefixes before obtaining useful information. This is especially true in AXP, where the Queries tab rolls in views and sprocs within a single tab. I DO NOT want to have to ignore the first N letters in order to read the information. If every single value begins with "tbl" or "vue" or "sproc" then why bother? Make that a suffix instead, so the stuff related to "Customer" sorts alphabetically in the place where I would expect to find it. Having located the object of interest, I can then examine the suffix and determine what sort of object it is. Again, this may pertain more to MS-SQL than Access. But let's suppose that there are 3 objects related to the Customer table: Customer_Select_sproc Customer_Select_udf Customer_Select_vue Customer_tbl In a normal sort they are presented in exactly this way, and assuming that the developer was throrough enough to include description attributes, then I know what I'm dealing with right away. If I need to do something to the customers table, I know exactly where to look, and everything sorts accordingly. Not to say that your convention doesn't work. Merely to say that mine works better. LOL! Arthur John W. Colby wrote: >I cannot count the number of times I've had to work on databases with >no naming convention. So I go to find the people table (no tbl of >course) and there are forms named people, queries named people, combos >named people, reports named people. My rates go up 50% if I have to deal with that. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, December 28, 2004 9:30 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Naming Convention (Query SQL correct but not >visible indesign view) > > >John, > >You've really thought this through! I will no longer give FK's the >same name as the primary key. > >I do one thing for a specific reason. When naming sub forms or reports >they go like this: > >frmPeople or frmPeopleMain, and frmPeopleSub. > >I do this so that all the People related forms are adjacent in the >database window. > >Something else I do that is to almost never use an abbreviation in a >field, variable, control, or label name. This allows me or someone >else to pretty much be able to read the code to see what's happening >without my having to put in explanatory comments. It seems that I take >more time writing and modifying comments than I do writing code, so >minimizing comments is good. Also, when I can read code, I cannot >misinterpret what is happening. > >My names could look like: > >tblPeopleMain >tblPeopleSub >lblDesignEngineer >txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - >field name = DesignEngineerApproval dteDesignEngineer - field name = >DesignEngineerDate stgDesignEngineer varDesignEngineer > >. . . . and so on. > >You said you use an autoexec macro (I've never used macros in Access). >I use an invisible startup form, which calls a list of procedures and >functions in a standard module. Do you know of an advantage one way or >the other? > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. >Colby >Sent: Monday, December 27, 2004 8:07 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > >Jim, > >I actually have a very rigorous naming convention that I do follow, >religiously. My convention is: > >I NEVER use special characters in any object name - >`~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an >object name (as well as a space). > >I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), >tbl/tlkp/tmm, - and of course I don't use macros except for autoexec >and autokeys, neither of which can have a mac prefix. > >I do NOT prefix fields with fld > >I do NOT put the data type in the field name. I have just had too many >instances where the data type changes, and it is a PITA doing the >search and replace to make the change. > >In field names, I use the first two characters of the table name, >unless the name is multiple words, in which case I use the first letter >of each word. > >tblPeople = PE >tblAutos = AU >tblPeopleAutos = PA >Etc. > >I then use an underscore to delineate the end of the table name prefix > >PE_ >PA_ > >I then use ID for the PK > >PE_ID >PA_ID > >I use words, sometimes abbreviations for the words > >PE_LastName or >PE_LName > >Foreign keys are the PK name in the "parent" table, with the underscore >removed, and the 'ID' coming first > >tblPeople >PE_ID <<< >PE_Lname > >tblAutos >AU_ID <<<< >AU_Model >AU_Color > >tblPeopleAutos >PA_ID >PA_IDPE <<<< >PA_IDAU <<<< > >I place all FKs at the top of the table so that they can be easily >found in any table. I "swap" the ID and the table prefix so that it is >obvious that a field is a FK. If there is an ID after the underscore, >then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. > >This convention makes it dead simple to work with tables. There is >NEVER a field name in two different tables with the same field name, >since the table name prefix is always unique. I never get the "can't >figure out what table this field comes from" message from the query builder. > >It is dead simple to look at a FK and "see" what the PK is called in >the "parent" table: > >PA_IDPE << > >Take the IDPE, swap the ID and PE, and place an underscore between them > >PE_ID > >After using this convention for a little while, it "just works" and >makes the process of finding relationships between tables a breeze. > >I have run into a few instances where there are hundreds of tables >where I have to maintain a table of prefixes to ensure that there >aren't collisions (two tables with the same prefix). In those >instances it I usually have to go with more than two characters to >denote a table name word. > >I have used this convention since about 1995 or thereabouts. I have >shown many developers how to use it and most of them love it. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Monday, December 27, 2004 11:41 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >Do you use foreign key field names that are different from the primary >key name in the parent tables? What sort of naming convention do you >use? I always find it easier to understand a database when I can track >fields such as fldFirstName throughout a table structure. However, I >must confess I don't religiously follow this naming convention myself. >Jim Hale > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Saturday, December 25, 2004 12:40 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >That would explain it. I do not use the table qualifier unless the >field name is the same in different tables which is generally not the >case in my systems. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal >Sent: Saturday, December 25, 2004 12:23 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Query SQL correct but not visible in design view > > >John, > > If an SQL statement is put directly in SQL view of QBE, without >having first dragged any field into the QBE grid, relevant fields get >displayed in the grid only if their names in SELECT clause are >qualified by the table name. > > For example - > (a) SELECT * FROM tbl1 - will not show any field in QBE grid. > (b) SELECT tbl1.* FROM tbl1 - will result in correct display in >QBE grid. > > Note - This is as per tests conducted on Access XP running on Win > XP. > >A.D.Tejpal >-------------- > > ----- Original Message ----- > From: John W. Colby > To: 'Access Developers discussion and problem solving' > Sent: Friday, December 24, 2004 09:04 > Subject: [AccessD] Query SQL correct but not visible in design view > > > I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. >The SQL runs but only the tables and their joins are visible in the QBE >grid. There are no fields visible etc. Does anyone understand what >causes Access to do > this? > I have had the same thing occur even with something as simple as a SELECT >* from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in >the grid. The query executes correctly. > > Anyone? > > John W. Colby > www.ColbyConsulting.com > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Subscriptions at servicexp.com Tue Dec 28 15:10:53 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Tue, 28 Dec 2004 16:10:53 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <000701c4ecf1$7f139600$de1811d8@danwaters> Message-ID: Thanks Dan, I guess I will need to see if the code below, running inside a referenced mde, will detect the FE screen. On Error Resume Next ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ExpiredTime = ExpiredTime + Me.TimerInterval End If Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 10:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Tue Dec 28 15:17:16 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 28 Dec 2004 16:17:16 -0500 Subject: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) In-Reply-To: Message-ID: <000001c4ed22$9dd576e0$0b08a845@hargrove.internal> Not using some sort of notation at all can get messy really fast. I find myself using a mix of prefixes and suffixes to keep things straight -- particularly in the query tab because when you are working in an Access ADP, there is no distinction between sprocs, views and functions other than by looking at the icon. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From jwcolby at colbyconsulting.com Tue Dec 28 15:17:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 16:17:25 -0500 Subject: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) In-Reply-To: Message-ID: <004601c4ed22$a44569e0$0300a8c0@ColbyM6805> Well.. You and I are the only experts that really matter in our world right? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, December 28, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com From Subscriptions at servicexp.com Tue Dec 28 15:27:06 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Tue, 28 Dec 2004 16:27:06 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: Message-ID: Jim. Apparently Access A2K and AXP (not sure about 2003)have problems running a form timer inside any fairly complex .mdb. I have several fairly complex .mdb's that continue to raise weird anomalies when running a timer. Shut the timer down and every anomaly ends with it.. I don't know why this happens, but I sure need a working solution.... Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, December 28, 2004 1:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Timer Alternitive Robert, <> I don't understand why not. The solutions you suggested are no different in terms of the end result. I have a hidden form I open at the startup of my apps and use for a bunch of purposes, one of which is firing off a timer to support background tasks. The only "tweak" is that I have a flag to turn it off to aid debugging. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 10:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Robert at servicexp.com Tue Dec 28 15:30:17 2004 From: Robert at servicexp.com (Robert Gracie) Date: Tue, 28 Dec 2004 16:30:17 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <200412281016359.SM03308@ScuzzPaq> Message-ID: Thank You John, I will check it out... Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, December 28, 2004 11:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive JC's Timer class sample on his website should be a good starting point. Www.colbyconsulting.com HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 28 15:43:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 16:43:41 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: Message-ID: <004701c4ed26$4d8b9530$0300a8c0@ColbyM6805> Robert, My timer class allows TIMING how long something runs, not firing a process. Something you said though sure makes me wonder. Would it be possible to have an MDB that is linked to the database needing a process fired. That external mdb has a form timer running which fires every N seconds or whatever. It calls a function in the MDB being controlled. I suspect that the real issue is the single threaded nature of VB not liking being interrupted inside certain types of operations such as a function called in a query for example. It really probably won't matter whether the function is interrupted by a form timer inside the same database or a timer in a form in an external database. It would certainly be good to check out though. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 4:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Thank You John, I will check it out... Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, December 28, 2004 11:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive JC's Timer class sample on his website should be a good starting point. Www.colbyconsulting.com HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Dec 28 15:51:47 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 15:51:47 -0600 Subject: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) In-Reply-To: <5557905.1104268751836.JavaMail.root@sniper17.securence.com> Message-ID: <001901c4ed27$6e6bc300$de1811d8@danwaters> If DA.Expert1.Opinion(varOpinion) = DA.Expert2.Opinion(varOpinion) Then If MsgBox ("Does Everyone Agree?",vbQuestion+vbYesNo) = vbTrue then Call AskQuestionAgain(varOpinion) Else DA.AllExperts(varOpinion).Agreement = False End If End If ... It's just hard to get there! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 3:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) Well.. You and I are the only experts that really matter in our world right? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, December 28, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Dec 28 16:36:04 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 17:36:04 -0500 Subject: [AccessD] Question about SubForms In-Reply-To: References: Message-ID: <41D1DFD4.9050906@rogers.com> Beauty! Thanks, my fave Dane! Arthur Gustav Brock wrote: >Hi Arthur > >This works here: > >Private Sub Form_Open(Cancel As Integer) > > If IsSubform() Then > Me.Section(acHeader).Visible = False > End If > >End Sub > >However, I don't test for Me.Parent: > >Private Function IsSubform() As Boolean > > Static booSubform As Boolean > Static lngFormsCount As Long > > If lngFormsCount = 0 Then > lngFormsCount = Forms.Count > booSubform = StrComp(Forms(lngFormsCount - 1).Name, Me.Name, >vbTextCompare) > End If > > IsSubform = booSubform > >End Function > >/gustav > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From artful at rogers.com Tue Dec 28 16:38:02 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 17:38:02 -0500 Subject: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) In-Reply-To: <000001c4ed22$9dd576e0$0b08a845@hargrove.internal> References: <000001c4ed22$9dd576e0$0b08a845@hargrove.internal> Message-ID: <41D1E04A.5060401@rogers.com> Which is precisely why I moved the prefixes to the suffixes. The icon says it all. Mike & Doris Manning wrote: >Not using some sort of notation at all can get messy really fast. I find >myself using a mix of prefixes and suffixes to keep things straight -- >particularly in the query tab because when you are working in an Access ADP, >there is no distinction between sprocs, views and functions other than by >looking at the icon. > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From cfoust at infostatsystems.com Tue Dec 28 16:55:11 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 14:55:11 -0800 Subject: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) Message-ID: LOL, of course! It's irritating to have to live with a convention that isn't fully rationalized and that the originator isn't yet using because he's not programming in .Net yet. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) Well.. You and I are the only experts that really matter in our world right? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, December 28, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 28 16:56:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 14:56:27 -0800 Subject: [AccessD] Naming Convention (Query SQLcorrectbutnotvisibleindesign view) Message-ID: ROTFL I like the vbYesNo = vbTrue part, especially! Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Tuesday, December 28, 2004 1:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQLcorrectbutnotvisibleindesign view) If DA.Expert1.Opinion(varOpinion) = DA.Expert2.Opinion(varOpinion) Then If MsgBox ("Does Everyone Agree?",vbQuestion+vbYesNo) = vbTrue then Call AskQuestionAgain(varOpinion) Else DA.AllExperts(varOpinion).Agreement = False End If End If ... It's just hard to get there! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 3:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) Well.. You and I are the only experts that really matter in our world right? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, December 28, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 28 16:59:55 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 14:59:55 -0800 Subject: [AccessD] Naming Convention (Query SQLcorrect butnotvisibleindesign view) Message-ID: You only see the icons in the database window. I never rely on icons for anything, especially since they're so small that they all look the same to me. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Tuesday, December 28, 2004 2:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Naming Convention (Query SQLcorrect butnotvisibleindesign view) Which is precisely why I moved the prefixes to the suffixes. The icon says it all. Mike & Doris Manning wrote: >Not using some sort of notation at all can get messy really fast. I >find myself using a mix of prefixes and suffixes to keep things >straight -- particularly in the query tab because when you are working >in an Access ADP, there is no distinction between sprocs, views and >functions other than by looking at the icon. > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Dec 28 17:46:39 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 18:46:39 -0500 Subject: [AccessD] Naming Convention (Query SQLcorrect butnotvisibleindesign view) In-Reply-To: References: Message-ID: <41D1F05F.40404@rogers.com> I guess that either: a) you're an old fart b) you don't have a 19"+ monitor Too bad, poor baby LOL. Charlotte Foust wrote: >You only see the icons in the database window. I never rely on icons >for anything, especially since they're so small that they all look the >same to me. > >Charlotte Foust > > >-----Original Message----- >From: Arthur Fuller [mailto:artful at rogers.com] >Sent: Tuesday, December 28, 2004 2:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Naming Convention (Query SQLcorrect >butnotvisibleindesign view) > > >Which is precisely why I moved the prefixes to the suffixes. The icon >says it all. > >Mike & Doris Manning wrote: > > > >>Not using some sort of notation at all can get messy really fast. I >>find myself using a mix of prefixes and suffixes to keep things >>straight -- particularly in the query tab because when you are working >>in an Access ADP, there is no distinction between sprocs, views and >>functions other than by looking at the icon. >> >>Doris Manning >>Database Administrator >>Hargrove Inc. >>www.hargroveinc.com >> >> >> >> >> >> > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From cfoust at infostatsystems.com Tue Dec 28 18:17:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 16:17:50 -0800 Subject: [AccessD] Naming Convention(Query SQLcorrect butnotvisibleindesign view) Message-ID: Both! Plus I've been incredibly nearsighted since I was a child. If I don't remember where I lay my glasses down at night, I can't find them again. LOL Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Tuesday, December 28, 2004 3:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Naming Convention(Query SQLcorrect butnotvisibleindesign view) I guess that either: a) you're an old fart b) you don't have a 19"+ monitor Too bad, poor baby LOL. Charlotte Foust wrote: >You only see the icons in the database window. I never rely on icons >for anything, especially since they're so small that they all look the >same to me. > >Charlotte Foust > > >-----Original Message----- >From: Arthur Fuller [mailto:artful at rogers.com] >Sent: Tuesday, December 28, 2004 2:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Naming Convention (Query SQLcorrect >butnotvisibleindesign view) > > >Which is precisely why I moved the prefixes to the suffixes. The icon >says it all. > >Mike & Doris Manning wrote: > > > >>Not using some sort of notation at all can get messy really fast. I >>find myself using a mix of prefixes and suffixes to keep things >>straight -- particularly in the query tab because when you are working >>in an Access ADP, there is no distinction between sprocs, views and >>functions other than by looking at the icon. >> >>Doris Manning >>Database Administrator >>Hargrove Inc. >>www.hargroveinc.com >> >> >> >> >> >> > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Dec 28 19:28:44 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 28 Dec 2004 17:28:44 -0800 Subject: [AccessD] Relationship Issue Message-ID: <000001c4ed45$bf7e5370$6501a8c0@delllaptop> I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jwcolby at colbyconsulting.com Tue Dec 28 20:03:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 21:03:30 -0500 Subject: [AccessD] Relationship Issue In-Reply-To: <000001c4ed45$bf7e5370$6501a8c0@delllaptop> Message-ID: <000001c4ed4a$9b151730$0300a8c0@ColbyM6805> It's done in the actual relationship in the BE. Open the BE. Click Tools / relationships Find the relationship between Employees and stblEmpJobs Dbl click the line for the relationship, or right click and select edit relationship from the right click menu. Click Cascade Delete related records. Hang on to your pants. Deleting records from a database is rarely a good idea. If you are going to do so, then an archive of all affected records is a must. I would doubt that this is the only sub-table of an employee. The client will likely be carving huge chunks of data out of their database every time they delete an old employee. For the rest of eternity you will be hearing "what happened to that record in table XYZ". In my Insurance call center database for example, the employee ID is logged in no fewer than 7 tables - Who is responsible for a specific policy, who created the claim record, diary records, claim event records, claim contacts, claim notes, Policy responsible employee, mail merged letters etc. Deleting any one of those employees cannot be performed without also deleting all the related records in all those tables. MASSIVE pieces of history about the claims would be missing. In fact however it gets worse, the employee cannot be deleted without the claim being deleted. The claim is parent to payment records, ATPs, NCNs etc which do not have an employee ID specifically associated with it. Likewise in this specific case, there is a "who is responsible for this policy" field. Thus deleting the claimant will force deleting the policy, and all the claims under the policy. Deleting a single employee would force deleting thousands of records in dozens of tables. NEVER a good idea, and then ONLY with an archive system in place. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, December 28, 2004 8:29 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Relationship Issue I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Tue Dec 28 20:11:36 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 28 Dec 2004 21:11:36 -0500 Subject: [AccessD] Relationship Issue References: <000001c4ed45$bf7e5370$6501a8c0@delllaptop> Message-ID: William Hindman ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 28, 2004 8:28 PM Subject: [AccessD] Relationship Issue >I have a table Employees and a subtable stblEmpJobs. > > They link on field EmpID > > The link was built when I built and dropped the forms together. The > relationship in the window says one to many ( external ). I need to edit > the > relationship to enforce referential to do permit cascade deletes. > > Any ideas ? > > The customer has signed off they do not want to archive ex employees in > the > system. She wants to pull the paper records > > > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Tue Dec 28 20:23:20 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 28 Dec 2004 21:23:20 -0500 Subject: [AccessD] Relationship Issue References: <000001c4ed45$bf7e5370$6501a8c0@delllaptop> Message-ID: ..ok ...maybe my thinking cap isn't on straight ...but I don't see how what you describe can work ...from what you say you only have two tables and yet you want to enforce referential integrity AND do cascade deletes ...setting aside for the moment my long held animus for cascade deletes, I don't see how you can have referential integrity in the first place, eh? ..in my little world I need a tblEmployees, a tblJobs, and a tblEmpJobs that holds the FK for each job assigned and the FK for each employee it was assigned to ...else I wind up with duplicate Jobs in the tblJobs and/or dupe employees in tblEmployees ...assuming jobs are not unique to employees of course but if so, then why separate tables at all. ..but like I said, its been a mind bending day and maybe I'm not quite seeing the light as well as I should ...if so, I'm sure someone here will point out the error of my ways. William Hindman ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 28, 2004 8:28 PM Subject: [AccessD] Relationship Issue >I have a table Employees and a subtable stblEmpJobs. > > They link on field EmpID > > The link was built when I built and dropped the forms together. The > relationship in the window says one to many ( external ). I need to edit > the > relationship to enforce referential to do permit cascade deletes. > > Any ideas ? > > The customer has signed off they do not want to archive ex employees in > the > system. She wants to pull the paper records > > > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Tue Dec 28 23:00:42 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 28 Dec 2004 21:00:42 -0800 Subject: [AccessD] Relationship Issue In-Reply-To: <000001c4ed4a$9b151730$0300a8c0@ColbyM6805> Message-ID: <000001c4ed63$5cc02ce0$6501a8c0@delllaptop> I am short on time to deadline. Have chosen to allow client to make employee inactive. Then related records just wont show in reports.. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 6:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue It's done in the actual relationship in the BE. Open the BE. Click Tools / relationships Find the relationship between Employees and stblEmpJobs Dbl click the line for the relationship, or right click and select edit relationship from the right click menu. Click Cascade Delete related records. Hang on to your pants. Deleting records from a database is rarely a good idea. If you are going to do so, then an archive of all affected records is a must. I would doubt that this is the only sub-table of an employee. The client will likely be carving huge chunks of data out of their database every time they delete an old employee. For the rest of eternity you will be hearing "what happened to that record in table XYZ". In my Insurance call center database for example, the employee ID is logged in no fewer than 7 tables - Who is responsible for a specific policy, who created the claim record, diary records, claim event records, claim contacts, claim notes, Policy responsible employee, mail merged letters etc. Deleting any one of those employees cannot be performed without also deleting all the related records in all those tables. MASSIVE pieces of history about the claims would be missing. In fact however it gets worse, the employee cannot be deleted without the claim being deleted. The claim is parent to payment records, ATPs, NCNs etc which do not have an employee ID specifically associated with it. Likewise in this specific case, there is a "who is responsible for this policy" field. Thus deleting the claimant will force deleting the policy, and all the claims under the policy. Deleting a single employee would force deleting thousands of records in dozens of tables. NEVER a good idea, and then ONLY with an archive system in place. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, December 28, 2004 8:29 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Relationship Issue I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 28 23:10:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 29 Dec 2004 00:10:51 -0500 Subject: [AccessD] Relationship Issue In-Reply-To: <000001c4ed63$5cc02ce0$6501a8c0@delllaptop> Message-ID: <000201c4ed64$c776ca20$0300a8c0@ColbyM6805> Good idea! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 29, 2004 12:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue I am short on time to deadline. Have chosen to allow client to make employee inactive. Then related records just wont show in reports.. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 6:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue It's done in the actual relationship in the BE. Open the BE. Click Tools / relationships Find the relationship between Employees and stblEmpJobs Dbl click the line for the relationship, or right click and select edit relationship from the right click menu. Click Cascade Delete related records. Hang on to your pants. Deleting records from a database is rarely a good idea. If you are going to do so, then an archive of all affected records is a must. I would doubt that this is the only sub-table of an employee. The client will likely be carving huge chunks of data out of their database every time they delete an old employee. For the rest of eternity you will be hearing "what happened to that record in table XYZ". In my Insurance call center database for example, the employee ID is logged in no fewer than 7 tables - Who is responsible for a specific policy, who created the claim record, diary records, claim event records, claim contacts, claim notes, Policy responsible employee, mail merged letters etc. Deleting any one of those employees cannot be performed without also deleting all the related records in all those tables. MASSIVE pieces of history about the claims would be missing. In fact however it gets worse, the employee cannot be deleted without the claim being deleted. The claim is parent to payment records, ATPs, NCNs etc which do not have an employee ID specifically associated with it. Likewise in this specific case, there is a "who is responsible for this policy" field. Thus deleting the claimant will force deleting the policy, and all the claims under the policy. Deleting a single employee would force deleting thousands of records in dozens of tables. NEVER a good idea, and then ONLY with an archive system in place. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, December 28, 2004 8:29 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Relationship Issue I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Dec 28 23:23:49 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 28 Dec 2004 21:23:49 -0800 Subject: [AccessD] Relationship Issue In-Reply-To: <000201c4ed64$c776ca20$0300a8c0@ColbyM6805> Message-ID: <000101c4ed66$970d60e0$6501a8c0@delllaptop> John, Thanks. Did you get my private email to your account? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 9:11 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue Good idea! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 29, 2004 12:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue I am short on time to deadline. Have chosen to allow client to make employee inactive. Then related records just wont show in reports.. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 6:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue It's done in the actual relationship in the BE. Open the BE. Click Tools / relationships Find the relationship between Employees and stblEmpJobs Dbl click the line for the relationship, or right click and select edit relationship from the right click menu. Click Cascade Delete related records. Hang on to your pants. Deleting records from a database is rarely a good idea. If you are going to do so, then an archive of all affected records is a must. I would doubt that this is the only sub-table of an employee. The client will likely be carving huge chunks of data out of their database every time they delete an old employee. For the rest of eternity you will be hearing "what happened to that record in table XYZ". In my Insurance call center database for example, the employee ID is logged in no fewer than 7 tables - Who is responsible for a specific policy, who created the claim record, diary records, claim event records, claim contacts, claim notes, Policy responsible employee, mail merged letters etc. Deleting any one of those employees cannot be performed without also deleting all the related records in all those tables. MASSIVE pieces of history about the claims would be missing. In fact however it gets worse, the employee cannot be deleted without the claim being deleted. The claim is parent to payment records, ATPs, NCNs etc which do not have an employee ID specifically associated with it. Likewise in this specific case, there is a "who is responsible for this policy" field. Thus deleting the claimant will force deleting the policy, and all the claims under the policy. Deleting a single employee would force deleting thousands of records in dozens of tables. NEVER a good idea, and then ONLY with an archive system in place. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, December 28, 2004 8:29 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Relationship Issue I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Wed Dec 29 12:20:36 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 29 Dec 2004 12:20:36 (MET) Subject: [AccessD] error while connecting Message-ID: <200412291120.iBTBKaGC001535@mailhostC.plex.net> Hello Group, i converted a A97 database to A2003. The conversion went ok, no compiling errors. This database is secured by an mdw. When trying to do a mailmerge from a form i am getting an error: 5922, source could not be opened. In the code itself, nothing was changed (except the name of the database, i checked the name several times). The odbc, in the user-DSN, the database, the mdw, the registrationname and password are correct. Also when doing the mailmerge from the form, i get a datalink box, where i fill in the odbc data. This is giving a message that the connection is ok. The error in the code is highlighting the following part: OpenDataSource _ Name:="P:\Cytologie\positieven\" _ & "BeveiligdPOSITIEVEN(XP).mdb", _ ReadOnly:=True, LinkToSource:=True, _ Connection:=strConnect, _ SQLStatement:="SELECT * FROM [Uitvoer], [tblHarts] WHERE Uitvoer.AanvragerID = tblHarts.AanvragerID AND Uitvoer.ControleID = " & Forms![Brief]![veld] & ";" Anybody any idea's Pedro Janssen From Gustav at cactus.dk Wed Dec 29 10:35:53 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 29 Dec 2004 17:35:53 +0100 Subject: [AccessD] ReDim Preserve a multidimensional array Message-ID: Hi all Charlotte reminded recently that a Variant can nicely hold an array. Just had to deal with how to ReDim a multidimensional array for another dimension than the last while preserving the content. You can't do that in VBA (browse the on-line help if in doubt), but here's a workaround: You can simulate it by copying the array via one temporary Variant. Here's an example: Public Sub ArrayCopy() Dim avarA() As Variant Dim avarT As Variant Dim lngX As Long Dim lngY As Long ReDim avarA(0 To 1, 0 To 1) avarA(0, 0) = "AA" avarA(1, 0) = "BA" avarA(0, 1) = "AB" avarA(1, 1) = "BB" Debug.Print UBound(avarA, 1), UBound(avarA, 2) Debug.Print LBound(avarA, 1), LBound(avarA, 2) ' Create copy of array. avarT = avarA() ' ReDim to 10 as Ubound for first dimension and erase array. ReDim avarA(LBound(avarA, 1) To 10, LBound(avarA, 2) To UBound(avarA, 2)) ' Refill array from copy. For lngX = LBound(avarT, 1) To UBound(avarT, 1) For lngY = LBound(avarT, 2) To UBound(avarT, 2) avarA(lngX, lngY) = avarT(lngX, lngY) Next Next Debug.Print UBound(avarA, 1), UBound(avarA, 2) Debug.Print LBound(avarA, 1), LBound(avarA, 2) Debug.Print UBound(avarT, 1), UBound(avarT, 2) Debug.Print LBound(avarT, 1), LBound(avarT, 2) Debug.Print avarA(0, 0) Debug.Print avarA(1, 0) Debug.Print avarA(0, 1) Debug.Print avarA(1, 1) End Sub /gustav From clh at christopherhawkins.com Wed Dec 29 17:04:44 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 29 Dec 2004 16:04:44 -0700 Subject: [AccessD] SQL Server view not updateable in Access? Message-ID: <38ef737e8a804617885fa0c232fcdc81@christopherhawkins.com> A client of mine called me to look at a view in his SQL Server instance.? It is linked in to his Access front-end like a table.? It is also not updateable (he wants to use the view instead of an Access query). OK, I think to myself.? Do all the tables in the view?have keys?? Check.? Does the view have a 'TOP x PERCENT' clause in it?? Nope.? Hmmm.? Then?another idea hits me?- the view tables may have primary keys, but the view itself does not have a key or an index of any kind.? That may be why Access can't update it.? But how would I indicate an index or key column on a view?? I know that if I manually link tables using a DSN, Access will prompt for tables or view when it cannot identify a unique index, but *this* application links to the SQL Server programmatically by creating a TableDef object,?setting the .Connect property to something like "ODBC;DRIVER=SQL Server;SERVER=ServerName;DATABASE=DatabaseName;TABLE=dbo.TableName", then appending the new TableDef to the TableDefs. Is there some parameter I can throw in the connect string to indicate the unique index of the view?? I'm pretty stumped, and my searches of Books Online and Google have left me with nothing. -Christopher- From clh at christopherhawkins.com Wed Dec 29 17:10:24 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 29 Dec 2004 16:10:24 -0700 Subject: [AccessD] re: SQL Server view not updateable in Access? Message-ID: <4a879a32b5fd4209a8d5e22ca139c5c9@christopherhawkins.com> P.S.? I checked permissions too.? The current login has full CRUD rights to the whole database (which is another problem entirely). -Christopher- ---------------------------------------- From: "Christopher Hawkins" Sent: Wednesday, December 29, 2004 4:04 PM To: accessd at databaseadvisors.com Subject: SQL Server view not updateable in Access? A client of mine called me to look at a view in his SQL Server instance.? It is linked in to his Access front-end like a table.? It is also not updateable (he wants to use the view instead of an Access query). OK, I think to myself.? Do all the tables in the view?have keys?? Check.? Does the view have a 'TOP x PERCENT' clause in it?? Nope.? Hmmm.? Then?another idea hits me?- the view tables may have primary keys, but the view itself does not have a key or an index of any kind.? That may be why Access can't update it.? But how would I indicate an index or key column on a view?? I know that if I manually link tables using a DSN, Access will prompt for tables or view when it cannot identify a unique index, but *this* application links to the SQL Server programmatically by creating a TableDef object,?setting the .Connect property to something like "ODBC;DRIVER=SQL Server;SERVER=ServerName;DATABASE=DatabaseName;TABLE=dbo.TableName", then appending the new TableDef to the TableDefs. Is there some parameter I can throw in the connect string to indicate the unique index of the view?? I'm pretty stumped, and my searches of Books Online and Google have left me with nothing. -Christopher- From cyx5 at cdc.gov Thu Dec 30 05:09:34 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 06:09:34 -0500 Subject: [AccessD] re: SQL Server view not updateable in Access? Message-ID: To update the table from Access to SQL, you have to make sure that the key fields defined in the SQL table are all included in the view. Also, check to see if there is a field in the SQL table that is an identity field. That sometimes throws it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Wednesday, December 29, 2004 6:10 PM To: accessd at databaseadvisors.com Subject: [AccessD] re: SQL Server view not updateable in Access? P.S.? I checked permissions too.? The current login has full CRUD rights to the whole database (which is another problem entirely). -Christopher- ---------------------------------------- From: "Christopher Hawkins" Sent: Wednesday, December 29, 2004 4:04 PM To: accessd at databaseadvisors.com Subject: SQL Server view not updateable in Access? A client of mine called me to look at a view in his SQL Server instance.? It is linked in to his Access front-end like a table.? It is also not updateable (he wants to use the view instead of an Access query). OK, I think to myself.? Do all the tables in the view?have keys?? Check.? Does the view have a 'TOP x PERCENT' clause in it?? Nope.? Hmmm.? Then?another idea hits me?- the view tables may have primary keys, but the view itself does not have a key or an index of any kind.? That may be why Access can't update it.? But how would I indicate an index or key column on a view?? I know that if I manually link tables using a DSN, Access will prompt for tables or view when it cannot identify a unique index, but *this* application links to the SQL Server programmatically by creating a TableDef object,?setting the .Connect property to something like "ODBC;DRIVER=SQL Server;SERVER=ServerName;DATABASE=DatabaseName;TABLE=dbo.TableName", then appending the new TableDef to the TableDefs. Is there some parameter I can throw in the connect string to indicate the unique index of the view?? I'm pretty stumped, and my searches of Books Online and Google have left me with nothing. -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 30 05:09:54 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 30 Dec 2004 12:09:54 +0100 Subject: [AccessD] Creating controls on a form table data based Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B568D@stekelbes.ithelps.local> Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Dec 30 05:33:02 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 30 Dec 2004 12:33:02 +0100 Subject: [AccessD] Creating controls on a form table data based Message-ID: Hi Erwin That's what I thought. But then you could have a main form with a listbox with the questions themself (and perhaps a summary of the answers) listed and, say, 10 questions visible at a time. And a subform or popup which displays the selected question in full and editable. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 12:09:54 >>> No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin From cyx5 at cdc.gov Thu Dec 30 05:34:50 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 06:34:50 -0500 Subject: [AccessD] Creating controls on a form table data based Message-ID: We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Dec 30 06:54:41 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 30 Dec 2004 07:54:41 -0500 Subject: [AccessD] Excel object model. Message-ID: <916187228923D311A6FE00A0CC3FAA305BBC74@ADGSERVER> Hi all, I'm trying to format a small range of cells. I want to set the format on a row-by-row basis. Basically, I am building a report from Access into an Excel spreadsheet. I am accessing the range like this With .worksheets(1).Range(.worksheets(1).cells(l, 3), .worksheets(1).cells(l, 5)) End With Does anyone know what method(s)/properties I need to use to set the range's number of decimals to display, as standard number, and as a percent? I am currently looking for this information, but if anyone already knows, it would greatly speed up my work. Thanks, Bobby From bheid at appdevgrp.com Thu Dec 30 07:07:17 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 30 Dec 2004 08:07:17 -0500 Subject: [AccessD] Excel object model. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A7A021@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBC75@ADGSERVER> Ok, I found the numberformat property which will take care of the standard number and percent formats. Now I am still looking for the decimal places. I am also looking for the property that will let me right justify text in a cell. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, December 30, 2004 7:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel object model. Hi all, I'm trying to format a small range of cells. I want to set the format on a row-by-row basis. Basically, I am building a report from Access into an Excel spreadsheet. I am accessing the range like this With .worksheets(1).Range(.worksheets(1).cells(l, 3), .worksheets(1).cells(l, 5)) End With Does anyone know what method(s)/properties I need to use to set the range's number of decimals to display, as standard number, and as a percent? I am currently looking for this information, but if anyone already knows, it would greatly speed up my work. Thanks, Bobby From jwcolby at colbyconsulting.com Thu Dec 30 07:17:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 30 Dec 2004 08:17:30 -0500 Subject: [AccessD] Donations for relief efforts Message-ID: <001101c4ee71$ee336fc0$0300a8c0@ColbyM6805> For anyone interested, you can make donations to the Red Cross for the tsunami relief effort at: https://www.redcross.org/donate/donation-form.asp You can also Google relief donation and similar phrases if you prefer to make donations to some other organization. This event has overwhelmed everyone's ability to respond and your donation to the organization of your choice will literally save lives. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bheid at appdevgrp.com Thu Dec 30 08:17:26 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 30 Dec 2004 09:17:26 -0500 Subject: [AccessD] Excel object model. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A7A025@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBC77@ADGSERVER> I have found the information as that I needed. If anyone is interested, I'll sum up the information in another email after I finish what I am working on. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, December 30, 2004 8:07 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Excel object model. Ok, I found the numberformat property which will take care of the standard number and percent formats. Now I am still looking for the decimal places. I am also looking for the property that will let me right justify text in a cell. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, December 30, 2004 7:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel object model. Hi all, I'm trying to format a small range of cells. I want to set the format on a row-by-row basis. Basically, I am building a report from Access into an Excel spreadsheet. I am accessing the range like this With .worksheets(1).Range(.worksheets(1).cells(l, 3), .worksheets(1).cells(l, 5)) End With Does anyone know what method(s)/properties I need to use to set the range's number of decimals to display, as standard number, and as a percent? I am currently looking for this information, but if anyone already knows, it would greatly speed up my work. Thanks, Bobby From Erwin.Craps at ithelps.be Thu Dec 30 08:47:22 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 30 Dec 2004 15:47:22 +0100 Subject: [AccessD] Creating controls on a form table data based Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B568F@stekelbes.ithelps.local> I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 30 08:55:47 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 09:55:47 -0500 Subject: [AccessD] Creating controls on a form table data based Message-ID: Yikes. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 9:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Thu Dec 30 09:26:50 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 30 Dec 2004 15:26:50 -0000 Subject: [AccessD] Creating controls on a form table data based Message-ID: <61F915314798D311A2F800A0C9C8318805CED98C@dibble.observatory.donnslaw.co.uk> I presume you will hold the definitions for each control in a couple of tables (one for controls one for drop-downs with answer choices?) We have a system here which allows user-defined fields in a similar way. The 'controls' table looks a bit like this: Detail ID | Label | Type (Number, Text, Flag, Value) | Mandatory Y/N And for those which are type Text you can add rows to a second table to create combos: Detail ID (FK) | Code | Description I didn't design it, but even so it works OK! :P How about tabs instead of new forms? Then your users can assign each new control to a tab and keep control without you having to build new code on the fly. Good luck! Roz -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: 30 December 2004 14:47 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From Erwin.Craps at ithelps.be Thu Dec 30 09:39:14 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 30 Dec 2004 16:39:14 +0100 Subject: [AccessD] Creating controls on a form table data based Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5690@stekelbes.ithelps.local> Good suggestion, hadn't tought about tabs. At first this was not an option because for some reasons but now I'm rewriting it to have a maximum on questions per form independent from the main groups (questions are divided in to Main groups). A main group can hold 1 or x number of questions. So now I rewriting for max questions per form I can put it onto a tab page and just call them page 1, 2 3. The advantage I will only need to delete and create one form avoiding database bloat and probably somewhat faster. I will still need to create the form on the fly, but I taking in account that when no changes have been made to the questions and posible answers/choices I will not recreate the form. Wow, the form will probably only created on the fly a couple of times a year which is good for speed. When finisched I will probably share this code with the group. I wouldn't wish this to my worst enimy :-) Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke Sent: Thursday, December 30, 2004 4:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Creating controls on a form table data based I presume you will hold the definitions for each control in a couple of tables (one for controls one for drop-downs with answer choices?) We have a system here which allows user-defined fields in a similar way. The 'controls' table looks a bit like this: Detail ID | Label | Type (Number, Text, Flag, Value) | Mandatory Y/N And for those which are type Text you can add rows to a second table to create combos: Detail ID (FK) | Code | Description I didn't design it, but even so it works OK! :P How about tabs instead of new forms? Then your users can assign each new control to a tab and keep control without you having to build new code on the fly. Good luck! Roz -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: 30 December 2004 14:47 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Thu Dec 30 09:51:37 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 30 Dec 2004 10:51:37 -0500 Subject: [AccessD] Dealing with References across versions In-Reply-To: References: Message-ID: <41D42409.4070906@rogers.com> I wasn't sure how else to title this. I know that it's been dealt with in the past, but I can't remember under which topic. Here's the issue. I develop the app under Office 2002. Some users run Office 2000, some 2002 and one 2003. I make use of both Outlook and Word in various parts of the app. Then on various machines I get busted because the reference is to Outlook 10 and they're running 9, etc. I seem to recall that there is a "late binding" solution to this, but that's all I remember. TIA, Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 From CMackin at quiznos.com Thu Dec 30 09:56:35 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 30 Dec 2004 08:56:35 -0700 Subject: [AccessD] Dealing with References across versions Message-ID: Late binding simply means that when you open an Outlook Object (or any other Automation Object) your object variable is: Dim objOtl as Object Instead of Early Binding: Dim otlApp as Outlook.Application If you use early binding during development you gain the advantage of intellisense in working with the object model, then you can change it to late binding by re-dimming the objects and clearing the reference to Outlook. THere's the brief version. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Thursday, December 30, 2004 8:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] Dealing with References across versions I wasn't sure how else to title this. I know that it's been dealt with in the past, but I can't remember under which topic. Here's the issue. I develop the app under Office 2002. Some users run Office 2000, some 2002 and one 2003. I make use of both Outlook and Word in various parts of the app. Then on various machines I get busted because the reference is to Outlook 10 and they're running 9, etc. I seem to recall that there is a "late binding" solution to this, but that's all I remember. TIA, Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Dec 30 10:01:37 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 30 Dec 2004 11:01:37 -0500 Subject: [AccessD] Dealing with References across versions In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A7A060@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBC7B@ADGSERVER> Arthur, Look up GetObject to find out information on late binding. To open a particular Excel spreadsheet instance, I am using this: dim xlApp as object Set xlApp = GetObject(strPath & "somefile.xls") Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, December 30, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] Dealing with References across versions I wasn't sure how else to title this. I know that it's been dealt with in the past, but I can't remember under which topic. Here's the issue. I develop the app under Office 2002. Some users run Office 2000, some 2002 and one 2003. I make use of both Outlook and Word in various parts of the app. Then on various machines I get busted because the reference is to Outlook 10 and they're running 9, etc. I seem to recall that there is a "late binding" solution to this, but that's all I remember. TIA, Arthur From markamatte at hotmail.com Thu Dec 30 10:14:38 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 30 Dec 2004 16:14:38 +0000 Subject: [AccessD] Creating controls on a form table data based Message-ID: Erwin, I've done something similar in 2 different apps. Both were done dynamically. Both customers can add questions and answers to the app without needing something done to the code. Here are the 2 approaches I took: 1st approach: I used subforms on a tab control. Each subform was set to continuous. In this approach the answers were predefined. Tab1 answers were 1,2,3,NA...Tab2 answers were Yes,No,NA...tab 3 answers were Sometimes, always,never,most, etc. When the user added a new question, they must select what tab they want it to appear on...where the answers were already set up. 2nd approach: This was an order form...the goal was to pick a product, then the attributes, and then the attribute values. The problem was that some attribute values had a specific limit, others would need to be free text but they would probably type the same thing over and over again, and the third was basically random descriptive words or numbers. Again I used subforms set to continuous, 3 this time...each set up with a different kind of answer (attribute value) box. (the words in quotes are just titles I chose for the explanation to the customer)The first was just a text box ('FreeText')...the second was a combo ('DropDown' that used its own source to populate)...and the third was a combo ('LimitToList' used an attribute table to populate and was limited to the list). So now when the customer adds a new product or attribute to the app he has to decide what type of attribute they are adding (FreeText,DropDown, or LimitToList) and the app places the new in the right category...and of course if they chose LimitToList...the app prompted them for the acceptable choices. Don't know if this helps at all...but it sounded similar. Each time I just separated my questions by answer type...if I had 4 answer types...I ended up with 4 subforms...and so on. The benefit of this is I could walk away after they got up and running, unless something just broke. Good Luck, Mark A. Matte >From: "Nicholson, Karen" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] Creating controls on a form table data based >Date: Thu, 30 Dec 2004 09:55:47 -0500 > >Yikes. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - >IT Helps >Sent: Thursday, December 30, 2004 9:47 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Creating controls on a form table data based > > > >I have 73 question with in total 372 posible choices/answers. >And its a dynamic thing, so questions will be added by the user, and the >forms need to adapt. >Showing a popup per question is not an option because this needs user >interaction (73 times) and slows down te data entry. > >So I dont see any other solution then generating unbound forms on the >spot and add controls (questions, answers, formatting and code) to them. >Each form will have its maximum height depending on the number of >questions/answers, so probably i will end up with 10 forms or so. > >I already noticed that I can not generate a report for this in Access >due to the limit in detailsection height, don't know if creating >sections can help in this. So I supose I will need to generate the >printed report in Word from Access, which is fine for the customer. > >Hehe, tuff nut to crack... > >Erwin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >Karen >Sent: Thursday, December 30, 2004 12:35 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Creating controls on a form table data based > >We just did a similar application, I thought that conditional formatting >would be my ticket, but alas, it is not powerful enough to change the >visibility of controls on a continuous form. So, what we did was create >one form for each question. Each question has different fields for the >answer - some are yes no, some need comments, etc. So, we had about 15 >questions. I had one form with 15 forms plopped on the one form. Looks >like a continuous form to the user but it is lots of forms all tied by >the unique identifier. We used one table for the questions and answers, >on the form we just display those relevant to each question. Pain in ze >butt butt it worked. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - >IT Helps >Sent: Thursday, December 30, 2004 6:10 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Creating controls on a form table data based > > >Yes it is an AccessD, my mistake. > >No, not one question at the time. That's just the point. >I first proposed that, but after discussing this with the customer, we >decided that this goes way to slow for data entry at location with a >tablet pc in the hand walking around. > > >Erwin > > >-----Original Message----- >From: dba-tech-bounces at databaseadvisors.com >[mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Thursday, December 30, 2004 11:46 AM >To: dba-tech at databaseadvisors.com >Subject: Re: [dba-Tech] Creating controls on a form table data based > >Hi Erwin > >First, isn't this an AccessD topic? > >Then, couldn't you use a continuous form where you display one question >at a time? >If so, you could define the type of question (yes/no, amount, etc.), the >question itself etc. dynamically. > >/gustav > > >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> >Hi > >I developing an app for a tablet pc, that will be uses by an expert to >estimate real estates. >The target is that the expert gets out his tablet pc in the building and >starts clicking predifined answers to descibe the estate. >Additional comments per answer must be posible (example wooden floor = >yes, comment= slightly damaged) For reasons of speed and overview the >several questions and respective answers need to be on a minimum of >forms to avoid form switching They now use a paper form. >The difficulty lies in the fact that questions and there choices/answers >can vary over time. >So the only solution to achieve this looks like creating forms and their >controls programaticaly on the spot. > >So I got in to creating x number of controls on x number of forms, but >I'm tumbling in to problems like a limited form length, how to entry >code (programaticaly) after a control, etc etc. > >The answers are not straigtforward yes/no but can be any of these Yes/No >(boolean) amount (Euro) number simple text long text (memo) multiple >choice (option group) 1 choice only multiple choice (option group) >multiple choices > >So I'm getting scared not beeing on the right track here, or not posible >in a reasonable time. >Some great webpage on this material would help me with some guidelines >how to achive this. > > >Thanks > > > >Erwin Craps > >Zaakvoerder > >www.ithelps.be/onsgezin > >_______________________________________________ >dba-Tech mailing list >dba-Tech at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-tech >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 30 11:38:10 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 12:38:10 -0500 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. From Gustav at cactus.dk Thu Dec 30 11:53:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 30 Dec 2004 18:53:50 +0100 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: Hi 65 What is the problem? /gustav >>> cyx5 at cdc.gov 30-12-2004 18:38:10 >>> OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. From cfoust at infostatsystems.com Thu Dec 30 11:55:30 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 30 Dec 2004 09:55:30 -0800 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: You already have two tables, but how were you planning to "track" the changes? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 30, 2004 9:38 AM To: accessd at databaseadvisors.com Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Dec 30 12:01:48 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 30 Dec 2004 10:01:48 -0800 Subject: [AccessD] Creating controls on a form table data based In-Reply-To: Message-ID: Erwin this sounds very much like a survey app with "branching" that I was thinking of developing at one time. As Mark mentioned, you want to design this so that the user (or owner) sets up the questions using giving all possible scenarios for the answers. Before the user walks in the building he will already know how many bedroom & bathrooms are in the house, correct? If so, he will have to enter those values then the program will have to repeat each form for each room asking the same questions (combos or list boxes): Floortype (Carpet, wood, Tile, laminate) , maybe a cascading combo (Shag, Hard wood, pergo, ceramic, clay...) With proper normalization and enough junction tables, this is quite doable. David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Thursday, December 30, 2004 8:15 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Creating controls on a form table data based Erwin, I've done something similar in 2 different apps. Both were done dynamically. Both customers can add questions and answers to the app without needing something done to the code. Here are the 2 approaches I took: 1st approach: I used subforms on a tab control. Each subform was set to continuous. In this approach the answers were predefined. Tab1 answers were 1,2,3,NA...Tab2 answers were Yes,No,NA...tab 3 answers were Sometimes, always,never,most, etc. When the user added a new question, they must select what tab they want it to appear on...where the answers were already set up. 2nd approach: This was an order form...the goal was to pick a product, then the attributes, and then the attribute values. The problem was that some attribute values had a specific limit, others would need to be free text but they would probably type the same thing over and over again, and the third was basically random descriptive words or numbers. Again I used subforms set to continuous, 3 this time...each set up with a different kind of answer (attribute value) box. (the words in quotes are just titles I chose for the explanation to the customer)The first was just a text box ('FreeText')...the second was a combo ('DropDown' that used its own source to populate)...and the third was a combo ('LimitToList' used an attribute table to populate and was limited to the list). So now when the customer adds a new product or attribute to the app he has to decide what type of attribute they are adding (FreeText,DropDown, or LimitToList) and the app places the new in the right category...and of course if they chose LimitToList...the app prompted them for the acceptable choices. Don't know if this helps at all...but it sounded similar. Each time I just separated my questions by answer type...if I had 4 answer types...I ended up with 4 subforms...and so on. The benefit of this is I could walk away after they got up and running, unless something just broke. Good Luck, Mark A. Matte >From: "Nicholson, Karen" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] Creating controls on a form table data based >Date: Thu, 30 Dec 2004 09:55:47 -0500 > >Yikes. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - >IT Helps >Sent: Thursday, December 30, 2004 9:47 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Creating controls on a form table data based > > > >I have 73 question with in total 372 posible choices/answers. >And its a dynamic thing, so questions will be added by the user, and the >forms need to adapt. >Showing a popup per question is not an option because this needs user >interaction (73 times) and slows down te data entry. > >So I dont see any other solution then generating unbound forms on the >spot and add controls (questions, answers, formatting and code) to them. >Each form will have its maximum height depending on the number of >questions/answers, so probably i will end up with 10 forms or so. > >I already noticed that I can not generate a report for this in Access >due to the limit in detailsection height, don't know if creating >sections can help in this. So I supose I will need to generate the >printed report in Word from Access, which is fine for the customer. > >Hehe, tuff nut to crack... > >Erwin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >Karen >Sent: Thursday, December 30, 2004 12:35 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Creating controls on a form table data based > >We just did a similar application, I thought that conditional formatting >would be my ticket, but alas, it is not powerful enough to change the >visibility of controls on a continuous form. So, what we did was create >one form for each question. Each question has different fields for the >answer - some are yes no, some need comments, etc. So, we had about 15 >questions. I had one form with 15 forms plopped on the one form. Looks >like a continuous form to the user but it is lots of forms all tied by >the unique identifier. We used one table for the questions and answers, >on the form we just display those relevant to each question. Pain in ze >butt butt it worked. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - >IT Helps >Sent: Thursday, December 30, 2004 6:10 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Creating controls on a form table data based > > >Yes it is an AccessD, my mistake. > >No, not one question at the time. That's just the point. >I first proposed that, but after discussing this with the customer, we >decided that this goes way to slow for data entry at location with a >tablet pc in the hand walking around. > > >Erwin > > >-----Original Message----- >From: dba-tech-bounces at databaseadvisors.com >[mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Thursday, December 30, 2004 11:46 AM >To: dba-tech at databaseadvisors.com >Subject: Re: [dba-Tech] Creating controls on a form table data based > >Hi Erwin > >First, isn't this an AccessD topic? > >Then, couldn't you use a continuous form where you display one question >at a time? >If so, you could define the type of question (yes/no, amount, etc.), the >question itself etc. dynamically. > >/gustav > > >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> >Hi > >I developing an app for a tablet pc, that will be uses by an expert to >estimate real estates. >The target is that the expert gets out his tablet pc in the building and >starts clicking predifined answers to descibe the estate. >Additional comments per answer must be posible (example wooden floor = >yes, comment= slightly damaged) For reasons of speed and overview the >several questions and respective answers need to be on a minimum of >forms to avoid form switching They now use a paper form. >The difficulty lies in the fact that questions and there choices/answers >can vary over time. >So the only solution to achieve this looks like creating forms and their >controls programaticaly on the spot. > >So I got in to creating x number of controls on x number of forms, but >I'm tumbling in to problems like a limited form length, how to entry >code (programaticaly) after a control, etc etc. > >The answers are not straigtforward yes/no but can be any of these Yes/No >(boolean) amount (Euro) number simple text long text (memo) multiple >choice (option group) 1 choice only multiple choice (option group) >multiple choices > >So I'm getting scared not beeing on the right track here, or not posible >in a reasonable time. >Some great webpage on this material would help me with some guidelines >how to achive this. > > >Thanks > > > >Erwin Craps > >Zaakvoerder > >www.ithelps.be/onsgezin > >_______________________________________________ >dba-Tech mailing list >dba-Tech at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-tech >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 30 12:06:45 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 13:06:45 -0500 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: My base table is named Parts. This is the bible as to part numbers, descriptions, etc for manufacturers. The manufacturer submits new "assemblies" comprised of parts. If the parts in the new assembly are in the existing *bible* parts and for instance, the description changes, I need an audit table of the parts table showing the part number with its original description, the new description and of course changed by and when. The new assemblies table changes as the manufacturer submits new products for approval. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 12:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Hi 65 What is the problem? /gustav >>> cyx5 at cdc.gov 30-12-2004 18:38:10 >>> OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Dec 30 12:22:31 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 30 Dec 2004 19:22:31 +0100 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: Hi 65 Sounds like Inner Join the two tables, compare each set of fields, and write out to the track table any record where at least one set of fields doesn't match. Then, using another query, append to the track table new records not found in the *bible*. The track table could hold a date/time field with default value of Date. /gustav >>> cyx5 at cdc.gov 30-12-2004 19:06:45 >>> My base table is named Parts. This is the bible as to part numbers, descriptions, etc for manufacturers. The manufacturer submits new "assemblies" comprised of parts. If the parts in the new assembly are in the existing *bible* parts and for instance, the description changes, I need an audit table of the parts table showing the part number with its original description, the new description and of course changed by and when. The new assemblies table changes as the manufacturer submits new products for approval. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 12:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Hi 65 What is the problem? /gustav >>> cyx5 at cdc.gov 30-12-2004 18:38:10 >>> OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. From artful at rogers.com Thu Dec 30 16:42:48 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 30 Dec 2004 17:42:48 -0500 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 In-Reply-To: References: Message-ID: <41D48468.7080706@rogers.com> From you all-too-brief description, I'll guess that T2 and T1 have identical structures, and that any change in T2 supercedes any value in T1 (else it gets WAY complex). But supposing that I'm correct.... One interesting way to do this is is to JOIN the tables and present them columnwise, i.e. T1.C1, T2.C1, T1.C2, T2.C2 etc. so you can readily compare the diffs. You can add criteria to specify that T1.C1 <> T2.C1 and so on, so you only get the rows that are different in some respect. Once you have that and you like the output, it's pretty simple change it to an update query in which you set T1.Cx = T2.Cx. I might be missing the point (wouldn't be the first time), but in my defence your description of the issue was a tad sketchy. Arthur Nicholson, Karen wrote: >OK, so I am losing my mind. I have a QUERY that I am going to run to >update the records in my base table with records from my changes table. >I want to track which fields were changed from and to. Every example I >pull is form based and won't run because SOMEBODY sent me an Access 95 >example. Some of you weren't even born in 95. Aughghghgh! Any help >is appreciated, as usual. > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 From artful at rogers.com Thu Dec 30 16:45:23 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 30 Dec 2004 17:45:23 -0500 Subject: [AccessD] JWC In-Reply-To: References: Message-ID: <41D48503.80700@rogers.com> Yesterday I met the esteemed John W. Colby for the first time. We had lunch and discussed our past lives and so on. I want to assure you all that his code is much more handsome than its author. LOL. Happy New Year, all! Arthur, king of the dorks > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 From andy at minstersystems.co.uk Thu Dec 30 17:18:48 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 30 Dec 2004 23:18:48 -0000 Subject: [AccessD] ReDim Preserve a multidimensional array In-Reply-To: Message-ID: <008501c4eec5$ea86d750$b274d0d5@minster33c3r25> Neat Gustav. Wouldn't have thought of that. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: 29 December 2004 16:36 > To: accessd at databaseadvisors.com > Subject: [AccessD] ReDim Preserve a multidimensional array > > > Hi all > > Charlotte reminded recently that a Variant can nicely hold an array. > > Just had to deal with how to ReDim a multidimensional array > for another dimension than the last while preserving the > content. You can't do that in VBA (browse the on-line help if > in doubt), but here's a workaround: > > You can simulate it by copying the array via one temporary Variant. > > Here's an example: > > Public Sub ArrayCopy() > > Dim avarA() As Variant > Dim avarT As Variant > Dim lngX As Long > Dim lngY As Long > > ReDim avarA(0 To 1, 0 To 1) > > avarA(0, 0) = "AA" > avarA(1, 0) = "BA" > avarA(0, 1) = "AB" > avarA(1, 1) = "BB" > > Debug.Print UBound(avarA, 1), UBound(avarA, 2) > Debug.Print LBound(avarA, 1), LBound(avarA, 2) > > ' Create copy of array. > avarT = avarA() > ' ReDim to 10 as Ubound for first dimension and erase array. > ReDim avarA(LBound(avarA, 1) To 10, LBound(avarA, 2) To > UBound(avarA, > 2)) > ' Refill array from copy. > For lngX = LBound(avarT, 1) To UBound(avarT, 1) > For lngY = LBound(avarT, 2) To UBound(avarT, 2) > avarA(lngX, lngY) = avarT(lngX, lngY) > Next > Next > > Debug.Print UBound(avarA, 1), UBound(avarA, 2) > Debug.Print LBound(avarA, 1), LBound(avarA, 2) > Debug.Print UBound(avarT, 1), UBound(avarT, 2) > Debug.Print LBound(avarT, 1), LBound(avarT, 2) > Debug.Print avarA(0, 0) > Debug.Print avarA(1, 0) > Debug.Print avarA(0, 1) > Debug.Print avarA(1, 1) > > End Sub > > /gustav > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Thu Dec 30 17:20:08 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 30 Dec 2004 23:20:08 -0000 Subject: [AccessD] JWC In-Reply-To: <41D48503.80700@rogers.com> Message-ID: <008601c4eec6$1a65f000$b274d0d5@minster33c3r25> LOL. Happy New Year to the both of you, and the rest of the list. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Arthur Fuller > Sent: 30 December 2004 22:45 > To: Access Developers discussion and problem solving > Subject: [AccessD] JWC > > > Yesterday I met the esteemed John W. Colby for the first time. We had > lunch and discussed our past lives and so on. > > I want to assure you all that his code is much more handsome than its > author. > > LOL. > Happy New Year, all! > > Arthur, king of the dorks > > > > > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Dec 30 18:29:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 30 Dec 2004 19:29:07 -0500 Subject: [AccessD] JWC In-Reply-To: <41D48503.80700@rogers.com> Message-ID: <002101c4eecf$bdb679b0$0300a8c0@ColbyM6805> I think I resemble that remark? ;-0 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, December 30, 2004 5:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] JWC Yesterday I met the esteemed John W. Colby for the first time. We had lunch and discussed our past lives and so on. I want to assure you all that his code is much more handsome than its author. LOL. Happy New Year, all! Arthur, king of the dorks > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 30 20:20:50 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 30 Dec 2004 21:20:50 -0500 Subject: [AccessD] JWC References: <002101c4eecf$bdb679b0$0300a8c0@ColbyM6805> Message-ID: ..hhhmmm ...considering how ugly some of that code has been over the years, we'd best start carrying a stick :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 30, 2004 7:29 PM Subject: RE: [AccessD] JWC >I think I resemble that remark? ;-0 > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Thursday, December 30, 2004 5:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] JWC > > > Yesterday I met the esteemed John W. Colby for the first time. We had > lunch and discussed our past lives and so on. > > I want to assure you all that his code is much more handsome than its > author. > > LOL. > Happy New Year, all! > > Arthur, king of the dorks > >> >> > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Dec 31 04:37:12 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 31 Dec 2004 11:37:12 +0100 Subject: [AccessD] JWC Message-ID: Thanks for the, ehh, warning, Arthur ... sounds like you had a great lunch time. Happy New Year to all! /gustav >>> artful at rogers.com 30-12-2004 23:45:23 >>> Yesterday I met the esteemed John W. Colby for the first time. We had lunch and discussed our past lives and so on. I want to assure you all that his code is much more handsome than its author. LOL. Happy New Year, all! Arthur, king of the dorks From BarbaraRyan at cox.net Fri Dec 31 07:30:19 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 31 Dec 2004 08:30:19 -0500 Subject: [AccessD] OT: Tsunami Relief Message-ID: <002601c4ef3c$df8c3300$0a00a8c0@cx470148a> For those wishing to donate to Tsunami Relief, here are a couple of good sites to evaluate the various charities involved in the effort. Evaluation of charities: www.give.org Forbes list of best charities: http://www.forbes.com/lists/2004/11/23/04charityland.html Some of these charities have administrative & fundraising expenses < 1% (e.g., Direct Relief and MAP Intl) Happy New Year! Barb Ryan From jwcolby at colbyconsulting.com Fri Dec 31 09:43:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 31 Dec 2004 10:43:41 -0500 Subject: [AccessD] JWC In-Reply-To: Message-ID: <000a01c4ef4f$84386600$6c01a8c0@ColbyM6805> You have NO idea! ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 30, 2004 9:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] JWC ..hhhmmm ...considering how ugly some of that code has been over the years, we'd best start carrying a stick :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 30, 2004 7:29 PM Subject: RE: [AccessD] JWC >I think I resemble that remark? ;-0 > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur > Fuller > Sent: Thursday, December 30, 2004 5:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] JWC > > > Yesterday I met the esteemed John W. Colby for the first time. We had > lunch and discussed our past lives and so on. > > I want to assure you all that his code is much more handsome than its > author. > > LOL. > Happy New Year, all! > > Arthur, king of the dorks > >> >> > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Dec 31 11:06:40 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 31 Dec 2004 12:06:40 -0500 Subject: [AccessD] JWC In-Reply-To: <000a01c4ef4f$84386600$6c01a8c0@ColbyM6805> References: <000a01c4ef4f$84386600$6c01a8c0@ColbyM6805> Message-ID: <41D58720.1030600@rogers.com> To be fair, among all this group JWC was the first to see me since I suffered a silly accident at karate class. I walked into a back roundhouse kick that I wasn't expecting -- no, to tell the truth I was expecting it but my attempt to block it missed, and now I'm missing two front teeth. So at the moment, no matter how ugly my code might be, I think I'm uglier. Happy New Year, to one and all. Arthur John W. Colby wrote: >You have NO idea! > >;-) > >John W. Colby >www.ColbyConsulting.com > > > >> >> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 12/30/2004 From tdd-inc at shaw.ca Fri Dec 31 11:16:39 2004 From: tdd-inc at shaw.ca (Technical Designs) Date: Fri, 31 Dec 2004 09:16:39 -0800 Subject: [AccessD] Creating controls on a form table data based In-Reply-To: <61F915314798D311A2F800A0C9C8318805CED98C@dibble.observatory.donnslaw.co.uk> Message-ID: <001d01c4ef5c$807e7f60$7801a8c0@cadcam> I am no expert on this, but my thinking would be... MainForm: MFID | HouseAddress... ect SubForm: which gets created every time... insert your 73 questions into subtable from a basetable SubID | MFID | Question | Answer | Comment | Required Y/N | EditQuestion Y/N Your 73 questions will be EditQuestion = False And Required = True SubForm looks like.. 1 | 1 | Floor type Kitchen | Hard Wood | minor damage | Y | N 2 | 1 | Floor type Livingroom | Carpet | Shag | Y | N ... 74 | 1 | Would I buy this house | Yes | none | N | Y you can base the 'Answer' dropdown selection if you format your questions uniformly. Example - "mat Floor Type" could select all materials from dropdown table. You can even take the first 4 letters and make them disappear You could page through the subform You can have buttons to add new records, go back to the last record you were at or where answer = Null Maybe I'm way off here, and I'm not very good at explaining things sometimes I would appreciate some constructive feedback as I am learning Thanks Happy New Year Phil -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Thursday, December 30, 2004 7:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Creating controls on a form table data based I presume you will hold the definitions for each control in a couple of tables (one for controls one for drop-downs with answer choices?) We have a system here which allows user-defined fields in a similar way. The 'controls' table looks a bit like this: Detail ID | Label | Type (Number, Text, Flag, Value) | Mandatory Y/N And for those which are type Text you can add rows to a second table to create combos: Detail ID (FK) | Code | Description I didn't design it, but even so it works OK! :P How about tabs instead of new forms? Then your users can assign each new control to a tab and keep control without you having to build new code on the fly. Good luck! Roz -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: 30 December 2004 14:47 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 31 15:01:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 31 Dec 2004 16:01:07 -0500 Subject: [AccessD] JWC In-Reply-To: <41D58720.1030600@rogers.com> Message-ID: <000b01c4ef7b$dc2d2ae0$6c01a8c0@ColbyM6805> And I was being soooo good! Although truth be known, the teeth probably wouldn't help a great deal. ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, December 31, 2004 12:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] JWC To be fair, among all this group JWC was the first to see me since I suffered a silly accident at karate class. I walked into a back roundhouse kick that I wasn't expecting -- no, to tell the truth I was expecting it but my attempt to block it missed, and now I'm missing two front teeth. So at the moment, no matter how ugly my code might be, I think I'm uglier. Happy New Year, to one and all. Arthur John W. Colby wrote: >You have NO idea! > >;-) > >John W. Colby >www.ColbyConsulting.com > > > >> >> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 12/30/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Dec 31 15:07:53 2004 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 31 Dec 2004 15:07:53 -0600 Subject: [AccessD] JWC In-Reply-To: <29277711.1104526995803.JavaMail.root@sniper21.securence.com> Message-ID: <000601c4ef7c$cb6259a0$de1811d8@danwaters> The truth be told, we ALL write beautiful code! And as Arthur said, beautiful code means, "Don't go posting your picture here!" Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, December 31, 2004 3:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] JWC And I was being soooo good! Although truth be known, the teeth probably wouldn't help a great deal. ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, December 31, 2004 12:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] JWC To be fair, among all this group JWC was the first to see me since I suffered a silly accident at karate class. I walked into a back roundhouse kick that I wasn't expecting -- no, to tell the truth I was expecting it but my attempt to block it missed, and now I'm missing two front teeth. So at the moment, no matter how ugly my code might be, I think I'm uglier. Happy New Year, to one and all. Arthur John W. Colby wrote: >You have NO idea! > >;-) > >John W. Colby >www.ColbyConsulting.com > > > >> >> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 12/30/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From william.thompson1 at att.net Wed Dec 1 01:09:47 2004 From: william.thompson1 at att.net (William Thompson) Date: Tue, 30 Nov 2004 23:09:47 -0800 Subject: [AccessD] View with dependancy used in Acc3k.adp combo box?? In-Reply-To: <027f01c4d763$9fca35a0$6501a8c0@HAL9002> Message-ID: <200412010709.iB179gL20634@databaseadvisors.com> Hi All - Does anyone know if there would be any problems stemming from using this 'View with dependancy' (for lack of a better word) as the rowsource for a combo box? - Acc3k .adp, SQL Server 2k: -- The table that holds 'parameter' is loaded from start form -- A sproc updates the table with selection before next form loads CREATE TABLE [dbo].[FYALL_YEAR_SELECTED] ( [UserName] [nvarchar] (50) NOT NULL , [User_Year_Selected] [int] NULL ) GO -- The 'dependant' view draws recordset into combo on form 2 conditioned -- upon year previously chosen in start form. ALTER VIEW vw_lkp_FYPYGroup As SELECT Group FROM FYALLGroupRef WHERE FiscalYearInteger = ((SELECT User_Year_Selected FROM FYALL_YEAR_SELECTED WHERE UserName = Suser_sname())-1) GO -- The domain table for the view CREATE TABLE [dbo].[FYALLGroupRef] ( [Group] [nvarchar] (120) NOT NULL , [FiscalYearInteger] [int] NULL ) GO Any thoughts, suggestions appreciated. Bill Thompson Washington State From andy at minstersystems.co.uk Wed Dec 1 01:28:47 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 1 Dec 2004 07:28:47 -0000 Subject: [AccessD] Which Report Event to use. and related code XP In-Reply-To: <006c01c4d736$cf3465e0$6501a8c0@delllaptop> Message-ID: <002d01c4d777$6717a760$b274d0d5@minster33c3r25> Joe You need to click into the section that that control is in. Then you'll see the OnFormat event for tht section (eg Detail) -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 30 November 2004 23:46 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Which Report Event to use. and related code XP > > > I want to set some code > > If is null [txtnotes] then > > [txtnotes].visible = false > > > > I am thinking that should go into the on format event, but I > do not see that event. This text box is part of a sub report > so it needs to check this for each row in the report. > > > > Thanks > > > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jmhla at earthlink.net Wed Dec 1 01:46:44 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 23:46:44 -0800 Subject: [AccessD] code help please Message-ID: <000201c4d779$e7c0e690$6501a8c0@delllaptop> It is almost Midnight here What is wrong with the following code please? Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As Integer) if isnull me.txtPONptes then < This is null line is the trouble maker Me.lblPONotes.Visible = False Me.txtPONptes.Visible = False End If End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From rbgajewski at adelphia.net Wed Dec 1 01:52:59 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Wed, 1 Dec 2004 02:52:59 -0500 Subject: [AccessD] code help please In-Reply-To: <000201c4d779$e7c0e690$6501a8c0@delllaptop> Message-ID: Joe What exactly is the problem (ie: what is happening that shouldn't, or what is not happening that should)? Are you getting an error message? Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Wednesday, December 01, 2004 02:47 To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] code help please It is almost Midnight here What is wrong with the following code please? Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As Integer) if isnull me.txtPONptes then < This is null line is the trouble maker Me.lblPONotes.Visible = False Me.txtPONptes.Visible = False End If End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 1 01:57:46 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 23:57:46 -0800 Subject: [AccessD] code help please In-Reply-To: Message-ID: <000301c4d77b$74c2a8c0$6501a8c0@delllaptop> It is red I am not sure why JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Tuesday, November 30, 2004 11:53 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Joe What exactly is the problem (ie: what is happening that shouldn't, or what is not happening that should)? Are you getting an error message? Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Wednesday, December 01, 2004 02:47 To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] code help please It is almost Midnight here What is wrong with the following code please? Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As Integer) if isnull me.txtPONptes then < This is null line is the trouble maker Me.lblPONotes.Visible = False Me.txtPONptes.Visible = False End If End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Dec 1 02:17:15 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 1 Dec 2004 09:17:15 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A2@stekelbes.ithelps.local> I managed to relate most labels to a textcontrol, but have still two labels that are not related. It is already an improvement because the (whole) form only flickers when moving over these 2 labels... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, December 01, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form flickers like hell in A2K3 Marty: Thanks for the heads up on this. Just came across this today at two customer sites where they put my A2K app on an A2K3 machine and the flash was really annoying. I tried a couple of things but no soap. I'll walk them through this tomorrow . Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, November 30, 2004 10:26 AM Subject: Re: [AccessD] Form flickers like hell in A2K3 > You ain't gonna believe this but if running WinXP change your theme by > right-clicking your Windows XP desktop, choosing Properties, and setting > the Theme to "Windows Classic". > If you cannot solve it by deselecting Use Windows Themed Controls on > Forms under Tools | Options | Forms/Reports in Access 2003 > The flickering or flutter goes away on my machine using Win XP Theme > Classic Access 2003 and by deselecting above option > The flickering is triggered by unattached labels on the page of a tab > control. The workaround is to convert these labels to text boxes. > For non english speakers I found this by searching on Screen Flutter > rather than Flicker. > > For full explanation. and code to correct all forms if above tools option > method doesn't work > http://members.iinet.net.au/~allenbrowne/ser-46.html > > Erwin Craps - IT Helps wrote: > >>Can anyone tell me why the form in this database flickers like hell when >>moving over the green zones or labels. >>This only in A2K3, same database same form, does not flicker in A2K2.... >> http://www.ithelps.be/temp/test.mdb >> greetz >> >> >>Erwin Craps >> >>Zaakvoerder >>www.ithelps.be/jonathan >> >> >>This E-mail is confidential, may be legally privileged, and is for the >>intended recipient only. Access, disclosure, copying, distribution, or >>reliance on any of it by anyone else is prohibited and may be a criminal >>offence. Please delete if obtained in error and E-mail confirmation to >>the sender. >> >>IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >> >>www.ithelps.be * www.boxoffice.be >> * www.stadleuven.be >> >>IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >> >>IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >>Info at ithelps.be >>Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >>Staff at boxoffice.be >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Dec 1 02:16:20 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 1 Dec 2004 08:16:20 -0000 Subject: [AccessD] code help please In-Reply-To: <000201c4d779$e7c0e690$6501a8c0@delllaptop> Message-ID: <003001c4d77e$0a319810$b274d0d5@minster33c3r25> Joe if isnull(me.txtPONptes) then IsNull is a function. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > Subject: [AccessD] code help please > > > It is almost Midnight here > What is wrong with the following code please? > > Private Sub ReportFooter_Format(Cancel As Integer, > FormatCount As Integer) > if isnull me.txtPONptes then < This is null line is the > trouble maker > Me.lblPONotes.Visible = False > Me.txtPONptes.Visible = False > End If > > End Sub > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Erwin.Craps at ithelps.be Wed Dec 1 05:11:37 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 1 Dec 2004 12:11:37 +0100 Subject: [AccessD] code help please Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A3@stekelbes.ithelps.local> I would prefer if isnull(me.txtPONptes) = true then I know there use to be a bug in one of the access versions with this "if x then" without the "= y" part. They where wrongly interpreted due to this missing operator. Some Access books advice to write the full comparison for better readability and bla bla bla... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 01, 2004 9:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code help please Joe if isnull(me.txtPONptes) then IsNull is a function. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > Subject: [AccessD] code help please > > > It is almost Midnight here > What is wrong with the following code please? > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > Integer) > if isnull me.txtPONptes then < This is null line is the > trouble maker > Me.lblPONotes.Visible = False > Me.txtPONptes.Visible = False > End If > > End Sub > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Dec 1 05:33:26 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 1 Dec 2004 06:33:26 -0500 Subject: [AccessD] Which Report Event to use. and related code XP Message-ID: If the [txtnotes] are null, then would they not be not visible by definition of null? Set the field to allow it to shrink and the section of the report containing the field to allow shrinkage and then no code is needed (?) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, November 30, 2004 6:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Which Report Event to use. and related code XP I want to set some code If is null [txtnotes] then [txtnotes].visible = false I am thinking that should go into the on format event, but I do not see that event. This text box is part of a sub report so it needs to check this for each row in the report. Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Wed Dec 1 06:25:35 2004 From: lists at theopg.com (MarkH) Date: Wed, 1 Dec 2004 12:25:35 -0000 Subject: [AccessD] Access can't save the database properties In-Reply-To: <2A261FF9D5EBCA46940C11688CE872EE03AAF4@goexchange2.pghcorning.com> Message-ID: <000f01c4d7a0$dd18b660$040d6bd5@netboxxp> Hello Guru Types :@) Not sure whats going on here at all... I have a tablet PC running Windows XP Tablet Edition and Access XP. My copy of Office etc. comes from a MS Empower subscription. Not sure if any of this is relevant but what I have found is that several of my working databases etc. have their author properties set to "norriew" and the company to "Microsoft Corp". If I try and change the properties I get a message saying Access can't save them :@( I have tried opening exclusively, without executing any code, creating a new mdb (properties reflect my own but I still can't edit them) and I have checked the security and workgroup etc. These databases were all created by me ??? Any ideas much appreciated... Cheers Mark PS - I also tried opening them from another machine across my network and got the same problem... And I searched Google and the archives :@) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From andy at minstersystems.co.uk Wed Dec 1 06:42:40 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 1 Dec 2004 13:42:40 +0100 Subject: [AccessD] code help please Message-ID: <20041201134237.A434B2571FE@smtp.nildram.co.uk> Better safe than sorry Erwin, I know, but if you're thinking of the problem of Access not shutting down correctly then according to MS this was a very specific problem: "You have code behind a subform control that references a Boolean control such as a check box on the main form, and are using an If..Then statement to implicitly test for a value of True, as shown in the following example: If Me.Parent![CheckBox] Then" See http://support.microsoft.com/default.aspx?scid=kb;en-us;190074 -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Date: 01/12/04 11:14 > > I would prefer > > if isnull(me.txtPONptes) = true then > > I know there use to be a bug in one of the access versions with this "if > x then" without the "= y" part. > They where wrongly interpreted due to this missing operator. > Some Access books advice to write the full comparison for better > readability and bla bla bla... > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 9:16 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] code help please > > Joe > > if isnull(me.txtPONptes) then > > > IsNull is a function. > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > > Sent: 01 December 2004 07:47 > > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > > Subject: [AccessD] code help please > > > > > > It is almost Midnight here > > What is wrong with the following code please? > > > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > Integer) > > if isnull me.txtPONptes then < This is null line is the > > trouble maker > > Me.lblPONotes.Visible = False > > Me.txtPONptes.Visible = False > > End If > > > > End Sub > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From bchacc at san.rr.com Wed Dec 1 08:27:15 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 1 Dec 2004 06:27:15 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: <46B976F2B698FF46A4FE7636509B22DF1B55A2@stekelbes.ithelps.local> Message-ID: <003b01c4d7b1$db931810$6501a8c0@HAL9002> Erwin: I had a couple of other problems running an A2K app in A2K3. I had the contents of a couple of text boxes on a report quit working. The Control Source for one of them is "=[Report].rptRASubRpt!txttotaldailyrate" (picks up the value from a sub-report) and it works fine in A2K but shows up blank in A2K3. So I moved it to the format event but that's a kludge. Is this a known bug? I also had a couple of dates (mm/dd/yyyy) get cut off on the right as if the display in A2K3 is bigger than A2K. Another A2K3 bug? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 01, 2004 12:17 AM Subject: RE: [AccessD] Form flickers like hell in A2K3 >I managed to relate most labels to a textcontrol, but have still two > labels that are not related. > It is already an improvement because the (whole) form only flickers when > moving over these 2 labels... > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Wednesday, December 01, 2004 6:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > Marty: > > Thanks for the heads up on this. Just came across this today at two > customer sites where they put my A2K app on an A2K3 machine and the > flash was really annoying. I tried a couple of things but no soap. > I'll walk them through this tomorrow . > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, November 30, 2004 10:26 AM > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > >> You ain't gonna believe this but if running WinXP change your theme > by >> right-clicking your Windows XP desktop, choosing Properties, and > setting >> the Theme to "Windows Classic". >> If you cannot solve it by deselecting Use Windows Themed Controls on >> Forms under Tools | Options | Forms/Reports in Access 2003 >> The flickering or flutter goes away on my machine using Win XP Theme >> Classic Access 2003 and by deselecting above option >> The flickering is triggered by unattached labels on the page of a tab >> control. The workaround is to convert these labels to text boxes. >> For non english speakers I found this by searching on Screen Flutter >> rather than Flicker. >> >> For full explanation. and code to correct all forms if above tools > option >> method doesn't work >> http://members.iinet.net.au/~allenbrowne/ser-46.html >> >> Erwin Craps - IT Helps wrote: >> >>>Can anyone tell me why the form in this database flickers like hell > when >>>moving over the green zones or labels. >>>This only in A2K3, same database same form, does not flicker in > A2K2.... >>> http://www.ithelps.be/temp/test.mdb >>> greetz >>> >>> >>>Erwin Craps >>> >>>Zaakvoerder >>>www.ithelps.be/jonathan >>> >>> >>>This E-mail is confidential, may be legally privileged, and is for the >>>intended recipient only. Access, disclosure, copying, distribution, or >>>reliance on any of it by anyone else is prohibited and may be a > criminal >>>offence. Please delete if obtained in error and E-mail confirmation to >>>the sender. >>> >>>IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >>> >>>www.ithelps.be * www.boxoffice.be >>> * www.stadleuven.be >>> >>>IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >>> >>>IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >>>Info at ithelps.be >>>Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >>>Staff at boxoffice.be >>> >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From EdTesiny at oasas.state.ny.us Wed Dec 1 08:26:58 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 1 Dec 2004 09:26:58 -0500 Subject: [AccessD] Convert text to number X posted Message-ID: Have you tried the CLng() function? Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Tuesday, November 30, 2004 9:09 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Convert text to number X posted Finally found big trap in inherited database. Foreign Key Vendor ID is set as text. I need to convert it to long number. If I change data type to number Access threatens to delete all fields. I cannot find anything in help on Cnum. All thoughts apreciated JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From EdTesiny at oasas.state.ny.us Wed Dec 1 08:31:21 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 1 Dec 2004 09:31:21 -0500 Subject: Recall: [AccessD] Convert text to number X posted Message-ID: Tesiny, Ed would like to recall the message, "[AccessD] Convert text to number X posted". From ssharkins at bellsouth.net Wed Dec 1 08:34:06 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 1 Dec 2004 09:34:06 -0500 Subject: [AccessD] RecordsAffected Property Message-ID: <20041201143429.TPVP2421.imf24aec.mail.bellsouth.net@SUSANONE> Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. From cyx5 at cdc.gov Wed Dec 1 08:48:43 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 1 Dec 2004 09:48:43 -0500 Subject: [AccessD] RecordsAffected Property Message-ID: For a Recordset-returning Command: Set recordset = command.Execute( RecordsAffected, Parameters, Options ) For a non-recordset-returning Command: command.Execute RecordsAffected, Parameters, Options -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, December 01, 2004 9:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] RecordsAffected Property Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Wed Dec 1 08:41:39 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 1 Dec 2004 09:41:39 -0500 Subject: [AccessD] RecordsAffected Property Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2866@TTNEXCHCL2.hshhp.com> I belive that's a returned value of Connection.Execute HTH Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Wednesday, December 01, 2004 9:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] RecordsAffected Property Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Gustav at cactus.dk Wed Dec 1 09:04:15 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Dec 2004 16:04:15 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: Hi Rocky Shouldn't that be: =[SubReportControlName].Report!txttotaldailyrate /gustav >>> bchacc at san.rr.com 01-12-2004 15:27:15 >>> Erwin: I had a couple of other problems running an A2K app in A2K3. I had the contents of a couple of text boxes on a report quit working. The Control Source for one of them is "=[Report].rptRASubRpt!txttotaldailyrate" (picks up the value from a sub-report) and it works fine in A2K but shows up blank in A2K3. So I moved it to the format event but that's a kludge. Is this a known bug? I also had a couple of dates (mm/dd/yyyy) get cut off on the right as if the display in A2K3 is bigger than A2K. Another A2K3 bug? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From ssharkins at bellsouth.net Wed Dec 1 09:04:14 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 1 Dec 2004 10:04:14 -0500 Subject: [AccessD] RecordsAffected Property In-Reply-To: Message-ID: <20041201150500.KGAF2443.imf18aec.mail.bellsouth.net@SUSANONE> Karen -- I'm looking for a similar property for the Command object, but thanks! I was trying to avoid the Connection object. Susan H. For a Recordset-returning Command: Set recordset = command.Execute( RecordsAffected, Parameters, Options ) For a non-recordset-returning Command: command.Execute RecordsAffected, Parameters, Options From bchacc at san.rr.com Wed Dec 1 09:23:27 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 1 Dec 2004 07:23:27 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: Message-ID: <004901c4d7b9$b4fa2330$6501a8c0@HAL9002> Gustav: That syntax works in A2K. Do you think it need to be changed for A2K3? Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Wednesday, December 01, 2004 7:04 AM Subject: Re: [AccessD] Form flickers like hell in A2K3 > Hi Rocky > > Shouldn't that be: > > =[SubReportControlName].Report!txttotaldailyrate > > /gustav > > >>>> bchacc at san.rr.com 01-12-2004 15:27:15 >>> > Erwin: > > I had a couple of other problems running an A2K app in A2K3. > > I had the contents of a couple of text boxes on a report quit working. > The > Control Source for one of them is > "=[Report].rptRASubRpt!txttotaldailyrate" > (picks up the value from a sub-report) and it works fine in A2K but > shows up > blank in A2K3. So I moved it to the format event but that's a kludge. > Is > this a known bug? > > I also had a couple of dates (mm/dd/yyyy) get cut off on the right as > if the > display in A2K3 is bigger than A2K. Another A2K3 bug? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Wed Dec 1 09:36:20 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Dec 2004 16:36:20 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: Hi Rocky I don't know, I run Access XP/2002. Your syntax just looked strange to me. /gustav >>> bchacc at san.rr.com 01-12-2004 16:23:27 >>> Gustav: That syntax works in A2K. Do you think it need to be changed for A2K3? Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Wednesday, December 01, 2004 7:04 AM Subject: Re: [AccessD] Form flickers like hell in A2K3 > Hi Rocky > > Shouldn't that be: > > =[SubReportControlName].Report!txttotaldailyrate > > /gustav > > >>>> bchacc at san.rr.com 01-12-2004 15:27:15 >>> > Erwin: > > I had a couple of other problems running an A2K app in A2K3. > > I had the contents of a couple of text boxes on a report quit working. > The > Control Source for one of them is > "=[Report].rptRASubRpt!txttotaldailyrate" > (picks up the value from a sub-report) and it works fine in A2K but > shows up > blank in A2K3. So I moved it to the format event but that's a kludge. > Is > this a known bug? > > I also had a couple of dates (mm/dd/yyyy) get cut off on the right as > if the > display in A2K3 is bigger than A2K. Another A2K3 bug? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 From handyman at actcom.co.il Wed Dec 1 12:43:29 2004 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 01 Dec 2004 20:43:29 +0200 Subject: [AccessD] sending ALT Shift Characters Message-ID: <5.1.0.14.2.20041201203721.02654ad8@pop5.actcom.net.il> Hi All, When I enter data in a certain textbox, I need to do a "Left Alt + Shift" in order to change the language from English to another language. Is there a way I can send this via code when entering the textbox, and then again when exiting the textbox. I would imagine I need to do it in the On Enter event, but how do I send the "Left Alt + Shift"? Thanks Gershon Markowitz mailto:Handyman at actcom.co.il From bchacc at san.rr.com Wed Dec 1 13:50:34 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 1 Dec 2004 11:50:34 -0800 Subject: [AccessD] sending ALT Shift Characters References: <5.1.0.14.2.20041201203721.02654ad8@pop5.actcom.net.il> Message-ID: <02a401c4d7df$05d042b0$6501a8c0@HAL9002> Gershon: Check out SendKeys. You can put it in the got focus and lost focus events of the text box. But SendKeys is not real popular. Can't remember what the problem is with it but the advice on the list has been to avoid it when possible. You'll have to get the ASCII value for "Left Alt + Shift" probably by setting Key Preview to true and displaying the value in the KeyPress or KeyDown event. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: To: Sent: Wednesday, December 01, 2004 10:43 AM Subject: [AccessD] sending ALT Shift Characters > Hi All, > > When I enter data in a certain textbox, I need to do a "Left Alt + Shift" > in order to change the language from English to another language. Is > there a way I can send this via code when entering the textbox, and then > again when exiting the textbox. I would imagine I need to do it in the On > Enter event, but how do I send the "Left Alt + Shift"? > > Thanks > > Gershon Markowitz > mailto:Handyman at actcom.co.il > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Wed Dec 1 14:31:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 1 Dec 2004 12:31:54 -0800 Subject: [AccessD] Scale the arrow on the combo box Message-ID: <002b01c4d7e4$ceb17c30$6501a8c0@delllaptop> Is there a way to scale the down arrow on the combo box to match when increase the font size? JOE HECHT LOS ANGELES CA jmhla at earthlink.net From alan.lawhon at us.army.mil Wed Dec 1 16:42:12 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Wed, 1 Dec 2004 16:42:12 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB013@redstone819.ad.redstone.army.mil> ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon - (Very Green) Web Programmer From jmoss111 at bellsouth.net Wed Dec 1 17:35:32 2004 From: jmoss111 at bellsouth.net (James Moss) Date: Wed, 1 Dec 2004 17:35:32 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NETStandard 2003 ..." Message-ID: <20041201233511.EENX2443.imf18aec.mail.bellsouth.net@jmoss3> Alan, MS was giving away copies of vs.net if you watched a few webcasts. Also, vb.net standard came bundled with my copy of VSOT. You can find some bargains on eBay occasionally like Visual Studio.net Enterprise Architect for < $100. You might want to look at Web Matrix from Microsoft which is free, at www.asp.net . Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 4:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NETStandard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon - (Very Green) Web Programmer -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Wed Dec 1 20:08:21 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 01 Dec 2004 21:08:21 -0500 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB013@redstone819.ad.redstone.army.mil> Message-ID: <41AE32C5.1397.A30F80@localhost> On 1 Dec 2004 at 16:42, Lawhon, Alan C Contractor/Mor wrote: > ... or just try to learn what I can from [VB.Net] books alone? > I would be grateful if some of the folks on this list who have > actually done some web programming (especially with VB.Net) could > offer advice and opinions with respect to the "Microsoft Visual Basic > .NET Standard 2003" [web] development tool. Basically, I'm wondering > if the "Standard" edition has enough capability to serve as a useful > "learning tool" - or is it so "crippled" that I would be better off > simply reading .NET books? If you are just interested in just a learning tool at the moment, let me suggest a .Net IDE that is free, #develop (http://sharpdevelop.net/OpenSource/SD/Default.aspx) #develop (short for SharpDevelop) is a free IDE for C# and VB.NET projects on Microsoft's .NET platform. It is open-source (GPL), and you can download both sourcecode and executables from this site. It is what I am using right now to play with VB.Net in my spare time. I didn't want to drop the $ on VS.NET or even VB.NET if I wasn't sure if I'd do any developing in it or not, so this is a great alternate for me. The only downside is that it can be a bit slow to compile, but that may be because of the laptop I'm using it on (PIII-500 256 MB RAM) Just a thought. -- Bryan Carbonnell - carbonnb at sympatico.ca I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. From jmhla at earthlink.net Wed Dec 1 20:23:12 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 1 Dec 2004 18:23:12 -0800 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." In-Reply-To: <41AE32C5.1397.A30F80@localhost> Message-ID: <000b01c4d815$df4d3b70$6501a8c0@delllaptop> Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, December 01, 2004 6:08 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." On 1 Dec 2004 at 16:42, Lawhon, Alan C Contractor/Mor wrote: > ... or just try to learn what I can from [VB.Net] books alone? > I would be grateful if some of the folks on this list who have > actually done some web programming (especially with VB.Net) could > offer advice and opinions with respect to the "Microsoft Visual Basic > .NET Standard 2003" [web] development tool. Basically, I'm wondering > if the "Standard" edition has enough capability to serve as a useful > "learning tool" - or is it so "crippled" that I would be better off > simply reading .NET books? If you are just interested in just a learning tool at the moment, let me suggest a .Net IDE that is free, #develop (http://sharpdevelop.net/OpenSource/SD/Default.aspx) #develop (short for SharpDevelop) is a free IDE for C# and VB.NET projects on Microsoft's .NET platform. It is open-source (GPL), and you can download both sourcecode and executables from this site. It is what I am using right now to play with VB.Net in my spare time. I didn't want to drop the $ on VS.NET or even VB.NET if I wasn't sure if I'd do any developing in it or not, so this is a great alternate for me. The only downside is that it can be a bit slow to compile, but that may be because of the laptop I'm using it on (PIII-500 256 MB RAM) Just a thought. -- Bryan Carbonnell - carbonnb at sympatico.ca I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Dec 1 20:38:05 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 01 Dec 2004 18:38:05 -0800 Subject: [AccessD] RE: [Accessed] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." In-Reply-To: <000b01c4d815$df4d3b70$6501a8c0@delllaptop> Message-ID: Hi Joe: I think .Net will nicely morph into the VB and Accessed lists. Everything appears to be going that way, application wise. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Wednesday, December 01, 2004 6:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, December 01, 2004 6:08 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." On 1 Dec 2004 at 16:42, Lawhon, Alan C Contractor/Mor wrote: > ... or just try to learn what I can from [VB.Net] books alone? > I would be grateful if some of the folks on this list who have > actually done some web programming (especially with VB.Net) could > offer advice and opinions with respect to the "Microsoft Visual Basic > .NET Standard 2003" [web] development tool. Basically, I'm wondering > if the "Standard" edition has enough capability to serve as a useful > "learning tool" - or is it so "crippled" that I would be better off > simply reading .NET books? If you are just interested in just a learning tool at the moment, let me suggest a .Net IDE that is free, #develop (http://sharpdevelop.net/OpenSource/SD/Default.aspx) #develop (short for SharpDevelop) is a free IDE for C# and VB.NET projects on Microsoft's .NET platform. It is open-source (GPL), and you can download both sourcecode and executables from this site. It is what I am using right now to play with VB.Net in my spare time. I didn't want to drop the $ on VS.NET or even VB.NET if I wasn't sure if I'd do any developing in it or not, so this is a great alternate for me. The only downside is that it can be a bit slow to compile, but that may be because of the laptop I'm using it on (PIII-500 256 MB RAM) Just a thought. -- Bryan Carbonnell - carbonnb at sympatico.ca I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Dec 2 01:00:19 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 01 Dec 2004 23:00:19 -0800 Subject: [AccessD] sending ALT Shift Characters References: <5.1.0.14.2.20041201203721.02654ad8@pop5.actcom.net.il> Message-ID: <41AEBD83.2050002@shaw.ca> Here is some code hooked out of a long program 'See also this article It might be of some use 'Unicode and Keyboards on Windows 'http://www.microsoft.com/globaldev/handson/dev/Unicode-KbdsonWindows.pdf 'http://www.microsoft.com/globaldev/nlsweb/default.asp?submitted=40d 'Part of the file Win32api.txt: ' ' VK_L VK_R - left and right Alt, Ctrl and Shift virtual keys. ' Used only as parameters to GetAsyncKeyState() and GetKeyState(). ' No other API or message will distinguish left and right keys in this 'way. ' / Public Const VK_LSHIFT = &HA0 Public Const VK_RSHIFT = &HA1 Public Const VK_LCONTROL = &HA2 Public Const VK_RCONTROL = &HA3 Public Const VK_LMENU = &HA4 Public Const VK_RMENU = &HA5 'What a weird name for the Alt-key. but it does use the menu Private Const VK_LWIN = &H5B 'Left window button Private Const VK_RETURN = &HD 'ENTER key Private Const VK_SHIFT = &H10 'SHIFT key Private Const VK_CONTROL = &H11 'CTRL key Private Const VK_MENU = &H12 'ALT key Private Const VK_PAUSE = &H13 'PAUSE key Private Const VK_CAPITAL = &H14 'CAPS LOCK key Private Const VK_SNAPSHOT = &H2C 'Print Screen Private Const VK_APPS = &H5D 'Applications key on a Microsoft Natural Keyboard 'from http://support.microsoft.com/view/dev.asp?kb=242971 Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Const KEYEVENTF_KEYUP = &H2 Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As Long) Sub ShiftToLanguage() 'use the following code inside form or focused window or textbox 'to simulate the Alt RightShift = key combination: ' then press and then release the AltRight RightShift key 'order of pressing important keybd_event VK_RSHIFT, 0, 0, 0 keybd_event VK_RMENU, 0, 0, 0 keybd_event VK_RMENU, 0, KEYEVENTF_KEYUP, 0 'weird things happen if you don't up the shiftkey looks like capslock 'has been left on keybd_event VK_RSHIFT, 0, KEYEVENTF_KEYUP, 0 'line below needed for Access97 ' keybd_event VK_RMENU, 0, KEYEVENTF_KEYUP, 0 Debug.Print "Right Shift" DoEvents End Sub Sub ShiftToLanguageBack() 'use the following code inside form or focused window or textbox 'to simulate the Alt RightShift = key combination: ' then press and then release the AltRight RightShift key 'order of pressing important keybd_event VK_LSHIFT, 0, 0, 0 keybd_event VK_LMENU, 0, 0, 0 keybd_event VK_LMENU, 0, KEYEVENTF_KEYUP, 0 'weird things happen if you don't up the shiftkey looks like capslock 'has been left on keybd_event VK_LSHIFT, 0, KEYEVENTF_KEYUP, 0 'line below needed for Access97 ' keybd_event VK_LMENU, 0, KEYEVENTF_KEYUP, 0 Debug.Print "Left Shift" DoEvents End Sub handyman at actcom.co.il wrote: > Hi All, > > When I enter data in a certain textbox, I need to do a "Left Alt + > Shift" in order to change the language from English to another > language. Is there a way I can send this via code when entering the > textbox, and then again when exiting the textbox. I would imagine I > need to do it in the On Enter event, but how do I send the "Left Alt + > Shift"? > > Thanks > > Gershon Markowitz > mailto:Handyman at actcom.co.il > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Dec 2 01:12:10 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 01 Dec 2004 23:12:10 -0800 Subject: [AccessD] sending ALT Shift Characters References: <5.1.0.14.2.20041201203721.02654ad8@pop5.actcom.net.il> Message-ID: <41AEC04A.60706@shaw.ca> Here is another approach, this assumes you are running with a floating multi language keyboard bar set from the control panel This works well if using multiple language keyboards, maynot work well with 97 can't remember. Switch on textbox's On Focus Public Declare Function LoadKeyboardLayout Lib "user32" Alias _ "LoadKeyboardLayoutA" (ByVal pwszKLID As String, ByVal Flags As Long) As Long Private Declare Function ActivateKeyboardLayout Lib "user32" (ByVal HKL As Long, _ ByVal Flags As Long) As Long Private Declare Function GetKeyboardLayoutName Lib "user32" Alias _ "GetKeyboardLayoutNameA" (ByVal pwszKLID As String) As Long Const KL_NAMELENGTH = 9 Sub testarabic() Dim lRet As Long lRet = LoadKeyboardLayout("00000409", 1) ' For English Debug.Print lRet lRet = ActivateKeyboardLayout("00000409", 0) Debug.Print lRet lRet = LoadKeyboardLayout("00000401", 1) ' For Arabic Debug.Print lRet lRet = ActivateKeyboardLayout("00000401", 0) Debug.Print lRet lRet = LoadKeyboardLayout("00011009", 1) ' For FrenchCanadian Debug.Print lRet lRet = ActivateKeyboardLayout("00011009", 0) Debug.Print lRet End Sub Sub resetenglish() Dim lRet As Long lRet = LoadKeyboardLayout("00000409", 1) ' For US English Debug.Print lRet lRet = ActivateKeyboardLayout("00000409", 0) Debug.Print lRet End Sub Sub whatiskeybd() Dim kbname(100) As Byte Dim strkbname As String GetKeyboardLayoutName (kbname) ' //place keyboard layout name in r strkbname = kbname Debug.Print strkbname Dim I As Long For I = 0 To 20 Debug.Print kbname(I) Next I 'Loadkeyboardlayout('00000409', KLF_ACTIVATE);//Activate US keyboard layout '//Do your stuff here 'Loadkeyboardlayout(r, KLF_ACTIVATE);// Dim strName As String 'Create a buffer strName = String(KL_NAMELENGTH, 0) 'Get the keyboard layout name GetKeyboardLayoutName strName Debug.Print "Keyboard layout name: " + strName End Sub handyman at actcom.co.il wrote: > Hi All, > > When I enter data in a certain textbox, I need to do a "Left Alt + > Shift" in order to change the language from English to another > language. Is there a way I can send this via code when entering the > textbox, and then again when exiting the textbox. I would imagine I > need to do it in the On Enter event, but how do I send the "Left Alt + > Shift"? > > Thanks > > Gershon Markowitz > mailto:Handyman at actcom.co.il > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Thu Dec 2 03:07:37 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Dec 2004 10:07:37 +0100 Subject: [AccessD] Powerpoint VBA/add-in/PPS problem Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A8@stekelbes.ithelps.local> I created a powerpoint presentation that gets his information from an Access database. every time a specific slide is shown (every 30 seconds). This serves for a movie theatre to show the actual movies, time and theatre number it will be played in, on large TFT panels that are in the income hall of the movietheatre. I managed to solve the autoexec thing I posted before, but I still have an other issue. This is what I have today. A shortcut on the desktop that runs the presentation. An powerpoint add-in makes sure code is executed that is in the presentation to initialize the database connection and run the presentation (two monitor mode). While the presentations runs I have two icons on my taskbar, one for the show and one for powerpoint. The problem is that the computer needs to be used sometimes during the show, but when the powerpoint gets activate by clicking on the taskbar icon or using ALT+TAB the show freezes. Then you need to maximize powerpoint where a toolbar has apaered with a "Continue presentation" button. I need to click this button to continue. This causes the show to stop and his is not always noticed. So I was looking for some VBA parameter that it would ignore clicks etc but it does not seam to exist... My other option is to save the ppt as a pps, this solves my click problem (and I only have one icon on the taskbar), It can only be stopped by pressing ESC, which is ecellent for me. BUT, I cant use the PPS because my add-in does not get executed and therefor will not run the code inside the add-in nor in the presentation, this is when opening the presentation with the shortcut. If I first open powerpoint and than the pps file, it does get executed. So probably the add-in does not get loaded when using a shortcut. So I'm stuck... Why is this so damme hard in Powerpoint!!! I really want to use powerpoint as the VBA base and not run the powerpoint from within access vba. So, one of the posible solutions would be a way to run the add-in or even a specific macro from the command line shortcut... But I'm open for other suggestions. The VBA documentation in Powerpoint is really lousy also on the MSDN werbsite the help is identical to the help inside Powerpoint... thx Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Erwin.Craps at ithelps.be Thu Dec 2 03:21:04 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Dec 2004 10:21:04 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A9@stekelbes.ithelps.local> The report thing I can't tell, but I believe I had some simular stuff with sub forms. But I rarely use this type of reference, I prefer dooing this from VBA, for better error control. I recall an issue with daughter/parent ID with sub forms/reports. In some access version they changed the way it can be used. In the older days you could use a fieldname that was present in the recordset but not necesarily present as a control on the subform/report. Now it needs to be present as a control on the form and the control needs to have (by preference) the same name as the field. Sometimes when dooing a copy paste the control name is not the same as the fieldname, causing a link problem between forms. For what concerns the layout, this can be due to a classical font problem between computers. If you set a specific font on this control, and you move your app to another computer, which has not the font, your font will be subsituted with another one that can have a different length... This can cause your issue, if you notice this on a different computer. If on same computer, this is probably an Access version thing... Greetz Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, December 01, 2004 3:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form flickers like hell in A2K3 Erwin: I had a couple of other problems running an A2K app in A2K3. I had the contents of a couple of text boxes on a report quit working. The Control Source for one of them is "=[Report].rptRASubRpt!txttotaldailyrate" (picks up the value from a sub-report) and it works fine in A2K but shows up blank in A2K3. So I moved it to the format event but that's a kludge. Is this a known bug? I also had a couple of dates (mm/dd/yyyy) get cut off on the right as if the display in A2K3 is bigger than A2K. Another A2K3 bug? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 01, 2004 12:17 AM Subject: RE: [AccessD] Form flickers like hell in A2K3 >I managed to relate most labels to a textcontrol, but have still two > labels that are not related. > It is already an improvement because the (whole) form only flickers when > moving over these 2 labels... > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Wednesday, December 01, 2004 6:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > Marty: > > Thanks for the heads up on this. Just came across this today at two > customer sites where they put my A2K app on an A2K3 machine and the > flash was really annoying. I tried a couple of things but no soap. > I'll walk them through this tomorrow . > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, November 30, 2004 10:26 AM > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > >> You ain't gonna believe this but if running WinXP change your theme > by >> right-clicking your Windows XP desktop, choosing Properties, and > setting >> the Theme to "Windows Classic". >> If you cannot solve it by deselecting Use Windows Themed Controls on >> Forms under Tools | Options | Forms/Reports in Access 2003 >> The flickering or flutter goes away on my machine using Win XP Theme >> Classic Access 2003 and by deselecting above option >> The flickering is triggered by unattached labels on the page of a tab >> control. The workaround is to convert these labels to text boxes. >> For non english speakers I found this by searching on Screen Flutter >> rather than Flicker. >> >> For full explanation. and code to correct all forms if above tools > option >> method doesn't work >> http://members.iinet.net.au/~allenbrowne/ser-46.html >> >> Erwin Craps - IT Helps wrote: >> >>>Can anyone tell me why the form in this database flickers like hell > when >>>moving over the green zones or labels. >>>This only in A2K3, same database same form, does not flicker in > A2K2.... >>> http://www.ithelps.be/temp/test.mdb >>> greetz >>> >>> >>>Erwin Craps >>> >>>Zaakvoerder >>>www.ithelps.be/jonathan >>> >>> >>>This E-mail is confidential, may be legally privileged, and is for the >>>intended recipient only. Access, disclosure, copying, distribution, or >>>reliance on any of it by anyone else is prohibited and may be a > criminal >>>offence. Please delete if obtained in error and E-mail confirmation to >>>the sender. >>> >>>IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >>> >>>www.ithelps.be * www.boxoffice.be >>> * www.stadleuven.be >>> >>>IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >>> >>>IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >>>Info at ithelps.be >>>Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >>>Staff at boxoffice.be >>> >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 2 03:31:03 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Dec 2004 10:31:03 +0100 Subject: [AccessD] code help please Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55AA@stekelbes.ithelps.local> Yes that was it... I know that was a specific problem, but it is this problem that made me decide to always use the full comparison in a if statement. It was also advice in some access guru books for better readability. I find myself pretty obsessed with writing easy to read and understandable code. My variable name are, for instance, pretty long so it clear for what it stands. It will make my code longer but not slower... Programming with long names does not really slow down develepmont thanks to copy/paste technology, but also a more frequent use of enums, types and classes. I dont know why, but I only (really) discovered the use of classes about a year or two ago and I'm pretty fond on using them. I more work to create them but I find the use afterwards far better and the code is much more structured. But I'm way of topic here... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 01, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Better safe than sorry Erwin, I know, but if you're thinking of the problem of Access not shutting down correctly then according to MS this was a very specific problem: "You have code behind a subform control that references a Boolean control such as a check box on the main form, and are using an If..Then statement to implicitly test for a value of True, as shown in the following example: If Me.Parent![CheckBox] Then" See http://support.microsoft.com/default.aspx?scid=kb;en-us;190074 -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Date: 01/12/04 11:14 > > I would prefer > > if isnull(me.txtPONptes) = true then > > I know there use to be a bug in one of the access versions with this "if > x then" without the "= y" part. > They where wrongly interpreted due to this missing operator. > Some Access books advice to write the full comparison for better > readability and bla bla bla... > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 9:16 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] code help please > > Joe > > if isnull(me.txtPONptes) then > > > IsNull is a function. > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe > Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers > discussion and problem solving'; 'ACCESS-L' > > Subject: [AccessD] code help please > > > It is almost > Midnight here > What is wrong with the following code please? > > > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > Integer) > > if isnull me.txtPONptes then < This is null line is the > > trouble maker > > Me.lblPONotes.Visible = False > > Me.txtPONptes.Visible = False > > End If > > > > End Sub > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Dec 2 03:25:13 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 2 Dec 2004 10:25:13 +0100 Subject: [AccessD] code help please Message-ID: <20041202102511.52E7925F243@smtp.nildram.co.uk> Agree with every word Erwin. I only wish I could curb my tendency to lapse into using a short name when I'm coding something quickly. It's such a temptation. I always mean to do a find and replace once I've finished and change all ocurrences to a longer, more meaningful name, but I often forget. Well, good to get that off my chest. I feel quite shriven. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please Date: 02/12/04 09:33 > > Yes that was it... > > I know that was a specific problem, but it is this problem that made me > decide to always use the full comparison in a if statement. It was also > advice in some access guru books for better readability. > I find myself pretty obsessed with writing easy to read and > understandable code. > > My variable name are, for instance, pretty long so it clear for what it > stands. > It will make my code longer but not slower... > Programming with long names does not really slow down develepmont thanks > to copy/paste technology, but also a more frequent use of enums, types > and classes. > > I dont know why, but I only (really) discovered the use of classes about > a year or two ago and I'm pretty fond on using them. I more work to > create them but I find the use afterwards far better and the code is > much more structured. > > But I'm way of topic here... > Erwin > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 1:43 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > Better safe than sorry Erwin, I know, but if you're thinking of the > problem of Access not shutting down correctly then according to MS this > was a very specific problem: > > "You have code behind a subform control that references a Boolean > control such as a check box on the main form, and are using an If..Then > statement to implicitly test for a value of True, as shown in the > following example: > > If Me.Parent![CheckBox] Then" > > See http://support.microsoft.com/default.aspx?scid=kb;en-us;190074 > > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] code help please > Date: 01/12/04 11:14 > > > > > I would prefer > > > > if isnull(me.txtPONptes) = true then > > > > I know there use to be a bug in one of the access versions with this > &quot;if > > x then&quot; without the &quot;= y&quot; part. > > They where wrongly interpreted due to this missing operator. > > Some Access books advice to write the full comparison for better > > readability and bla bla bla... > > > > > > > > > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > > Sent: Wednesday, December 01, 2004 9:16 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] code help please > > > > Joe > > > > if isnull(me.txtPONptes) then > > > > > > IsNull is a function. > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe > > Hecht &gt; Sent: 01 December 2004 07:47 &gt; To: 'Access Developers > > discussion and problem solving'; 'ACCESS-L' > > &gt; Subject: [AccessD] code help please &gt; &gt; &gt; It is almost > > Midnight here &gt; What is wrong with the following code please? > > &gt; > > &gt; Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > > &gt; Integer) > > &gt; if isnull me.txtPONptes then &lt; This is null line is the > > &gt; trouble maker > > &gt; Me.lblPONotes.Visible = False > > &gt; Me.txtPONptes.Visible = False > > &gt; End If > > &gt; > > &gt; End Sub > > &gt; > > &gt; JOE HECHT > > &gt; LOS ANGELES CA > > &gt; jmhla at earthlink.net > > &gt; > > &gt; > > &gt; > > &gt; -- > > &gt; _______________________________________________ > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com &gt; &gt; > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From carbonnb at sympatico.ca Thu Dec 2 04:27:25 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 02 Dec 2004 05:27:25 -0500 Subject: [AccessD] RE: [Accessed] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." In-Reply-To: References: <000b01c4d815$df4d3b70$6501a8c0@delllaptop> Message-ID: <41AEA7BD.24162.179C64@localhost> > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht > Sent: Wednesday, December 01, 2004 6:23 PM To: 'Access Developers > Should we make a vb.net list On 1 Dec 2004 at 18:38, Jim Lawrence (AccessD) wrote: > I think .Net will nicely morph into the VB and Accessed lists. > Everything appears to be going that way, application wise. I concur. -- Bryan Carbonnell - carbonnb at sympatico.ca Every time I close the door on reality it comes in through the windows. From andy at minstersystems.co.uk Thu Dec 2 06:44:15 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 2 Dec 2004 13:44:15 +0100 Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) Message-ID: <20041202134412.2877C253B49@smtp.nildram.co.uk> Posted this question on dba-Tech. If anyone here has any input I'd be grateful, but would be best if you could reply direct to me or to dba-Tech, so as not to annoy other Access-only members. ---------------------------------------- Dear all Your advice is sought. If a customer was thinking of upgrading from NT4 Server would the consensus of opinion be to go to W2003 Server or W2000 Server? I ask because he has a mix of W98 and W2K clients so is familiar with W2K and is therefore drawn to W2K Server (still just about available to buy). But it will no doubt have a shorter life than W2003 Server. So that is one point in W2003 Server's favour, but what are the other pros and cons? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From pedro at plex.nl Thu Dec 2 15:02:23 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 02 Dec 2004 15:02:23 (MET) Subject: [AccessD] several query's in one! Message-ID: <200412021402.iB2E2OPg021517@mailhostC.plex.net> Hello Group, is it possible to make one sql query for the result below. Without using several query's to come to what is need. It would save me a lot of time. i have CoorX CoorY fieldA fieldB fieldC fieldD fieldE 206210 345120 5 1 2 2 206733 345999 4 2 1 3 207999 345170 1 2 1 207452 345734 1 2 2 i need CoorX CoorY total 206500 345500 20 207500 345500 9 Thanks Pedro Janssen From Jim.Hale at FleetPride.com Thu Dec 2 09:41:29 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 2 Dec 2004 09:41:29 -0600 Subject: [AccessD] Lost records Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337276@corp-es01.fleetpride.com> I just confirmed a strange case where Access appears to have dropped records. Accounting created a one table mdb with invoice data to give to the auditors. It was copied onto a cd and given to them. The auditors couldn't tie out the numbers. Using an unmatched query I compared the table on the original with the table on the CD and found 700+ records on the original database that didn't make it to the cd. The original table had no primary key and no indexes as it was a straight port from an AS400 accounting system. I have compacted and repaired to no avail. Normally if a mdb is corrupted when copying you can tell but this copy functions perfectly. Anybody have any idea what happened? Has anyone seen anything similar? We are using Access 2000. Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Jim.Hale at FleetPride.com Thu Dec 2 09:48:57 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 2 Dec 2004 09:48:57 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337277@corp-es01.fleetpride.com> I think it may be a bit early to do that. I (for one) am very interested in Alan's adventures because I suspect many of us will face some variation of this new challenge soon. My 2 cents. Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 01, 2004 8:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From bchacc at san.rr.com Thu Dec 2 09:51:09 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 2 Dec 2004 07:51:09 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: <46B976F2B698FF46A4FE7636509B22DF1B55A9@stekelbes.ithelps.local> Message-ID: <00ac01c4d886$be2d8cd0$6501a8c0@HAL9002> I'll bet that reference thing inthe report is what's going on. So I moved the contents of that unbound control from the Control Source into VBA code behind the Format event. As for the formatting, I'm using Arial which is about as plain vanilla as it gets. But it's Access - so who knows what's going on? I'll have to take a close look next time I'm at this client site. In the meantime, I just widened the two fields that had the problem and let it go at that. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 02, 2004 1:21 AM Subject: RE: [AccessD] Form flickers like hell in A2K3 > The report thing I can't tell, but I believe I had some simular stuff > with sub forms. > But I rarely use this type of reference, I prefer dooing this from VBA, > for better error control. > I recall an issue with daughter/parent ID with sub forms/reports. > In some access version they changed the way it can be used. > > In the older days you could use a fieldname that was present in the > recordset but not necesarily present as a control on the subform/report. > > Now it needs to be present as a control on the form and the control > needs to have (by preference) the same name as the field. > Sometimes when dooing a copy paste the control name is not the same as > the fieldname, causing a link problem between forms. > > For what concerns the layout, this can be due to a classical font > problem between computers. > If you set a specific font on this control, and you move your app to > another computer, which has not the font, your font will be subsituted > with another one that can have a different length... > This can cause your issue, if you notice this on a different computer. > If on same computer, this is probably an Access version thing... > > Greetz > > Erwin > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Wednesday, December 01, 2004 3:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form flickers like hell in A2K3 > > Erwin: > > I had a couple of other problems running an A2K app in A2K3. > > I had the contents of a couple of text boxes on a report quit working. > The Control Source for one of them is > "=[Report].rptRASubRpt!txttotaldailyrate" > (picks up the value from a sub-report) and it works fine in A2K but > shows up blank in A2K3. So I moved it to the format event but that's a > kludge. Is this a known bug? > > I also had a couple of dates (mm/dd/yyyy) get cut off on the right as if > the display in A2K3 is bigger than A2K. Another A2K3 bug? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, December 01, 2004 12:17 AM > Subject: RE: [AccessD] Form flickers like hell in A2K3 > > >>I managed to relate most labels to a textcontrol, but have still two >> labels that are not related. >> It is already an improvement because the (whole) form only flickers > when >> moving over these 2 labels... >> >> Erwin >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin >> - Beach Access Software >> Sent: Wednesday, December 01, 2004 6:07 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Form flickers like hell in A2K3 >> >> Marty: >> >> Thanks for the heads up on this. Just came across this today at two >> customer sites where they put my A2K app on an A2K3 machine and the >> flash was really annoying. I tried a couple of things but no soap. >> I'll walk them through this tomorrow . >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "MartyConnelly" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, November 30, 2004 10:26 AM >> Subject: Re: [AccessD] Form flickers like hell in A2K3 >> >> >>> You ain't gonna believe this but if running WinXP change your theme >> by >>> right-clicking your Windows XP desktop, choosing Properties, and >> setting >>> the Theme to "Windows Classic". >>> If you cannot solve it by deselecting Use Windows Themed Controls on >>> Forms under Tools | Options | Forms/Reports in Access 2003 >>> The flickering or flutter goes away on my machine using Win XP Theme >>> Classic Access 2003 and by deselecting above option >>> The flickering is triggered by unattached labels on the page of a tab >>> control. The workaround is to convert these labels to text boxes. >>> For non english speakers I found this by searching on Screen Flutter >>> rather than Flicker. >>> >>> For full explanation. and code to correct all forms if above tools >> option >>> method doesn't work >>> http://members.iinet.net.au/~allenbrowne/ser-46.html >>> >>> Erwin Craps - IT Helps wrote: >>> >>>>Can anyone tell me why the form in this database flickers like hell >> when >>>>moving over the green zones or labels. >>>>This only in A2K3, same database same form, does not flicker in >> A2K2.... >>>> http://www.ithelps.be/temp/test.mdb >>>> greetz >>>> >>>> >>>>Erwin Craps >>>> >>>>Zaakvoerder >>>>www.ithelps.be/jonathan >>>> >>>> >>>>This E-mail is confidential, may be legally privileged, and is for > the >>>>intended recipient only. Access, disclosure, copying, distribution, > or >>>>reliance on any of it by anyone else is prohibited and may be a >> criminal >>>>offence. Please delete if obtained in error and E-mail confirmation > to >>>>the sender. >>>> >>>>IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >>>> >>>>www.ithelps.be * www.boxoffice.be >>>> * www.stadleuven.be >>>> >>>>IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >>>> >>>>IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >>>>Info at ithelps.be >>>>Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >>>>Staff at boxoffice.be >>>> >>>> >>> >>> -- >>> Marty Connelly >>> Victoria, B.C. >>> Canada >>> >>> >>> >>> -- >>> _______________________________________________ >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at isharp.co.uk Thu Dec 2 10:08:19 2004 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Thu, 2 Dec 2004 16:08:19 -0000 Subject: [AccessD] Importing Multiple Text Files From Specified Folder Message-ID: <668C5C868606C641857281147C468936552634@primary.orridge.co.uk> To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. From bheid at appdevgrp.com Thu Dec 2 10:14:14 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 2 Dec 2004 11:14:14 -0500 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A3F380@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBABD@ADGSERVER> While the free not-for-resale version of VB 2003 is no longer available: "Due to overwhelming demand, supplies of the complimentary Not For Resale copies of Visual Basic .NET 2003 Standard Edition* are now exhausted. Tens of thousands were claimed by developers. If you wish to explore Visual Basic .NET on a trial basis, visit the Visual Studio .NET 2003 Hosted Experience." You can still watch all of the little movies from here: http://msdn.microsoft.com/vbasic/atthemovies/ You can download all of the movies for offline viewing here: http://msdn.microsoft.com/vbasic/atthemovies/download/ Bobby From accessd at shaw.ca Thu Dec 2 10:13:23 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 02 Dec 2004 08:13:23 -0800 Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) In-Reply-To: <20041202134412.2877C253B49@smtp.nildram.co.uk> Message-ID: Hi Andy: I have installed a XP Development Server version, in my office and found it dead-easy. I would recommend at least one GB of RAM as it is a little hungry and formatting the drive first (No updating). The server hardware on which the OS was installed is an eclectic mix and has had no issues, accepted a strange group of software...from Oracle, SQL 2000, Dreamweaver suite, Adobe suite, VB Studio and MS Office, internally runs a domain, IIS and termserver and still is running without hiccups (very stable). Either OS would be just fine but XP 2003 Server is newer and should theoretically have a longer supported life. My thoughts. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, December 02, 2004 4:44 AM To: Dba Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) Posted this question on dba-Tech. If anyone here has any input I'd be grateful, but would be best if you could reply direct to me or to dba-Tech, so as not to annoy other Access-only members. ---------------------------------------- Dear all Your advice is sought. If a customer was thinking of upgrading from NT4 Server would the consensus of opinion be to go to W2003 Server or W2000 Server? I ask because he has a mix of W98 and W2K clients so is familiar with W2K and is therefore drawn to W2K Server (still just about available to buy). But it will no doubt have a shorter life than W2003 Server. So that is one point in W2003 Server's favour, but what are the other pros and cons? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Dec 2 10:28:20 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 2 Dec 2004 10:28:20 -0600 Subject: [AccessD] Importing Multiple Text Files From Specified Folder Message-ID: <100F91B31300334B89EC531C9DCB08653F6111@tccexch01.tappeconstruction.net> Dim strFile As String strFile = Dir$("c:\mypathname\*.txt") Do until strFile = "" 'File import code goes here, using strFile filename strFile = Dir$ Loop -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland (ISHARP) Sent: Thursday, December 02, 2004 10:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Importing Multiple Text Files From Specified Folder To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From paul.hartland at isharp.co.uk Thu Dec 2 10:41:53 2004 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Thu, 2 Dec 2004 16:41:53 -0000 Subject: [AccessD] Importing Multiple Text Files From Specified Folder In-Reply-To: <668C5C868606C641857281147C46893657BA4E@primary.orridge.co.uk> Message-ID: <668C5C868606C641857281147C468936552638@primary.orridge.co.uk> Thanks, I hit the send button and the obvious answer came to me...Hate it when I do that. Paul -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: 02 December 2004 16:28 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Importing Multiple Text Files From Specified Folder Dim strFile As String strFile = Dir$("c:\mypathname\*.txt") Do until strFile = "" 'File import code goes here, using strFile filename strFile = Dir$ Loop -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland (ISHARP) Sent: Thursday, December 02, 2004 10:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Importing Multiple Text Files From Specified Folder To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at afsweb.com Thu Dec 2 10:40:15 2004 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 2 Dec 2004 08:40:15 -0800 Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) In-Reply-To: <20041202134412.2877C253B49@smtp.nildram.co.uk> Message-ID: Andy, W2003 Server includes IIS6 and the .NET framework as part of the installation. It is also "more paranoid" than any of the previous NT versions. IIS5 which is included in W2K server is more forgiving which might compromise security. W2003 server also has a better implementation of Terminal Server. I use both versions. On my notebook PC which is my main development machine running on an IBM TP 900Mhz with 512Mb RAM I have W2K server. On my home PC which is my "play machine" I am running W2003 server on a P4 2.5Ghz with 512Mb RAM. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, December 02, 2004 4:44 AM To: Dba Subject: [AccessD] OT: Server versions (X-posted to dba-Tech) Posted this question on dba-Tech. If anyone here has any input I'd be grateful, but would be best if you could reply direct to me or to dba-Tech, so as not to annoy other Access-only members. ---------------------------------------- Dear all Your advice is sought. If a customer was thinking of upgrading from NT4 Server would the consensus of opinion be to go to W2003 Server or W2000 Server? I ask because he has a mix of W98 and W2K clients so is familiar with W2K and is therefore drawn to W2K Server (still just about available to buy). But it will no doubt have a shorter life than W2003 Server. So that is one point in W2003 Server's favour, but what are the other pros and cons? -- Andy Lacey http://www.minstersystems.co.uk ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cfoust at infostatsystems.com Thu Dec 2 10:42:54 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 08:42:54 -0800 Subject: [AccessD] RE: [Accessed] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Message-ID: I work in VB.Net. I don't agree that it fits well in either VB or Access lists because it is quite different from either. On the other hand, I doubt that there are enough of us developing professionally in VB.Net right now to supplant either list, so why not just let it find its own place. If enough .Net questions get posted in either list, we'll know where it belongs. One thing to think about, though, is that database development in VB.Net is just as different from non-database application development as it was in VB6. The database questions will probably always belong in a database list. Charlotte Foust -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Thursday, December 02, 2004 2:27 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] RE: [Accessed] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht > Sent: Wednesday, December 01, 2004 6:23 PM To: 'Access Developers > Should we make a vb.net list On 1 Dec 2004 at 18:38, Jim Lawrence (AccessD) wrote: > I think .Net will nicely morph into the VB and Accessed lists. > Everything appears to be going that way, application wise. I concur. -- Bryan Carbonnell - carbonnb at sympatico.ca Every time I close the door on reality it comes in through the windows. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Thu Dec 2 10:46:15 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 2 Dec 2004 11:46:15 -0500 Subject: [AccessD] Importing Multiple Text Files From Specified Folder Message-ID: Paul, Do you have access to the 97 ADH? I believe there were several class modules that could handle your situation. I use: Line class from Chapter 5 Lines class from Chapter 5 TextFile class from Chapter 5 Mark -----Original Message----- From: Paul Hartland (ISHARP) [mailto:paul.hartland at isharp.co.uk] Sent: Thursday, December 02, 2004 11:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Importing Multiple Text Files From Specified Folder To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at afsweb.com Thu Dec 2 10:49:37 2004 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 2 Dec 2004 08:49:37 -0800 Subject: [AccessD] Importing Multiple Text Files From Specified Folder In-Reply-To: <668C5C868606C641857281147C468936552634@primary.orridge.co.uk> Message-ID: Here's sample code from one of my apps... Usage: ImportLogs "DirectoryName" where DirectoryName is any constant that represents the ImportSpec/Folder combination. ImportSpec needs to be defined and build before using. If you don't need to use different import specifications then you can do away with the strDir parameter and Select statement processing. '------------------------------------- Function ImportLogs(strDir As String) as String Dim searchFile As String Dim resultString As String Dim fileCounter As Integer Dim messageString As String Dim strTextFileName As String Dim myFileName As String Dim strTableName As String Dim strLocation As String Dim strImportSpec As String Dim strSearchFileSpec As String strTableName = "PutYourTableNameHere" Select Case strDir Case "DIR1" strLocation = "C:\DATA\FOLDER1\" & strSearchFileSpec strImportSpec = "ImportSpec1" Case "DIR2" strLocation = "C:\DATA\FOLDER2\" & strSearchFileSpec strImportSpec = "ImportSpec2" Case "DIR3" strLocation = "C:\DATA\FOLDER3\" & strSearchFileSpec strImportSpec = "ImportSpec3" End Select fileCounter = 0 searchFile = Dir(strLocation) If searchFile <> "" Then fileCounter = 1 resultString = searchFile & vbCrLf End If Do While searchFile <> "" searchFile = Dir If searchFile <> "" Then fileCounter = fileCounter + 1 resultString = resultString & searchFile & vbCrLf strTextFileName = strLocation & searchFile DoCmd.TransferText acImportDelim, strImportSpec, strTableName, strTextFileName End If Loop If fileCounter = 0 Then messageString = "No files found" Else messageString = "Found " & fileCounter & " file/s named:" _ & vbCrLf & resultString End If ImportLogs = messageString End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Paul Hartland (ISHARP) Sent: Thursday, December 02, 2004 8:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Importing Multiple Text Files From Specified Folder To all, I have a folder with around 100+ text files thaht I need to import into a single table in an access database, is there anyway I can loop through all files with a .txt extension and automatically import them one by one into my table.... Thanks in advance for any help, suggesstions & sample code etc PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cfoust at infostatsystems.com Thu Dec 2 10:53:07 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 08:53:07 -0800 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NETStandard 2003 ..." Message-ID: Buy it. You'll discover that all the training (I used the AppDev CBT training) and books you use are no substitute for getting your hands dirty by trying to build something. One recommendation is that you find books on *database* programming with VB.Net and get very, very comfortable with classes if you aren't already. Plan the project assemblies out ahead of time and build a vertical slice of the application, top to bottom to test out the plan and establish your conventions. That also gives you a chance to test out the third party controls you'll want to use. We're using Infragistics controls and ActiveReports and have been very happy with both. Oh, and turn on Option Strict. That makes it even more challenging to follow the examples in books where it isn't turned on. I learned a lot having to translate the book code to handle Option Strict on. PS/ Get MZ-Tools 4.0, which is an indispensable part of my toolkit in .Net. There's even an enterprise version that allows you to share naming conventions and templates with your team. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Wednesday, December 01, 2004 2:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NETStandard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon - (Very Green) Web Programmer -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 2 11:00:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 09:00:39 -0800 Subject: [AccessD] RecordsAffected Property Message-ID: RecordsAffected is an optional argument of the Execute function. So Cnn.Execute(strSQL,lngRecsAffected) will give you what you want. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, December 01, 2004 6:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] RecordsAffected Property Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 2 11:04:34 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 09:04:34 -0800 Subject: [AccessD] code help please Message-ID: IsNull returns a boolean value, so it isn't necessary to make an explicit comparison to avoid Access hangups. I generally write long code for readability too (in spite of my boss, who complains that I complicate it), but since IsNull seems pretty self-evident to me, I wouldn't bother in this case. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, December 01, 2004 3:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please I would prefer if isnull(me.txtPONptes) = true then I know there use to be a bug in one of the access versions with this "if x then" without the "= y" part. They where wrongly interpreted due to this missing operator. Some Access books advice to write the full comparison for better readability and bla bla bla... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 01, 2004 9:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code help please Joe if isnull(me.txtPONptes) then IsNull is a function. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > Subject: [AccessD] code help please > > > It is almost Midnight here > What is wrong with the following code please? > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > Integer) > if isnull me.txtPONptes then < This is null line is the > trouble maker > Me.lblPONotes.Visible = False > Me.txtPONptes.Visible = False > End If > > End Sub > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 2 11:33:50 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 2 Dec 2004 12:33:50 -0500 Subject: [AccessD] code help please Message-ID: Which still begs the question, if it is null, it will not be visible. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 02, 2004 12:05 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please IsNull returns a boolean value, so it isn't necessary to make an explicit comparison to avoid Access hangups. I generally write long code for readability too (in spite of my boss, who complains that I complicate it), but since IsNull seems pretty self-evident to me, I wouldn't bother in this case. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, December 01, 2004 3:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] code help please I would prefer if isnull(me.txtPONptes) = true then I know there use to be a bug in one of the access versions with this "if x then" without the "= y" part. They where wrongly interpreted due to this missing operator. Some Access books advice to write the full comparison for better readability and bla bla bla... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 01, 2004 9:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code help please Joe if isnull(me.txtPONptes) then IsNull is a function. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 01 December 2004 07:47 > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > Subject: [AccessD] code help please > > > It is almost Midnight here > What is wrong with the following code please? > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > Integer) > if isnull me.txtPONptes then < This is null line is the > trouble maker > Me.lblPONotes.Visible = False > Me.txtPONptes.Visible = False > End If > > End Sub > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Dec 2 11:55:09 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 2 Dec 2004 17:55:09 -0000 Subject: [AccessD] code help please In-Reply-To: Message-ID: <000001c4d898$10487870$b274d0d5@minster33c3r25> Karen I'm thinking that its label will be though, so while making the text box invisible may be a bit unnecessary the IsNull test itself is still valid. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Nicholson, Karen > Sent: 02 December 2004 17:34 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > Which still begs the question, if it is null, it will not be visible. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Thursday, December 02, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > IsNull returns a boolean value, so it isn't necessary to make > an explicit comparison to avoid Access hangups. I generally > write long code for readability too (in spite of my boss, who > complains that I complicate it), but since IsNull seems > pretty self-evident to me, I wouldn't bother in this case. > > Charlotte Foust > > > -----Original Message----- > From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] > Sent: Wednesday, December 01, 2004 3:12 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > I would prefer > > if isnull(me.txtPONptes) = true then > > I know there use to be a bug in one of the access versions > with this "if x then" without the "= y" part. They where > wrongly interpreted due to this missing operator. Some Access > books advice to write the full comparison for better > readability and bla bla bla... > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 9:16 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] code help please > > Joe > > if isnull(me.txtPONptes) then > > > IsNull is a function. > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > > Sent: 01 December 2004 07:47 > > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > > Subject: [AccessD] code help please > > > > > > It is almost Midnight here > > What is wrong with the following code please? > > > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > Integer) > > if isnull me.txtPONptes then < This is null line is the > > trouble maker > > Me.lblPONotes.Visible = False > > Me.txtPONptes.Visible = False > > End If > > > > End Sub > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Gustav at cactus.dk Thu Dec 2 12:18:44 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Dec 2004 19:18:44 +0100 Subject: [AccessD] several query's in one! Message-ID: Hi Pedro Guess you could do something like this: SELECT (CoorX \ 1000) * 1000 + 500 AS CoorX0, (CoorY \ 1000) * 1000 + 500 AS CoorY0, IIF(FieldA Is Null, 0, FieldA) + ... + IIF(FieldE Is Null, 0, FieldE) AS Total FROM tblCoor GROUP BY (CoorX \ 1000) * 1000 + 500, (CoorY \ 1000) * 1000 + 500; /gustav >>> pedro at plex.nl 02-12-2004 15:02:23 >>> Hello Group, is it possible to make one sql query for the result below. Without using several query's to come to what is need. It would save me a lot of time. i have CoorX CoorY fieldA fieldB fieldC fieldD fieldE 206210 345120 5 1 2 2 206733 345999 4 2 1 3 207999 345170 1 2 1 207452 345734 1 2 2 i need CoorX CoorY total 206500 345500 20 207500 345500 9 From Gustav at cactus.dk Thu Dec 2 12:20:49 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Dec 2004 19:20:49 +0100 Subject: [AccessD] several query's in one! Message-ID: Hi Pedro Guess you could do something like this: SELECT (CoorX \ 1000) * 1000 + 500 AS CoorX0, (CoorY \ 1000) * 1000 + 500 AS CoorY0, SUM(IIF(FieldA Is Null, 0, FieldA) + ... + IIF(FieldE Is Null, 0, FieldE)) AS Total FROM tblCoor GROUP BY (CoorX \ 1000) * 1000 + 500, (CoorY \ 1000) * 1000 + 500; /gustav >>> pedro at plex.nl 02-12-2004 15:02:23 >>> Hello Group, is it possible to make one sql query for the result below. Without using several query's to come to what is need. It would save me a lot of time. i have CoorX CoorY fieldA fieldB fieldC fieldD fieldE 206210 345120 5 1 2 2 206733 345999 4 2 1 3 207999 345170 1 2 1 207452 345734 1 2 2 i need CoorX CoorY total 206500 345500 20 207500 345500 9 From pjewett at bayplace.com Thu Dec 2 12:26:15 2004 From: pjewett at bayplace.com (Phil Jewett) Date: Thu, 2 Dec 2004 10:26:15 -0800 Subject: [AccessD] Monthly Calendar Message-ID: Tis the season for printing family calendars, and here is a little A2K mdb I made that prints monthly calendars with pictures at the top. Just enter your image filenames in the table and run the one report (no fancy controls). http://www.bayplace.com/access/monthlycalendar.zip Phil Jewett Phil Jewett Consulting http://www.bayplace.com/pjcons email: info at bayplace.com (619) 318-4899 From markamatte at hotmail.com Thu Dec 2 12:36:06 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 02 Dec 2004 18:36:06 +0000 Subject: [AccessD] several query's in one! In-Reply-To: <200412021402.iB2E2OPg021517@mailhostC.plex.net> Message-ID: Pedro, This doesn't take into account NULLS and assuming you were just taking the first 3 digits of CoorX and Y...then adding 500 to the end...you could use something like: ********************** SELECT Left([CoorX],3) & "500" AS X, Left([CoorY],3) & "500" AS Y, Sum([fieldA]+[fieldB]+[fieldC]+[fieldD]+[fieldE]) AS Total FROM tblData GROUP BY Left([CoorX],3) & "500", Left([CoorY],3) & "500" WITH OWNERACCESS OPTION; ****************** ...and you output would look like: X Y Total 206500 345500 20 207500 345500 9 Hope this helps... Thanks, Mark A. Matte >From: pedro at plex.nl >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] several query's in one! >Date: Thu, 02 Dec 2004 15:02:23 (MET) > >Hello Group, > >is it possible to make one sql query for the result below. Without using >several query's to come to what is need. It would save me a lot of time. > >i have > >CoorX CoorY fieldA fieldB fieldC fieldD >fieldE >206210 345120 5 1 2 >2 >206733 345999 4 2 1 >3 >207999 345170 1 2 1 >207452 345734 1 2 2 > > > >i need > >CoorX CoorY total >206500 345500 20 >207500 345500 9 > > >Thanks > >Pedro Janssen > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 2 12:37:18 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 2 Dec 2004 13:37:18 -0500 Subject: [AccessD] code help please Message-ID: I think what was happening is that the field is on the report and it is not set to grow and shrink, or the section it is in is not growing or shrinking. Or, I think the question would have been regarding the label control and not the text field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, December 02, 2004 12:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code help please Karen I'm thinking that its label will be though, so while making the text box invisible may be a bit unnecessary the IsNull test itself is still valid. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Nicholson, Karen > Sent: 02 December 2004 17:34 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > Which still begs the question, if it is null, it will not be visible. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Thursday, December 02, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > IsNull returns a boolean value, so it isn't necessary to make > an explicit comparison to avoid Access hangups. I generally > write long code for readability too (in spite of my boss, who > complains that I complicate it), but since IsNull seems > pretty self-evident to me, I wouldn't bother in this case. > > Charlotte Foust > > > -----Original Message----- > From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] > Sent: Wednesday, December 01, 2004 3:12 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] code help please > > > I would prefer > > if isnull(me.txtPONptes) = true then > > I know there use to be a bug in one of the access versions > with this "if x then" without the "= y" part. They where > wrongly interpreted due to this missing operator. Some Access > books advice to write the full comparison for better > readability and bla bla bla... > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 01, 2004 9:16 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] code help please > > Joe > > if isnull(me.txtPONptes) then > > > IsNull is a function. > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > > Sent: 01 December 2004 07:47 > > To: 'Access Developers discussion and problem solving'; 'ACCESS-L' > > Subject: [AccessD] code help please > > > > > > It is almost Midnight here > > What is wrong with the following code please? > > > > Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As > > Integer) > > if isnull me.txtPONptes then < This is null line is the > > trouble maker > > Me.lblPONotes.Visible = False > > Me.txtPONptes.Visible = False > > End If > > > > End Sub > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Dec 2 13:55:48 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 2 Dec 2004 14:55:48 -0500 Subject: [AccessD] RecordsAffected Property In-Reply-To: Message-ID: <20041202195557.HXYI2382.imf23aec.mail.bellsouth.net@SUSANONE> OK, that worked with the Command object. Thanks Charlotte. Susan H. RecordsAffected is an optional argument of the Execute function. So Cnn.Execute(strSQL,lngRecsAffected) will give you what you want. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, December 01, 2004 6:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] RecordsAffected Property Does the ADO Command object have a property similar to DAO's RecordsAffected (Connection object)? I'm looking but not finding anything. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Thu Dec 2 13:59:33 2004 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 2 Dec 2004 15:59:33 -0400 Subject: [AccessD] How do I programatically see if a field exists in table. If not add it? In-Reply-To: References: Message-ID: <3bf43ee9041202115974503750@mail.gmail.com> Hi I have a an A97 db and am trying to write some code to check to see if field exists. If it does not I need it added. Right now I am lost. Please help. CODE THUS FAR: If tdfChiz.Fields("dump").Name = "dump" Then AppendDeleteField tdfChiz, "DELETE", "dump" AppendDeleteField tdfChiz, "APPEND", "dump", dbBoolean Else AppendDeleteField tdfChiz, "APPEND", "dump", dbBoolean End If If the field "dump" does not exist right now I get an error telling as such. I don't need an error message I need the field added if it does not exist :) BTW AppendDeleteField is a function I got from the help menu. It works fine in case you are wondering. Thanks BL From boogieloogie at gmail.com Thu Dec 2 14:25:32 2004 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 2 Dec 2004 16:25:32 -0400 Subject: [AccessD] Re: How do I programatically see if a field exists in table. If not add it? In-Reply-To: <3bf43ee9041202115974503750@mail.gmail.com> References: <3bf43ee9041202115974503750@mail.gmail.com> Message-ID: <3bf43ee904120212254a923725@mail.gmail.com> cancel my request. I messed with it and found the problem I had dim fld as Fields when I should have had dim fld as field DOH BL On Thu, 2 Dec 2004 15:59:33 -0400, Boogie Loogie wrote: > Hi > > I have a an A97 db and am trying to write some code to check to see if > field exists. If it does not I need it added. Right now I am lost. > Please help. > > CODE THUS FAR: > > If tdfChiz.Fields("dump").Name = "dump" Then > AppendDeleteField tdfChiz, "DELETE", "dump" > AppendDeleteField tdfChiz, "APPEND", "dump", dbBoolean > Else > AppendDeleteField tdfChiz, "APPEND", "dump", dbBoolean > End If > > If the field "dump" does not exist right now I get an error telling as > such. I don't need an error message I need the field added if it does > not exist :) > > BTW AppendDeleteField is a function I got from the help menu. It works > fine in case you are wondering. > > Thanks > > BL > From jwcolby at colbyconsulting.com Thu Dec 2 14:26:21 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 02 Dec 2004 15:26:21 -0500 Subject: [AccessD] Nice laptop cheap! In-Reply-To: <3bf43ee9041202115974503750@mail.gmail.com> Message-ID: <003801c4d8ad$33187840$e8dafea9@ColbyM6805> Folks, I bought the Emachines (Gateway) m5405 laptop from BestBuy for my wife for Christmas. They have it on sale for $950, plus if purchased before 12/4 there are two mail in rebates for $150 and $50 (200 total rebates) making the machine $750 + tax (on $950). The machine specs: eMachines M5405 Specifications CPU: Mobile AMD SempronT 2800+ Processor Operates at 1.6GHz 256KB L2 Cache Operating System: MicrosoftR WindowsR XP Home Edition 1 Memory: 512 MB DDR (PC 2700) Hard Drive: 60 GB HDD 2 Optical Drives: DVD/CD-RW Combo (CD-read 24x; CD-write 24x; CD-rewrite 24x; DVD-read 8x) Video: SiS M760 Ultra 256 Graphics UMA 64 MB (shared) Video Memory Sound: AC '97 Audio Built-in Stereo Speakers Modem: 56K ITU V.92 Fax/Modem Network: Integrated 802.11g Wireless LAN, 10/100Mbps built-in Ethernet Dimensions: 1.36"h x 14.0"w x 10.0"d Internet: AOL Membership Included (Additional phone charges may apply. Click here for details.) Ports/Other: 3 USB 2.0 ports, 1 IEEE 1394, 1 VGA external connector, Microphone In, Line Out, PCMCIA Slot (Card Bus type I and type II) Pre-Installed Software: MicrosoftR WindowsR XP Home Edition, Microsoft Works 8.0 1, Microsoft Money 2004, Encarta Online, AdobeR AcrobatR ReaderT, Power DVD, Microsoft Media Player, Real Player, Internet Explorer, Norton AntiVirus 2004 (90 day complimentary subscription) This is a NICE machine, not a gaming machine obviously but plenty for the student, wife, or the developer on a budget (me?). It can accept a sodimm in an exposed slot (which already has a 254mb sodimm in it) up to 1 gbyte. If you need a laptop or are looking to buy one for a present for someone, CHECK IT OUT. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From alan.lawhon at us.army.mil Thu Dec 2 14:49:53 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Thu, 2 Dec 2004 14:49:53 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB01C@redstone819.ad.redstone.army.mil> Jim: To say that we're just a bit "nervous" about this upcoming "adventure" is a vast understatement. The senior systems analyst, (who has never wrote a line of "web enabled" code in his life), is in the process of figuring out how to "curb" our customer's expectations - and simultaneously manage our "stress level" - while the senior programmer and I get "up to speed" on HTML, XML, ADO.NET, VB.NET, and whatever else we'll have to learn. (Our Senior Systems Analyst is a firm proponent of the theory that you should "manage your customer" [and your customer's expectations] rather than having your customer manage you ...) If we have to go "full bore" and web enable the entire system, we're looking at a massive conversion project - and we have to keep the live production database going full steam while we're doing this. George thinks he can persuade our customer to go along with "web enabling" a small part of the overall system - the "Approval Module" as kind of a "pilot project" - and then evaluating the feasibility of converting the rest of the system after we have successfully completed the pilot project. He thinks he can get our customer to agree to a 2-3 month development schedule for the pilot project. This means that Roy and I (the Senior Programmer) are going to have to learn a bunch of "web stuff" real quick. (I've already sent off for several VB.NET and ADO.NET books from Amazon.Com.) Charlotte Foust mentioned that she actually has some real experience with VB.NET and web programming. I wonder how long it took her to get "up to speed" (and proficient) with these technologies? I read somewhere about some poor unfortunate programmers who got dragged on a "death march" and had to churn out a lot of code real fast. I don't think it will get that bad here, but I suspect I'm going to be chewing on Roll-Aids in the coming months. Martha, a very sharp lady friend I know, likes to say, "Alan, think of this as an opportunity to excel!" Yea, right. Alan C. Lawhon -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at FleetPride.com] Sent: Thursday, December 02, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." I think it may be a bit early to do that. I (for one) am very interested in Alan's adventures because I suspect many of us will face some variation of this new challenge soon. My 2 cents. Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 01, 2004 8:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net From cfoust at infostatsystems.com Thu Dec 2 15:19:41 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 2 Dec 2004 13:19:41 -0800 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Message-ID: >>Charlotte Foust mentioned that she actually has some real experience with VB.NET and web programming. I wonder how long it took her to get "up to speed" (and proficient) with these technologies? LOL Who says I'm up to speed and proficient? I'm learning every day, but fortunately we hired a guy who is more experienced in dot net, so we're playing leap frog as we go along--earn while you learn time. We have a small web-based app that is a companion product to one of our Access apps and he and I are working on porting the next version of the Access app to VB.Net, with a whole new interface. It helps that I spent a lot of time programming in ADO and using classes before I had to dive into dot net. That gave me a big leg up. I would have hated trying to learn dot net without the prior experience of building and using class objects and working with ADO, the shift in paradigms would have been a killer. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Thursday, December 02, 2004 12:50 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: To say that we're just a bit "nervous" about this upcoming "adventure" is a vast understatement. The senior systems analyst, (who has never wrote a line of "web enabled" code in his life), is in the process of figuring out how to "curb" our customer's expectations - and simultaneously manage our "stress level" - while the senior programmer and I get "up to speed" on HTML, XML, ADO.NET, VB.NET, and whatever else we'll have to learn. (Our Senior Systems Analyst is a firm proponent of the theory that you should "manage your customer" [and your customer's expectations] rather than having your customer manage you ...) From pedro at plex.nl Thu Dec 2 15:27:46 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 2 Dec 2004 22:27:46 +0100 Subject: [AccessD] several query's in one! References: Message-ID: <002801c4d8b6$6d20a540$f6c581d5@pedro> Hello Gustav, Thanks for your help. Everytime when i have a "difficult" query you keep amazing me by having the answer. Compliments, for me you are the real sql guru. Pedro Janssen ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 02, 2004 7:20 PM Subject: Re: [AccessD] several query's in one! > Hi Pedro > > Guess you could do something like this: > > SELECT > (CoorX \ 1000) * 1000 + 500 AS CoorX0, > (CoorY \ 1000) * 1000 + 500 AS CoorY0, > SUM(IIF(FieldA Is Null, 0, FieldA) + ... + IIF(FieldE Is Null, 0, > FieldE)) AS Total > FROM > tblCoor > GROUP BY > (CoorX \ 1000) * 1000 + 500, > (CoorY \ 1000) * 1000 + 500; > > /gustav > > > >>> pedro at plex.nl 02-12-2004 15:02:23 >>> > Hello Group, > > is it possible to make one sql query for the result below. Without > using several query's to come to what is need. It would save me a lot of > time. > > i have > > CoorX CoorY fieldA fieldB fieldC fieldD > fieldE > 206210 345120 5 1 2 > 2 > 206733 345999 4 2 1 > 3 > 207999 345170 1 2 1 > 207452 345734 1 2 2 > > i need > > CoorX CoorY total > 206500 345500 20 > 207500 345500 9 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Jim.Hale at FleetPride.com Thu Dec 2 16:10:49 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 2 Dec 2004 16:10:49 -0600 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233727B@corp-es01.fleetpride.com> Didn't Lee tell Picket something similar before his cavalry charge at Gettysburg? :-( I hope you keep us posted as you wrestle with this since I am trying to figure out an appropriate upgrade path for (smaller) apps. Good luck! Jim Hale -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Thursday, December 02, 2004 2:50 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Jim: To say that we're just a bit "nervous" about this upcoming "adventure" is a vast understatement. The senior systems analyst, (who has never wrote a line of "web enabled" code in his life), is in the process of figuring out how to "curb" our customer's expectations - and simultaneously manage our "stress level" - while the senior programmer and I get "up to speed" on HTML, XML, ADO.NET, VB.NET, and whatever else we'll have to learn. (Our Senior Systems Analyst is a firm proponent of the theory that you should "manage your customer" [and your customer's expectations] rather than having your customer manage you ...) If we have to go "full bore" and web enable the entire system, we're looking at a massive conversion project - and we have to keep the live production database going full steam while we're doing this. George thinks he can persuade our customer to go along with "web enabling" a small part of the overall system - the "Approval Module" as kind of a "pilot project" - and then evaluating the feasibility of converting the rest of the system after we have successfully completed the pilot project. He thinks he can get our customer to agree to a 2-3 month development schedule for the pilot project. This means that Roy and I (the Senior Programmer) are going to have to learn a bunch of "web stuff" real quick. (I've already sent off for several VB.NET and ADO.NET books from Amazon.Com.) Charlotte Foust mentioned that she actually has some real experience with VB.NET and web programming. I wonder how long it took her to get "up to speed" (and proficient) with these technologies? I read somewhere about some poor unfortunate programmers who got dragged on a "death march" and had to churn out a lot of code real fast. I don't think it will get that bad here, but I suspect I'm going to be chewing on Roll-Aids in the coming months. Martha, a very sharp lady friend I know, likes to say, "Alan, think of this as an opportunity to excel!" Yea, right. Alan C. Lawhon -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at FleetPride.com] Sent: Thursday, December 02, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." I think it may be a bit early to do that. I (for one) am very interested in Alan's adventures because I suspect many of us will face some variation of this new challenge soon. My 2 cents. Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 01, 2004 8:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Should we make a vb.net list JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From kaupca at chevrontexaco.com Thu Dec 2 16:33:55 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 2 Dec 2004 16:33:55 -0600 Subject: [AccessD] Sum a union query Message-ID: <1375769556091B4DAABC159F944CA1BB07A301@bocnte2k4.hou150.chevrontexaco.net> Can I do this in a union query? Generates error of no aggregate function for ACTVDATE. Select ACTVDATE, Sum(Exp1), Sum(Exp2) From (SELECT ACTVDATE, Sum(VOLUME_SS) as Exp1, Sum([VOLUME_SS])*0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) and ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE ORDER BY ACTVDATE UNION SELECT ACTVDATE, Sum([VOLUME_SS]*-1)as Exp1, Sum([VOLUME_SS])*-0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 and ACTVDATE>=#10/1/2004#) GROUP BY ACTVDATE ORDER BY ACTVDATE; Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From KP at sdsonline.net Thu Dec 2 16:44:35 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 3 Dec 2004 09:44:35 +1100 Subject: [AccessD] Monthly Calendar References: Message-ID: <006d01c4d8c0$801692e0$6401a8c0@user> Nice one Phil - thanks for sharing! Kath ----- Original Message ----- From: Phil Jewett To: accessd at databaseadvisors.com Sent: Friday, December 03, 2004 5:26 AM Subject: [AccessD] Monthly Calendar Tis the season for printing family calendars, and here is a little A2K mdb I made that prints monthly calendars with pictures at the top. Just enter your image filenames in the table and run the one report (no fancy controls). http://www.bayplace.com/access/monthlycalendar.zip Phil Jewett Phil Jewett Consulting http://www.bayplace.com/pjcons email: info at bayplace.com (619) 318-4899 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Thu Dec 2 16:33:07 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 2 Dec 2004 23:33:07 +0100 Subject: [AccessD] several query's in one! References: Message-ID: <00c201c4d8c0$bccba680$f6c581d5@pedro> Hello Mark, thanks for your answer. I already used the sql that Gustav send me, tested it and it worked fine. Nevertheless Thanks Pedro Janssen ----- Original Message ----- From: "Mark A Matte" To: Sent: Thursday, December 02, 2004 7:36 PM Subject: RE: [AccessD] several query's in one! > Pedro, > > This doesn't take into account NULLS and assuming you were just taking the > first 3 digits of CoorX and Y...then adding 500 to the end...you could use > something like: > > ********************** > SELECT Left([CoorX],3) & "500" AS X, Left([CoorY],3) & "500" AS Y, > Sum([fieldA]+[fieldB]+[fieldC]+[fieldD]+[fieldE]) AS Total > FROM tblData > GROUP BY Left([CoorX],3) & "500", Left([CoorY],3) & "500" > WITH OWNERACCESS OPTION; > ****************** > ...and you output would look like: > X Y Total > 206500 345500 20 > 207500 345500 9 > > Hope this helps... > > Thanks, > > Mark A. Matte > > > >From: pedro at plex.nl > >Reply-To: Access Developers discussion and problem > >solving > >To: accessd at databaseadvisors.com > >Subject: [AccessD] several query's in one! > >Date: Thu, 02 Dec 2004 15:02:23 (MET) > > > >Hello Group, > > > >is it possible to make one sql query for the result below. Without using > >several query's to come to what is need. It would save me a lot of time. > > > >i have > > > >CoorX CoorY fieldA fieldB fieldC fieldD > >fieldE > >206210 345120 5 1 2 > >2 > >206733 345999 4 2 1 > >3 > >207999 345170 1 2 1 > >207452 345734 1 2 2 > > > > > > > >i need > > > >CoorX CoorY total > >206500 345500 20 > >207500 345500 9 > > > > > >Thanks > > > >Pedro Janssen > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pcs at azizaz.com Thu Dec 2 20:01:01 2004 From: pcs at azizaz.com (Borge Hansen) Date: Fri, 3 Dec 2004 12:01:01 +1000 Subject: [AccessD] CheckDate? References: <20041103073920.69473.qmail@web61106.mail.yahoo.com> Message-ID: <005f01c4d8db$f116b090$fa10a8c0@Albatross> Hi, amazing how inexhaustible this subject is.... I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid entry etc.... If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 When I test for a valid date in the beforeupdate event using IsDate() it tests on the 4 Dec 1932 value .... What am I doing wrong here? Or rather : how do I catch obvious incorrect entries like 32 Dec 04 using IsDate() before Access let them slip through? Currently I test entry in text control box on the validation rule property: >=#1/01/2001# Hmmmm.... Regards Borge ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 5:39 PM Subject: Re: [AccessD] CheckDate? > Gustav Brock wrote: > Hi Sander > > > However, I added some extra checks to rule out 'impossible dates' > > like 29,30 or 31 februari, 31 november, etc. > > Well, that's the point - IsDate() checks that as well! > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > /gustav --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 From tom.bolton at donnslaw.co.uk Fri Dec 3 03:09:51 2004 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Fri, 3 Dec 2004 09:09:51 -0000 Subject: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Message-ID: <61F915314798D311A2F800A0C9C83188064332A3@dibble.observatory.donnslaw.co.uk> ADO and classes are exactly what you need! .NET is 'proper' OO, and it forces you to think that way, so any leg-up you give yourself by trying to write re-usable code in VBA will be a great help. Once you get into .NET, it makes a LOT of sense. Just don't do what I did and try and find 'Recordset' in your ADO.NET manual. ;-) -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 02 December 2004 21:20 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." >>Charlotte Foust mentioned that she actually has some real experience with VB.NET and web programming. I wonder how long it took her to get "up to speed" (and proficient) with these technologies? LOL Who says I'm up to speed and proficient? I'm learning every day, but fortunately we hired a guy who is more experienced in dot net, so we're playing leap frog as we go along--earn while you learn time. We have a small web-based app that is a companion product to one of our Access apps and he and I are working on porting the next version of the Access app to VB.Net, with a whole new interface. It helps that I spent a lot of time programming in ADO and using classes before I had to dive into dot net. That gave me a big leg up. I would have hated trying to learn dot net without the prior experience of building and using class objects and working with ADO, the shift in paradigms would have been a killer. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Thursday, December 02, 2004 12:50 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: To say that we're just a bit "nervous" about this upcoming "adventure" is a vast understatement. The senior systems analyst, (who has never wrote a line of "web enabled" code in his life), is in the process of figuring out how to "curb" our customer's expectations - and simultaneously manage our "stress level" - while the senior programmer and I get "up to speed" on HTML, XML, ADO.NET, VB.NET, and whatever else we'll have to learn. (Our Senior Systems Analyst is a firm proponent of the theory that you should "manage your customer" [and your customer's expectations] rather than having your customer manage you ...) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From Gustav at cactus.dk Fri Dec 3 05:08:14 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 12:08:14 +0100 Subject: [AccessD] several query's in one! Message-ID: Thanks Pedro, only glad to help. Perhaps I should note again - but it cannot be said too often - that this list is my primary learning source. /gustav >>> pedro at plex.nl 02-12-2004 22:27:46 >>> Hello Gustav, Thanks for your help. Everytime when i have a "difficult" query you keep amazing me by having the answer. Compliments, for me you are the real sql guru. Pedro Janssen From Gustav at cactus.dk Fri Dec 3 05:37:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 12:37:50 +0100 Subject: [AccessD] CheckDate? Message-ID: Hi Borge Well, the problem is that IsDate() and CDate() don't care for "likely dates" only possible dates which date strings formatted as yy/mm/dd certainly are. If you need dates within a certain time frame, you'll have to check that on your own as you already have done. You could also, in the BeforeUpdate event, check for Day(strDate) = Val(strDate) or, for our US formatted friends: Month(strDate) = Val(strDate) /gustav >>> pcs at azizaz.com 03-12-2004 03:01:01 >>> Hi, amazing how inexhaustible this subject is.... I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid entry etc.... If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 When I test for a valid date in the beforeupdate event using IsDate() it tests on the 4 Dec 1932 value .... What am I doing wrong here? Or rather : how do I catch obvious incorrect entries like 32 Dec 04 using IsDate() before Access let them slip through? Currently I test entry in text control box on the validation rule property: >=#1/01/2001# Hmmmm.... Regards Borge ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 5:39 PM Subject: Re: [AccessD] CheckDate? > Gustav Brock wrote: > Hi Sander > > > However, I added some extra checks to rule out 'impossible dates' > > like 29,30 or 31 februari, 31 november, etc. > > Well, that's the point - IsDate() checks that as well! > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > /gustav From Gustav at cactus.dk Fri Dec 3 06:02:06 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 13:02:06 +0100 Subject: [AccessD] Sum a union query Message-ID: Hi Chester Seems like a Group By is missing. And sorting isn't needed. Also note UNION ALL. Try this: SELECT ACTVDATE, Sum(Exp1), Sum(Exp2) FROM (SELECT ACTVDATE, Sum(VOLUME_SS) AS Exp1, Sum([VOLUME_SS])*0.335849 AS Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) AND ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE UNION ALL SELECT ACTVDATE, Sum([VOLUME_SS]*-1) AS Exp1, Sum([VOLUME_SS])*-0.335849 AS Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 AND ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE) GROUP BY ACTVDATE ORDER BY ACTVDATE; /gustav >>> kaupca at chevrontexaco.com 02-12-2004 23:33:55 >>> Can I do this in a union query? Generates error of no aggregate function for ACTVDATE. Select ACTVDATE, Sum(Exp1), Sum(Exp2) From (SELECT ACTVDATE, Sum(VOLUME_SS) as Exp1, Sum([VOLUME_SS])*0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) and ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE ORDER BY ACTVDATE UNION SELECT ACTVDATE, Sum([VOLUME_SS]*-1)as Exp1, Sum([VOLUME_SS])*-0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 and ACTVDATE>=#10/1/2004#) GROUP BY ACTVDATE ORDER BY ACTVDATE; Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 From Mark.Mitsules at ngc.com Fri Dec 3 07:39:37 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 3 Dec 2004 08:39:37 -0500 Subject: [AccessD] Migration from XP to 2003 Message-ID: Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark From Gustav at cactus.dk Fri Dec 3 08:33:01 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 15:33:01 +0100 Subject: [AccessD] CheckDate? Message-ID: Here is a more general approach: With Me!txtDate Cancel = Val(.Text) <> Val(Format(.Text, Nz(.Format, "Short Date"))) End With /gustav >>> Gustav at cactus.dk 03-12-2004 12:37:50 >>> Hi Borge Well, the problem is that IsDate() and CDate() don't care for "likely dates" only possible dates which date strings formatted as yy/mm/dd certainly are. If you need dates within a certain time frame, you'll have to check that on your own as you already have done. You could also, in the BeforeUpdate event, check for Day(strDate) = Val(strDate) or, for our US formatted friends: Month(strDate) = Val(strDate) /gustav >>> pcs at azizaz.com 03-12-2004 03:01:01 >>> Hi, amazing how inexhaustible this subject is.... I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid entry etc.... If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 When I test for a valid date in the beforeupdate event using IsDate() it tests on the 4 Dec 1932 value .... What am I doing wrong here? Or rather : how do I catch obvious incorrect entries like 32 Dec 04 using IsDate() before Access let them slip through? Currently I test entry in text control box on the validation rule property: >=#1/01/2001# Hmmmm.... Regards Borge ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 5:39 PM Subject: Re: [AccessD] CheckDate? > Gustav Brock wrote: > Hi Sander > > > However, I added some extra checks to rule out 'impossible dates' > > like 29,30 or 31 februari, 31 november, etc. > > Well, that's the point - IsDate() checks that as well! > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > /gustav From paulb at rtctech.com Fri Dec 3 09:11:02 2004 From: paulb at rtctech.com (Paul Baumann) Date: Fri, 3 Dec 2004 09:11:02 -0600 Subject: [AccessD] How to access the print dialog box? Message-ID: <5068EFF1BA3C1D4485B77CEC1CBBAAD52CFDA3@farley.rtctech.com> Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul From kaupca at chevrontexaco.com Fri Dec 3 09:24:47 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Fri, 3 Dec 2004 09:24:47 -0600 Subject: [AccessD] Sum a union query Message-ID: <1375769556091B4DAABC159F944CA1BB07A307@bocnte2k4.hou150.chevrontexaco.net> Works perfect. Thanks Group. Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 03, 2004 6:02 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Sum a union query Hi Chester Seems like a Group By is missing. And sorting isn't needed. Also note UNION ALL. Try this: SELECT ACTVDATE, Sum(Exp1), Sum(Exp2) FROM (SELECT ACTVDATE, Sum(VOLUME_SS) AS Exp1, Sum([VOLUME_SS])*0.335849 AS Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) AND ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE UNION ALL SELECT ACTVDATE, Sum([VOLUME_SS]*-1) AS Exp1, Sum([VOLUME_SS])*-0.335849 AS Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 AND ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE) GROUP BY ACTVDATE ORDER BY ACTVDATE; /gustav >>> kaupca at chevrontexaco.com 02-12-2004 23:33:55 >>> Can I do this in a union query? Generates error of no aggregate function for ACTVDATE. Select ACTVDATE, Sum(Exp1), Sum(Exp2) From (SELECT ACTVDATE, Sum(VOLUME_SS) as Exp1, Sum([VOLUME_SS])*0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO IN (605954,605955,605956,425030) and ACTVDATE>=#10/1/2004# GROUP BY ACTVDATE ORDER BY ACTVDATE UNION SELECT ACTVDATE, Sum([VOLUME_SS]*-1)as Exp1, Sum([VOLUME_SS])*-0.335849 as Exp2 FROM T9CAT_GAS_MTR_READINGS WHERE GASMTRIDNO=605957 and ACTVDATE>=#10/1/2004#) GROUP BY ACTVDATE ORDER BY ACTVDATE; Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Dec 3 09:22:41 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 3 Dec 2004 10:22:41 -0500 Subject: [AccessD] How to access the print dialog box? Message-ID: Right click on the report as you are viewing it? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Baumann Sent: Friday, December 03, 2004 10:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to access the print dialog box? Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paulb at rtctech.com Fri Dec 3 09:50:33 2004 From: paulb at rtctech.com (Paul Baumann) Date: Fri, 3 Dec 2004 09:50:33 -0600 Subject: [AccessD] How to access the print dialog box? Message-ID: <5068EFF1BA3C1D4485B77CEC1CBBAAD52CFDA5@farley.rtctech.com> I am sorry, I should have been more specific...I would like to display the printer dialog when printing a report from code so that the user could then select a printer other than the default printer or perhaps print to a file. Paul -----Original Message----- From: Paul Baumann Sent: Friday, December 03, 2004 9:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to access the print dialog box? Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul From CMackin at quiznos.com Fri Dec 3 09:53:25 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Fri, 3 Dec 2004 08:53:25 -0700 Subject: [AccessD] How to access the print dialog box? Message-ID: Docmd.RunCommand accmdPrint should do it, open the report in Preview mode and then add that as the next line. You can also make a custom toolbar that takes the File->Print button and makes that available. There are a lot of good solutions to this one. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Paul Baumann Sent: Friday, December 03, 2004 8:51 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How to access the print dialog box? I am sorry, I should have been more specific...I would like to display the printer dialog when printing a report from code so that the user could then select a printer other than the default printer or perhaps print to a file. Paul -----Original Message----- From: Paul Baumann Sent: Friday, December 03, 2004 9:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to access the print dialog box? Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Dec 3 10:08:51 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 3 Dec 2004 11:08:51 -0500 Subject: [AccessD] How to access the print dialog box? Message-ID: Here is a public function that I use to call: Public Function PrintOut() ' Use the RunCommand method to display the print dialog box. On Error GoTo ErrorTrap DoCmd.RunCommand acCmdPrint Exit Function ErrorTrap: ' Check whether the RunCommand method was canceled. ' If RunCommand is canceled, it generates a trappable run-time error (2501). If Err.Number = 2501 Then Exit Function Else MsgBox Err.Number & vbCrLf & Err.Description End If End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Baumann Sent: Friday, December 03, 2004 10:51 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How to access the print dialog box? I am sorry, I should have been more specific...I would like to display the printer dialog when printing a report from code so that the user could then select a printer other than the default printer or perhaps print to a file. Paul -----Original Message----- From: Paul Baumann Sent: Friday, December 03, 2004 9:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to access the print dialog box? Could someone tell me how to bring up the printer selection dialog box when printing a report from access? Thanks in advance. Paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 3 10:28:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 03 Dec 2004 11:28:29 -0500 Subject: [AccessD] Mappoint and Access Message-ID: <006b01c4d955$23851bb0$e8dafea9@ColbyM6805> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From Gustav at cactus.dk Fri Dec 3 10:53:37 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Dec 2004 17:53:37 +0100 Subject: [AccessD] Mappoint and Access Message-ID: Hi John Marty posted this a couple of years ago: How to call MapPoint from Access, Word or Excel http://www.mp2kmag.com/articles.asp?ArticleID=39 Where did MapPoint 2000 Come From? http://www.mp2kmag.com/articles.asp?ArticleID=3 /gustav >>> jwcolby at colbyconsulting.com 03-12-2004 17:28:29 >>> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? From DWUTKA at marlow.com Fri Dec 3 10:53:25 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 3 Dec 2004 10:53:25 -0600 Subject: [AccessD] Mappoint and Access Message-ID: <123701F54509D9119A4F00D0B747349016D0F3@main2.marlow.com> Talk to Mike Mattys. Drew -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, December 03, 2004 10:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Mappoint and Access Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.mattys at adelphia.net Fri Dec 3 11:44:09 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Fri, 3 Dec 2004 12:44:09 -0500 Subject: [AccessD] Mappoint and Access References: <006b01c4d955$23851bb0$e8dafea9@ColbyM6805> Message-ID: <029201c4d95f$b22116d0$6401a8c0@default> John, If you want to try your hand at it, you need to visit Eric Frost's www.mp2kmag.com and read through the articles and forums. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com (Hasn't been updated for 2 yrs, too busy!!!) ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 03, 2004 11:28 AM Subject: [AccessD] Mappoint and Access > Does anyone have any experience automating mappoint using Access. I have a > client that wants to "staff contracts", and in order to do that they want to > visualize distances between the person's home address and the work address. > They also want to do things like ask mappoint to calculate distance / drive > time between a work address and a set of people home addresses, then hand > back to Access the data so that Access can display the data in a report > sorted on drive time / distance. > > Stuff like that. > > Does anyone have code that does this kind of stuff, or know of a web site or > user's group that I could go look at to start boning up on this stuff? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dw-murphy at cox.net Fri Dec 3 11:47:30 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 3 Dec 2004 09:47:30 -0800 Subject: [AccessD] Mappoint and Access In-Reply-To: <006b01c4d955$23851bb0$e8dafea9@ColbyM6805> Message-ID: <000001c4d960$2c224df0$8500a8c0@murphyf3vdfepi> John, Take a look at "Enhancing your application with GIS mapping technology" at http://www.augsd.org/sampleapps/AUGSD_GIS.zip. Mike Dwyer gave this presentation to the Access Users Group of San Diego last June. It may answer some of your questions. The examples Mike gave used Map Point. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, December 03, 2004 8:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Mappoint and Access Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 3 11:53:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 03 Dec 2004 12:53:40 -0500 Subject: [AccessD] Mappoint and Access In-Reply-To: Message-ID: <006f01c4d961$0a551620$e8dafea9@ColbyM6805> Gustav, Thanks, that first link had code (working SIMPLE database) for mapping two points. COOL STUFF! The entire code is a single function of maybe 60 lines. And it WORKS! Well, I will have to poke around and see if I can read the distance calculations directly from an object property. It gives me the typical driving directions though so if worst comes to worst, I can just paste that to get the info I need. You da man! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 03, 2004 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mappoint and Access Hi John Marty posted this a couple of years ago: How to call MapPoint from Access, Word or Excel http://www.mp2kmag.com/articles.asp?ArticleID=39 Where did MapPoint 2000 Come From? http://www.mp2kmag.com/articles.asp?ArticleID=3 /gustav >>> jwcolby at colbyconsulting.com 03-12-2004 17:28:29 >>> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Dec 3 13:01:23 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 03 Dec 2004 11:01:23 -0800 Subject: [AccessD] Mappoint and Access References: <006b01c4d955$23851bb0$e8dafea9@ColbyM6805> Message-ID: <41B0B803.9060508@shaw.ca> You used to be able to screen scrape MapBlast site for this info, but Microsoft bought them up 3 or 4 years ago. You could also use the MS webservice site, so much per 1000 transactions rather than purchasing multiple copies of mappoint. Just don't forget all the oddities that will affect travel time. Here is an extreme one. To drive from Vancouver to Victoria the distance is only 60 miles, the actual driving time is an hour and twenty minutes However the total travel time is well over 3 hours due to the hour and half ferry ride. Then you have to switch your watch back 40 years to island time. MapPoint doesn't take these things into account John W. Colby wrote: >Does anyone have any experience automating mappoint using Access. I have a >client that wants to "staff contracts", and in order to do that they want to >visualize distances between the person's home address and the work address. >They also want to do things like ask mappoint to calculate distance / drive >time between a work address and a set of people home addresses, then hand >back to Access the data so that Access can display the data in a report >sorted on drive time / distance. > >Stuff like that. > >Does anyone have code that does this kind of stuff, or know of a web site or >user's group that I could go look at to start boning up on this stuff? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Marty Connelly Victoria, B.C. Canada From cyx5 at cdc.gov Fri Dec 3 13:02:32 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 3 Dec 2004 14:02:32 -0500 Subject: [AccessD] Writing a Book...Martin Reid and Susan H --- Message-ID: NOT ME!!! My co worker... how did you go about putting together your book deal? (Nice book, by the way). He is a Documentum guru among other things. You can e me offine.. From cfoust at infostatsystems.com Fri Dec 3 13:19:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 3 Dec 2004 11:19:50 -0800 Subject: [AccessD] Mappoint and Access Message-ID: >>However the total travel time is well over 3 hours due to the hour and half ferry ride. Then you have to switch your watch back 40 years to island time. MapPoint doesn't take these things into Account LOL Well, it IS Friday ... Charlotte Foust -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Friday, December 03, 2004 11:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mappoint and Access You used to be able to screen scrape MapBlast site for this info, but Microsoft bought them up 3 or 4 years ago. You could also use the MS webservice site, so much per 1000 transactions rather than purchasing multiple copies of mappoint. Just don't forget all the oddities that will affect travel time. Here is an extreme one. To drive from Vancouver to Victoria the distance is only 60 miles, the actual driving time is an hour and twenty minutes However the total travel time is well over 3 hours due to the hour and half ferry ride. Then you have to switch your watch back 40 years to island time. MapPoint doesn't take these things into account From Subscriptions at servicexp.com Fri Dec 3 16:13:24 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Fri, 3 Dec 2004 17:13:24 -0500 Subject: [AccessD] Mappoint and Access In-Reply-To: <006f01c4d961$0a551620$e8dafea9@ColbyM6805> Message-ID: Sent you a working example to your personal e-mail. Have Fun..... Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, December 03, 2004 12:54 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Mappoint and Access Gustav, Thanks, that first link had code (working SIMPLE database) for mapping two points. COOL STUFF! The entire code is a single function of maybe 60 lines. And it WORKS! Well, I will have to poke around and see if I can read the distance calculations directly from an object property. It gives me the typical driving directions though so if worst comes to worst, I can just paste that to get the info I need. You da man! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 03, 2004 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mappoint and Access Hi John Marty posted this a couple of years ago: How to call MapPoint from Access, Word or Excel http://www.mp2kmag.com/articles.asp?ArticleID=39 Where did MapPoint 2000 Come From? http://www.mp2kmag.com/articles.asp?ArticleID=3 /gustav >>> jwcolby at colbyconsulting.com 03-12-2004 17:28:29 >>> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Fri Dec 3 19:01:03 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 3 Dec 2004 17:01:03 -0800 Subject: [AccessD] Migration from XP to 2003 In-Reply-To: Message-ID: <200412040100.iB410xL05279@databaseadvisors.com> Mark, Can you at least map multiple drives and simulate going across network? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, December 03, 2004 5:40 AM To: [AccessD] Subject: [AccessD] Migration from XP to 2003 Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Helmut.E.Kotsch at t-online.de Fri Dec 3 23:13:50 2004 From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) Date: Sat, 4 Dec 2004 06:13:50 +0100 Subject: AW: [AccessD] Mappoint and Access In-Reply-To: Message-ID: Bob, I would like to also have some Fun.... Could you please send me also a copy of your working example. Thanks in advance. Helmut mailto: Helmut.E.Kotsch at T-Online.de -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Robert Gracie Gesendet: Freitag, 3. Dezember 2004 23:13 An: 'Access Developers discussion and problem solving' Betreff: RE: [AccessD] Mappoint and Access Sent you a working example to your personal e-mail. Have Fun..... Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, December 03, 2004 12:54 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Mappoint and Access Gustav, Thanks, that first link had code (working SIMPLE database) for mapping two points. COOL STUFF! The entire code is a single function of maybe 60 lines. And it WORKS! Well, I will have to poke around and see if I can read the distance calculations directly from an object property. It gives me the typical driving directions though so if worst comes to worst, I can just paste that to get the info I need. You da man! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 03, 2004 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mappoint and Access Hi John Marty posted this a couple of years ago: How to call MapPoint from Access, Word or Excel http://www.mp2kmag.com/articles.asp?ArticleID=39 Where did MapPoint 2000 Come From? http://www.mp2kmag.com/articles.asp?ArticleID=3 /gustav >>> jwcolby at colbyconsulting.com 03-12-2004 17:28:29 >>> Does anyone have any experience automating mappoint using Access. I have a client that wants to "staff contracts", and in order to do that they want to visualize distances between the person's home address and the work address. They also want to do things like ask mappoint to calculate distance / drive time between a work address and a set of people home addresses, then hand back to Access the data so that Access can display the data in a report sorted on drive time / distance. Stuff like that. Does anyone have code that does this kind of stuff, or know of a web site or user's group that I could go look at to start boning up on this stuff? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Sat Dec 4 00:13:05 2004 From: pcs at azizaz.com (Borge Hansen) Date: Sat, 4 Dec 2004 16:13:05 +1000 Subject: [AccessD] CheckDate? References: Message-ID: <001501c4d9c8$516f45f0$fa10a8c0@Albatross> Hi Gustav, Thanks man, also for going the extra step and supplying a more general approach. I've been playing around with this and I've got to stop..... I've found - in line with what you said -, that when you are using a two digit year entry, as long as MS Access can interpret this as a possible date it will, and there's no general way to stop it from doing that. At least, I have found no way to catch the following scenario in a general way: Two digit year format entry of the following format : d mmm yy - where you have input like 32 Dec 04 or 35 Dec 04 or other in this context 'mistyped entries' Only by limiting valid date entries like : >=#1/1/1950# for example When User enters an (obvious?) invalid(?) date entry like 32 Dec 04 MA Access appears to be thinking "..Ok, let' see the first part can be neither a date nor a month so .... now lets have a look at the last part of this variant type of thing just to check if the poor bugger has been using the four digit format... oh no! - well, good! we use the first part as year and we'll disregard the fact that also the last part could be interpreted as the year with an consequently incorrect date entry .... we'll just frustrate the fellow and give him 4/12/1932 .... and alright, if he insists on displaying month as ddd, we'll return him with a 4 Dec 1932 .... no problerma..... Let's just hope the poor fellow is going to use this unbound text box as a parameter in a sql string, and we can mess with him a bit further..... wish we could see his face when he discovers that such an sql string - since he obviously is not a "mm dd yy" type of person - will turn into 12 March 1932 .... ha, ha ... that'll teach the hominid a lesson!" So, Gustav I'm back with testing for >=#1/01/2001# Regards Borge PS Hmmm, also come to think of it MS Access interprets 32 Dec 04 as 4/12/1932 (using format, year or cdate function) - why not 4/12/2032 ?? ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 04, 2004 12:33 AM Subject: Re: [AccessD] CheckDate? > Here is a more general approach: > > With Me!txtDate > Cancel = Val(.Text) <> Val(Format(.Text, Nz(.Format, "Short > Date"))) > End With > > /gustav > > >>> Gustav at cactus.dk 03-12-2004 12:37:50 >>> > Hi Borge > > Well, the problem is that IsDate() and CDate() don't care for "likely > dates" only possible dates which date strings formatted as yy/mm/dd > certainly are. > If you need dates within a certain time frame, you'll have to check > that on your own as you already have done. > > You could also, in the BeforeUpdate event, check for > > Day(strDate) = Val(strDate) > > or, for our US formatted friends: > > Month(strDate) = Val(strDate) > > /gustav > > >>> pcs at azizaz.com 03-12-2004 03:01:01 >>> > Hi, amazing how inexhaustible this subject is.... > > I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy > > If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid > entry > etc.... > > If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 > > When I test for a valid date in the beforeupdate event using IsDate() > it > tests on the 4 Dec 1932 value .... > > What am I doing wrong here? > > Or rather : how do I catch obvious incorrect entries like 32 Dec 04 > using > IsDate() before Access let them slip through? > > Currently I test entry in text control box on the validation rule > property: > >=#1/01/2001# > Hmmmm.... > > Regards > Borge > > ----- Original Message ----- > From: "S D" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, November 03, 2004 5:39 PM > Subject: Re: [AccessD] CheckDate? > > > Gustav Brock wrote: > > Hi Sander > > > > > However, I added some extra checks to rule out 'impossible dates' > > > like 29,30 or 31 februari, 31 november, etc. > > > > Well, that's the point - IsDate() checks that as well! > > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > > > /gustav > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From stuart at lexacorp.com.pg Sat Dec 4 00:26:52 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 04 Dec 2004 16:26:52 +1000 Subject: [AccessD] CheckDate? In-Reply-To: <001501c4d9c8$516f45f0$fa10a8c0@Albatross> Message-ID: <41B1E54C.16096.E39C332@lexacorp.com.pg> On 4 Dec 2004 at 16:13, Borge Hansen wrote: > Hmmm, also come to think of it MS Access interprets 32 Dec 04 as 4/12/1932 > (using format, year or cdate function) - why not 4/12/2032 ?? > Because the Windows default century for two digit dates is 1930-2029. You can set it to whatever you like under Control Panel - Regional Options - Date. -- Stuart From Gustav at cactus.dk Sat Dec 4 06:08:20 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 04 Dec 2004 13:08:20 +0100 Subject: [AccessD] CheckDate? Message-ID: Hi Borge First, have in mind that what to one looks like a crazy date may be perfectly valid for others. mm/dd/yyyy is crazy for most people outside the US; yyyy-mm-dd is an ISO standard, is the preferred format in Sweden and (I think) Japan and an accepted format in Denmark, and in Java and SAP DB (Max DB) the preferred date format. Also, it is by no doubt the most logical: yyyymmddhhnnss ... Second, one should apply any validation rule needed or useful as you do. For most accounting systems, for example, you normally are allowed to type in dates within the current fiscal year only except for statistics, of course. Third, my suggestion will only catch those inputs which are in direct contrast with what might be intended. If you format your textbox to "dd mmm yy" it _will_ catch the example you mention, 34 dec 04. Regard it as a "silent inputmask". Finally, one method to get rid of all this completely, is to use three juxtaposed textboxes, one for day, one for month and one for the year. Then you are in complete control. It even adds the possibility to let the user type in the day only using default values for month and year, or type digits only; you can't do that when using one textbox only. Many accounting systems accept the 6-digit compressed date format ddmmyy (and variations hereof) for minimal typing. Unfortunately Access does not. /gustav >>> pcs at azizaz.com 04-12-2004 07:13:05 >>> Hi Gustav, Thanks man, also for going the extra step and supplying a more general approach. I've been playing around with this and I've got to stop..... I've found - in line with what you said -, that when you are using a two digit year entry, as long as MS Access can interpret this as a possible date it will, and there's no general way to stop it from doing that. At least, I have found no way to catch the following scenario in a general way: Two digit year format entry of the following format : d mmm yy - where you have input like 32 Dec 04 or 35 Dec 04 or other in this context 'mistyped entries' Only by limiting valid date entries like : >=#1/1/1950# for example When User enters an (obvious?) invalid(?) date entry like 32 Dec 04 MA Access appears to be thinking "..Ok, let' see the first part can be neither a date nor a month so .... now lets have a look at the last part of this variant type of thing just to check if the poor bugger has been using the four digit format... oh no! - well, good! we use the first part as year and we'll disregard the fact that also the last part could be interpreted as the year with an consequently incorrect date entry .... we'll just frustrate the fellow and give him 4/12/1932 .... and alright, if he insists on displaying month as ddd, we'll return him with a 4 Dec 1932 .... no problerma..... Let's just hope the poor fellow is going to use this unbound text box as a parameter in a sql string, and we can mess with him a bit further..... wish we could see his face when he discovers that such an sql string - since he obviously is not a "mm dd yy" type of person - will turn into 12 March 1932 .... ha, ha ... that'll teach the hominid a lesson!" So, Gustav I'm back with testing for >=#1/01/2001# Regards Borge PS Hmmm, also come to think of it MS Access interprets 32 Dec 04 as 4/12/1932 (using format, year or cdate function) - why not 4/12/2032 ?? ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 04, 2004 12:33 AM Subject: Re: [AccessD] CheckDate? > Here is a more general approach: > > With Me!txtDate > Cancel = Val(.Text) <> Val(Format(.Text, Nz(.Format, "Short > Date"))) > End With > > /gustav > > >>> Gustav at cactus.dk 03-12-2004 12:37:50 >>> > Hi Borge > > Well, the problem is that IsDate() and CDate() don't care for "likely > dates" only possible dates which date strings formatted as yy/mm/dd > certainly are. > If you need dates within a certain time frame, you'll have to check > that on your own as you already have done. > > You could also, in the BeforeUpdate event, check for > > Day(strDate) = Val(strDate) > > or, for our US formatted friends: > > Month(strDate) = Val(strDate) > > /gustav > > >>> pcs at azizaz.com 03-12-2004 03:01:01 >>> > Hi, amazing how inexhaustible this subject is.... > > I have an unbound textcontrol formatted dd mmm yyyy or dd mmm yy > > If I enter 32 Dec 2004 Access will cut in and tell me: Not a valid entry > etc.... > > If I enter 32 Dec 04 - Access interprets as 4 Dec 1932 > > When I test for a valid date in the beforeupdate event using IsDate() it > tests on the 4 Dec 1932 value .... > > What am I doing wrong here? > > Or rather : how do I catch obvious incorrect entries like 32 Dec 04 using > IsDate() before Access let them slip through? > > Currently I test entry in text control box on the validation rule > property: > >=#1/01/2001# > Hmmmm.... > > Regards > Borge > > ----- Original Message ----- > From: "S D" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, November 03, 2004 5:39 PM > Subject: Re: [AccessD] CheckDate? > > > Gustav Brock wrote: > > Hi Sander > > > > > However, I added some extra checks to rule out 'impossible dates' > > > like 29,30 or 31 februari, 31 november, etc. > > > > Well, that's the point - IsDate() checks that as well! > > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > > > /gustav From d.dick at uws.edu.au Sun Dec 5 20:38:13 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 6 Dec 2004 13:38:13 +1100 Subject: [AccessD] A2003: Checking for dupe phone numbers Message-ID: <200412060238.iB62cQx6019393@cooper.uws.edu.au> Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren From d.dick at uws.edu.au Sun Dec 5 20:52:55 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 6 Dec 2004 13:52:55 +1100 Subject: [AccessD] FW: A2003: Checking for dupe phone numbers Message-ID: <200412060253.iB62r8x6001258@cooper.uws.edu.au> Never mind - found a function to do it Dunno who wrote (wasn't me:-)) Apologies to whoever did - Can't give 'em credit Function OnlyNumbers(text) As String 'Removes ANYTHING that does not fall into 0-9 Dim s As String, t As String, x As Long If Len(Nz(text, "")) > 0 Then For x = 1 To Len(text) t = Mid(text, x, 1) Select Case t Case 0 To 9 s = s & t End Select Next x End If OnlyNumbers = s 'Msgbox s End Function -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Monday, 6 December 2004 1:38 PM To: AccessD Subject: A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren From vchas at artronix-solutions.com Sun Dec 5 21:00:56 2004 From: vchas at artronix-solutions.com (Vincent Pusateri) Date: Sun, 5 Dec 2004 19:00:56 -0800 Subject: [AccessD] A2003: Checking for dupe phone numbers In-Reply-To: <200412060238.iB62cQx6019393@cooper.uws.edu.au> Message-ID: <6E432F60D2D64B4EA6367EB572C347.MAI@freightware.net> Hi Darren, Here's a function that'll help. Function NumbersOnly(T) 'VChas remove characters/spaces and just give us the numbers Dim K, Result If IsNull(T) Then NumbersOnly = Null Exit Function End If For K = 1 To Len(T) If Asc(Mid(T, K, 1)) >= 48 And Asc(Mid(T, K, 1)) <= 57 Then Result = Result & Mid(T, K, 1) End If Next If Len(Result) = 0 Then NumbersOnly = Null Else NumbersOnly = Result End If End Function Vinnie Chas -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Sunday, December 05, 2004 6:38 PM To: AccessD Subject: [AccessD] A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Dec 5 23:14:52 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 05 Dec 2004 21:14:52 -0800 Subject: [AccessD] FW: A2003: Checking for dupe phone numbers In-Reply-To: <200412060253.iB62r8x6001258@cooper.uws.edu.au> Message-ID: Hi Darren: Or better yet, try the following function. This can be used to remove any character from a string or called from a query. Public Function StripInvalidCharacter(ChkText As String, strInvalidCharacter As String) as String Dim lbPosition As Integer Dim lbLength As Integer lbLength = Len(ChkText) lbPosition = InStr(1, ChkText, strInvalidCharacter) Do While lbPosition > 0 And lbPosition < lbLength ChkText = Left(ChkText, lbPosition - 1) & Mid(ChkText, lbPosition + 1) lbPosition = InStr(lbPosition + 2, ChkText, strInvalidCharacter) Loop StripInvalidCharacter = ChkText End Function HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Sunday, December 05, 2004 6:53 PM To: AccessD Subject: [AccessD] FW: A2003: Checking for dupe phone numbers Never mind - found a function to do it Dunno who wrote (wasn't me:-)) Apologies to whoever did - Can't give 'em credit Function OnlyNumbers(text) As String 'Removes ANYTHING that does not fall into 0-9 Dim s As String, t As String, x As Long If Len(Nz(text, "")) > 0 Then For x = 1 To Len(text) t = Mid(text, x, 1) Select Case t Case 0 To 9 s = s & t End Select Next x End If OnlyNumbers = s 'Msgbox s End Function -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Monday, 6 December 2004 1:38 PM To: AccessD Subject: A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Mon Dec 6 10:14:12 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Mon, 6 Dec 2004 11:14:12 -0500 Subject: [AccessD] Migration from XP to 2003 Message-ID: The answer is yes, but the question is... "is all that necessary"? By that, I mean, I know that the dbs that I have created within the department are very straightforward. Could the differences in Access 2003 affect a standard db that significantly as to require thorough testing? Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Friday, December 03, 2004 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 Mark, Can you at least map multiple drives and simulate going across network? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, December 03, 2004 5:40 AM To: [AccessD] Subject: [AccessD] Migration from XP to 2003 Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 6 10:40:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Dec 2004 08:40:48 -0800 Subject: [AccessD] Migration from XP to 2003 Message-ID: >From XP? No. From 97, definitely. Charlotte Foust -----Original Message----- From: Mitsules, Mark [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 06, 2004 8:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 The answer is yes, but the question is... "is all that necessary"? By that, I mean, I know that the dbs that I have created within the department are very straightforward. Could the differences in Access 2003 affect a standard db that significantly as to require thorough testing? Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Friday, December 03, 2004 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 Mark, Can you at least map multiple drives and simulate going across network? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, December 03, 2004 5:40 AM To: [AccessD] Subject: [AccessD] Migration from XP to 2003 Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Mon Dec 6 12:27:25 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Mon, 6 Dec 2004 13:27:25 -0500 Subject: [AccessD] Migration from XP to 2003 Message-ID: Thank you. That's what I was hoping to hear. I felt this group would give me a more accurate picture than the "doom & gloom posters". Mark -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 06, 2004 11:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Migration from XP to 2003 >From XP? No. From 97, definitely. Charlotte Foust -----Original Message----- From: Mitsules, Mark [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 06, 2004 8:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 The answer is yes, but the question is... "is all that necessary"? By that, I mean, I know that the dbs that I have created within the department are very straightforward. Could the differences in Access 2003 affect a standard db that significantly as to require thorough testing? Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Friday, December 03, 2004 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Migration from XP to 2003 Mark, Can you at least map multiple drives and simulate going across network? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, December 03, 2004 5:40 AM To: [AccessD] Subject: [AccessD] Migration from XP to 2003 Group, I've seen several statements online like "Access crashes after upgrade from XP to 2003". Has anyone had problems with this migration? I'm tasked with compiling a list of "all" databases that our department utilizes in order to schedule time in a testing environment, but since the testing environment is a sandbox and not connected to our LAN, I see little use in going through the testing phase. Any comments? Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Dec 6 17:36:36 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 10:36:36 +1100 Subject: [AccessD] FW: A2003: Checking for dupe phone numbers In-Reply-To: Message-ID: <200412062336.iB6Naqx6027982@cooper.uws.edu.au> Hi Jim Very nice - I like the flexibility to dictate the string to remove I have filed this one away too :-)))) Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, 6 December 2004 4:15 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2003: Checking for dupe phone numbers Hi Darren: Or better yet, try the following function. This can be used to remove any character from a string or called from a query. Public Function StripInvalidCharacter(ChkText As String, strInvalidCharacter As String) as String Dim lbPosition As Integer Dim lbLength As Integer lbLength = Len(ChkText) lbPosition = InStr(1, ChkText, strInvalidCharacter) Do While lbPosition > 0 And lbPosition < lbLength ChkText = Left(ChkText, lbPosition - 1) & Mid(ChkText, lbPosition + 1) lbPosition = InStr(lbPosition + 2, ChkText, strInvalidCharacter) Loop StripInvalidCharacter = ChkText End Function HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Sunday, December 05, 2004 6:53 PM To: AccessD Subject: [AccessD] FW: A2003: Checking for dupe phone numbers Never mind - found a function to do it Dunno who wrote (wasn't me:-)) Apologies to whoever did - Can't give 'em credit Function OnlyNumbers(text) As String 'Removes ANYTHING that does not fall into 0-9 Dim s As String, t As String, x As Long If Len(Nz(text, "")) > 0 Then For x = 1 To Len(text) t = Mid(text, x, 1) Select Case t Case 0 To 9 s = s & t End Select Next x End If OnlyNumbers = s 'Msgbox s End Function -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Monday, 6 December 2004 1:38 PM To: AccessD Subject: A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Dec 6 17:36:36 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 10:36:36 +1100 Subject: [AccessD] A2003: Checking for dupe phone numbers In-Reply-To: <6E432F60D2D64B4EA6367EB572C347.MAI@freightware.net> Message-ID: <200412062336.iB6Naqx7027982@cooper.uws.edu.au> Thanks Heaps Vinnie I have filed this one away :-)) see ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Vincent Pusateri Sent: Monday, 6 December 2004 2:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Checking for dupe phone numbers Hi Darren, Here's a function that'll help. Function NumbersOnly(T) 'VChas remove characters/spaces and just give us the numbers Dim K, Result If IsNull(T) Then NumbersOnly = Null Exit Function End If For K = 1 To Len(T) If Asc(Mid(T, K, 1)) >= 48 And Asc(Mid(T, K, 1)) <= 57 Then Result = Result & Mid(T, K, 1) End If Next If Len(Result) = 0 Then NumbersOnly = Null Else NumbersOnly = Result End If End Function Vinnie Chas -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Sunday, December 05, 2004 6:38 PM To: AccessD Subject: [AccessD] A2003: Checking for dupe phone numbers Hi Guys I'm trying to comparing phone numbers and report dupes. Basically I get a user to enter a phone number - then check if it is already in the dB If it is then I go to the record that already has it. But of course people legitimately put in spaces after area codas and after the prefixes. So it becomes tricky to compare eg 01 1234 5678 is the same number as 0112345678 but a simple dlookup won't catch it So I wanna remove all the spaces so I am comparing at least the same 'number' OR Do any of you have a method for comparing or routing out dupe phone numbers?? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DorisH3 at aol.com Mon Dec 6 18:42:47 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Mon, 6 Dec 2004 19:42:47 EST Subject: [AccessD] Add new data to existing table Message-ID: <42.5de80b6b.2ee65687@aol.com> I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the new Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris From davide at dalyn.co.nz Mon Dec 6 21:17:19 2004 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 07 Dec 2004 16:17:19 +1300 Subject: [AccessD] Bar Code Readers Message-ID: <6.2.0.14.0.20041207160648.03279eb0@mail.dalyn.co.nz> I have a client that wants to have their client numbers printed in bar code format on their client statements so that a bar code reader can be used to scan the bar code and match it with the customer in the database (this is for processing payments). Does anyone have any pointers on what to do? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 From jwcolby at colbyconsulting.com Mon Dec 6 21:28:13 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 06 Dec 2004 22:28:13 -0500 Subject: [AccessD] Access 2003 security warning Message-ID: <005501c4dc0c$ccddc220$e8dafea9@ColbyM6805> How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From d.dick at uws.edu.au Mon Dec 6 22:24:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 15:24:56 +1100 Subject: [AccessD] Access 2003 security warning In-Reply-To: <005501c4dc0c$ccddc220$e8dafea9@ColbyM6805> Message-ID: <200412070425.iB74PBx6020231@cooper.uws.edu.au> Hi John >From any dB window Click on TOOLS|MACRO|Security And choose the bottom option/radio button (LOW) and ignore any messages about killing, raping etc See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 7 December 2004 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2003 security warning How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Dec 6 22:33:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 15:33:42 +1100 Subject: [AccessD] Bar Code Readers In-Reply-To: <6.2.0.14.0.20041207160648.03279eb0@mail.dalyn.co.nz> Message-ID: <200412070433.iB74Xvx6027756@cooper.uws.edu.au> Hi David Barcodes are literally a world within a world There a zillions of different sorts - doing different jobs - designed for different applications I assume you would like the barcode to look and behave similar to the The common ones that we mostly see on ID cards, Library cards, Shampoo bottles and general groceries, yes? One of the most common is a barcode called 3 of 9 (No it's not a star Trek Character) The easiest ones to manage are the ones that are True Type Fonts and can Simply be added to your Font folder and accessed from the Font Combo on most Formatting toolbars Have a look at http://www.barcodingfonts.com/bar39.htm?key=Gcode39 http://www.squaregear.net/fonts/free3of9.shtml The one I use in most places is.... http://ukdownloads.net/featured/idautomation/ I googled up this... http://www.google.com.au/search?hl=en&q=%22Automation%22+%2B+barcode&meta= If you are interested in a (not so quick) explanation go to http://www.spatula.net/proc/barcode/code39.src Hope this helps See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, 7 December 2004 2:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] Bar Code Readers I have a client that wants to have their client numbers printed in bar code format on their client statements so that a bar code reader can be used to scan the bar code and match it with the customer in the database (this is for processing payments). Does anyone have any pointers on what to do? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ldoering at symphonyinfo.com Mon Dec 6 22:49:16 2004 From: ldoering at symphonyinfo.com (Liz Doering) Date: Mon, 6 Dec 2004 22:49:16 -0600 Subject: [AccessD] Add new data to existing table Message-ID: <200412062249.AA1075970170@symphonyinfo.com> Doris, I'm assuming that you have a combo box for your zip codes. If you paste this code into the not in list event of your combo box, you should be pretty close. Of course, I'm guessing on field names and layout of your ZipCode table; you will have to make changes to those, I'm sure. I'm checking mail at 11 p.m. only because of not being in the office tomorrow. But if you have more questions, don't hesitate to ask. Good luck! Liz Private Sub cboZip_NotInList(NewData As String, Response As Integer) On Error GoTo eh Dim rs As Recordset Dim db As Database Dim strState As String Dim strCity As String ' Prompt user to verify they wish to add new value. If MsgBox(NewData & " is not in list. Add it?", vbOKCancel) = vbOK Then ' suppress the error about your item not being in the list Response = acDataErrAdded 'collect the rest of the data you need strState = InputBox("Enter 2-letter State Abbreviation", "State") strCity = InputBox("Enter City Name", "City") 'write it to your table Set db = CurrentDb Set rs = db.OpenRecordset("ZipList") With rs .AddNew !zip = NewData !city = strCity !state = strState .Update End With Else ' If user chooses Cancel, undo changes. Response = acDataErrContinue Me.cboZip.Undo End If ex: Set rs = Nothing 'close recordset and database Set db = Nothing Exit Sub eh: MsgBox Err.Description, , Err.Number Resume ex End Sub ---------- Original Message ---------------------------------- From: DorisH3 at aol.com Reply-To: Access Developers discussion and problem solving Date: Mon, 6 Dec 2004 19:42:47 EST I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the new Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Thanks, Liz Doering Symphony Information Services www.symphonyinfo.com 763.391.7400 -- From d.dick at uws.edu.au Mon Dec 6 22:49:16 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 15:49:16 +1100 Subject: [AccessD] Add new data to existing table In-Reply-To: <42.5de80b6b.2ee65687@aol.com> Message-ID: <200412070449.iB74nVx6012148@cooper.uws.edu.au> Hi Doris There are a few ways The zip code control on your form - is a Text Box or a combo box Anyway the basics of it are...... Test For Existence of zipcode (You are doing that already) If it exists - then Cool carry on as normal If it does not then force the User to enter the Details of the new Zipcode, State and City Have a message box come up and say something like That postcode is not in the list or system or database or whatever Please Add the details for it on the next screen When they click OK - Have a little form 'popup' with it's Modal property set to TRUE Bind this form to the ZipCodes Table and have each of the Text boxes on this 'popup' form, bound to the relevant fields in the Postcodes table. EG ZipCode, State and City Have the popup form go to a brand new fresh blank record when it opens. And then automatically populate this 'new postcode' control in the popup form with the Zipcode that can't be found by having some code like this in the OnLoad Event of the popup form docmd.GoToRecord ,,acNewRec Me.txtPostCode.defaultvalue = Forms!theFormThatCantFindThePostCode!txtWhateverthePostCodeFieldIs (Replace theFormThatCantFindThePostCode with the real name of the Cutomers form that is doing the ZipCode checking) (Replace txtWhateverthePostCodeFieldIs with the real name of the Zip Code control on the form above) Hope this makes sense It's more complex typing it than it is doing it :-))) See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: Tuesday, 7 December 2004 11:43 AM To: accessd at databaseadvisors.com Subject: [AccessD] Add new data to existing table I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the new Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Dec 6 22:49:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 06 Dec 2004 23:49:30 -0500 Subject: [AccessD] Access 2003 security warning In-Reply-To: <200412070425.iB74PBx6020231@cooper.uws.edu.au> Message-ID: <005601c4dc18$23b24cf0$e8dafea9@ColbyM6805> Whew. I was starting to shake in my boots there. It's bad enough that Microsoft would threaten me with murder death kill, but to phrase it such that it was almost impossible to determine how to get around it... Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, December 06, 2004 11:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2003 security warning Hi John >From any dB window Click on TOOLS|MACRO|Security And choose the bottom option/radio button (LOW) and ignore any messages about killing, raping etc See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 7 December 2004 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2003 security warning How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Dec 6 23:01:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 7 Dec 2004 16:01:42 +1100 Subject: [AccessD] Access 2003 security warning In-Reply-To: <005601c4dc18$23b24cf0$e8dafea9@ColbyM6805> Message-ID: <200412070501.iB751vx6024011@cooper.uws.edu.au> It's real PITA Especially for remote sites with, shall we say,....'timid' users :-)) Talking them through anything is problem enough - but when they see those messages With threats of infanticide, sacrificing lambs and oxen, mortgage repossessions etc - it becomes difficult I have heard tell of a code option (Which seems to defeat the purpose of having it there at all) But I will investigate... See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 7 December 2004 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2003 security warning Whew. I was starting to shake in my boots there. It's bad enough that Microsoft would threaten me with murder death kill, but to phrase it such that it was almost impossible to determine how to get around it... Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, December 06, 2004 11:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2003 security warning Hi John >From any dB window Click on TOOLS|MACRO|Security And choose the bottom option/radio button (LOW) and ignore any messages about killing, raping etc See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 7 December 2004 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2003 security warning How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Dec 7 02:02:54 2004 From: john at winhaven.net (John Bartow) Date: Tue, 7 Dec 2004 02:02:54 -0600 Subject: [AccessD] Access 2003 security warning In-Reply-To: <005501c4dc0c$ccddc220$e8dafea9@ColbyM6805> Message-ID: Hi John, I just went through this too, what an annoyance! And do you think I could remember how to do this two days in a row?! Tools, Macro security. Which of course I never think of looking at because I just do don't macros. The other issue I've run into with A2k3 is with graphics on the reports. It would seem that the new and improved graphics tools in O2k3 don't work well with access reports developed in A2k or AXP. Anyone else had any issues? It would appear that if a PC doesn't have MS Photo Editor installed the graphics show the file name instead of the graphic. Annoyances... John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, December 06, 2004 9:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2003 security warning How do I turn off Access silly security warning ("you are about to open a file that can eat your mother, rape your women and kill your children, are you SURE you don't want to download..." Why do we have to go through this stuff? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Dec 7 02:18:44 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 07 Dec 2004 00:18:44 -0800 Subject: [AccessD] Bar Code Readers References: <6.2.0.14.0.20041207160648.03279eb0@mail.dalyn.co.nz> Message-ID: <41B56764.2080003@shaw.ca> Here is another good site on barcode info http://www.taltech.com Here is one on the "compleat barcode" with a hundreds of links. http://www.adams1.com/ David Emerson wrote: > I have a client that wants to have their client numbers printed in bar > code format on their client statements so that a bar code reader can > be used to scan the bar code and match it with the customer in the > database (this is for processing payments). > > Does anyone have any pointers on what to do? > > Regards > > David Emerson > Dalyn Software Ltd > 25 Cunliffe St, Churton Park > Wellington, New Zealand > Ph/Fax (04) 478-7456 > Mobile 027-280-9348 -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Dec 7 02:27:42 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 07 Dec 2004 00:27:42 -0800 Subject: [AccessD] Access 2003 security warning References: <005501c4dc0c$ccddc220$e8dafea9@ColbyM6805> Message-ID: <41B5697E.1080301@shaw.ca> A couple of other ways around this. You don't want to create a certificate and place in user certificate cache. It is very messy with makecert.exe Get your network guy to change the following registry settings of the following key, should help you change the security level of the macro in Access 2003. He should be able to change this globally across the network for each client PC, there is even a way to do this from Access VBA code using WMI with proper network permissions. HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level If the value is 1, then the macro security of Access 2003 is set to low. If the value is 2, then the macro security of Access 2003 is set to medium. If the value is 3, then the macro security of Access 2003 is set to high. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. Or You could also put this vbs code in a file to execute in a user's shortcut. Just create .vbs file and add to desktop shortcut. You can create a VB script file with this code and start your app using this from a shortcut. (Code is from an MS MSDN article) http://support.microsoft.com/?kbid=235422 This will have problems if vbscript disabled or you are using mdw security add to file MyMDB.vbs Const cDatabaseToOpen = "C:\.mdb" On Error Resume Next Dim AcApp Set AcApp = CreateObject("Access.Application.11") If AcApp.Version >= 11 Then AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow End If AcApp.Visible = True AcApp.OpenCurrentDatabase cDatabaseToOpen If AcApp.CurrentProject.FullName <> "" Then AcApp.UserControl = True Else AcApp.Quit MsgBox "Failed to open '" & cDatabaseToOpen & "'." End If John W. Colby wrote: >How do I turn off Access silly security warning ("you are about to open a >file that can eat your mother, rape your women and kill your children, are >you SURE you don't want to download..." > >Why do we have to go through this stuff? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Tue Dec 7 04:59:03 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 7 Dec 2004 11:59:03 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041207115901.2D8EF260BFD@smtp.nildram.co.uk> Ok, here's the thing. I want to make a few forms lightweight which currently have just a line or two in modules. A few have nothing more than a line which dynamically sets the form's caption. So I wrote a little function like this: Function SetCaption(frm As Form, strCaption As String) frm.Caption = strCaption End Function and then changed my form's OnOpen from being an Event Procedure to : =SetCaption([Screen].[ActiveForm],"x") (The "x" is just for testing. The real call would have something a bit more dynamic, like the result of a function call.) The thing is that it errors because it can't resolve [Screen].[ActiveForm] at that point. Ok, methinks, I'll move the call. But I can't find where to put it. All of the following fail: On Load On GotFocus of the first control On Current The only success I've had is putting a timer interval of 5 and putting the call in OnTimer, but I don't like that much as you can imagine. If I force a call to it once the form's up then there's no problem (eg a command button), but that's not a lot of use to me either. So I know the function is fine, but has anyone got an answer as to where I might get this to run from? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From pedro at plex.nl Tue Dec 7 15:08:38 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 07 Dec 2004 15:08:38 (MET) Subject: [AccessD] import tekst wizard A2003 Message-ID: <200412071408.iB7E8cCW009905@mailhostC.plex.net> Hello Group, in the hospital were i am working we changed from A2k to A2003. The import tekst wizard doesn't work properly. When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. Is this a general problem and is there a solution. Pedro Janssen From DorisH3 at aol.com Tue Dec 7 08:15:44 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Tue, 7 Dec 2004 09:15:44 EST Subject: [AccessD] Help! Message-ID: <97.541a8faa.2ee71510@aol.com> I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When I am entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris From mikedorism at adelphia.net Tue Dec 7 08:20:19 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 7 Dec 2004 09:20:19 -0500 Subject: [AccessD] Set form's Caption without code In-Reply-To: <20041207115901.2D8EF260BFD@smtp.nildram.co.uk> Message-ID: <000201c4dc67$e36b9fc0$0b08a845@hargrove.internal> Okay... This exercise seems a little silly to me because it doesn't seem to make sense to create three lines of code somewhere else to do something that only takes one line. Particularly when you have to pass in the caption you want as part of the process. If you insist on doing this, try just passing Me (the form object) and the caption. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, December 07, 2004 5:59 AM To: Dba Subject: [AccessD] Set form's Caption without code Ok, here's the thing. I want to make a few forms lightweight which currently have just a line or two in modules. A few have nothing more than a line which dynamically sets the form's caption. So I wrote a little function like this: Function SetCaption(frm As Form, strCaption As String) frm.Caption = strCaption End Function and then changed my form's OnOpen from being an Event Procedure to : =SetCaption([Screen].[ActiveForm],"x") (The "x" is just for testing. The real call would have something a bit more dynamic, like the result of a function call.) The thing is that it errors because it can't resolve [Screen].[ActiveForm] at that point. Ok, methinks, I'll move the call. But I can't find where to put it. All of the following fail: On Load On GotFocus of the first control On Current The only success I've had is putting a timer interval of 5 and putting the call in OnTimer, but I don't like that much as you can imagine. If I force a call to it once the form's up then there's no problem (eg a command button), but that's not a lot of use to me either. So I know the function is fine, but has anyone got an answer as to where I might get this to run from? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue Dec 7 08:35:55 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 7 Dec 2004 09:35:55 -0500 Subject: [AccessD] Help! In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A54A19@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBB0B@ADGSERVER> I would probably tell the user in a message box that the zip code is not in the database and ask if they would like to add it. If so, open a new form that allows the user to add a city and state for the zip code entered. Then after saving the new data, set the fields on the original form to the values entered for that zip code. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: Tuesday, December 07, 2004 9:16 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help! I want to apologize ahead of time for my ignorance of Access but I am new to this and would appreciate any help that would come my way. I have a Customer entry form whereby I am entering customer first name, customer last name, address, zip code, City, State and remarks. I also have a ZipCode table where I have Zip Code, City, State fields. When I am entering data into the Customer Entry Form the Zip Code field goes out and looks up the City and State and returns the value from the table on exit from the Zip Code field. My question is this: when a value is not found in the Zip code table that matches the entered zip code, how do I from the Customer entry form add the Zip code, City and State to the Zip Code table? Again, I appreciate any help you can extend me. Doris -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Dec 7 07:35:47 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 7 Dec 2004 14:35:47 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041207143545.0B05825DCDF@smtp.nildram.co.uk> Sorry Doris, but it's not silly. This is why: 1.If you have, say, 20 forms which all set the caption dynamically and have no other code then you can lose 20 modules (CBF modules that is) out of your MDB and have 20 lightweight forms that previously weren't. The function they all call can be in a module with other code so it doesn't even cost a module there. 2.As I tried to explain in my original post the real-life usage would not be to pass the caption as text (that WOULD be silly) but to pass the result of a function call, in order to set the form's caption to, say, a customer name or something similar. So a real application of this might be: =SetCaption([Screen].[ActiveForm], fnProduct()) 3.You can't pass Me as a reference to the current form when you're using a function call rather than an Event Procedure. I stress again that I'm trying to lose code, so all that's in the Event is: =SetCaption([Screen].[ActiveForm],"x") What is decidedly not there is [Event Procedure] leading to code. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Set form's Caption without code Date: 07/12/04 14:19 > > Okay... This exercise seems a little silly to me because it doesn't seem to > make sense to create three lines of code somewhere else to do something that > only takes one line. Particularly when you have to pass in the caption you > want as part of the process. > > If you insist on doing this, try just passing Me (the form object) and the > caption. > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 5:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > > Ok, here's the thing. I want to make a few forms lightweight which currently > have just a line or two in modules. A few have nothing more than a line > which dynamically sets the form's caption. So I wrote a little function like > this: > > Function SetCaption(frm As Form, strCaption As String) frm.Caption = > strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have something a bit more > dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve [Screen].[ActiveForm] > at that point. Ok, methinks, I'll move the call. But I can't find where to > put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 and putting the > call in OnTimer, but I don't like that much as you can imagine. If I force a > call to it once the form's up then there's no problem (eg a command button), > but that's not a lot of use to me either. So I know the function is fine, > but has anyone got an answer as to where I might get this to run from? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Tue Dec 7 08:57:41 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Dec 2004 15:57:41 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: Hi Andy At the OnOpen event, you could try this: =SetCaption(Forms([Forms].[Count]-1);"SomeCaption") /gustav From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, December 07, 2004 5:59 AM To: Dba Subject: [AccessD] Set form's Caption without code Ok, here's the thing. I want to make a few forms lightweight which currently have just a line or two in modules. A few have nothing more than a line which dynamically sets the form's caption. So I wrote a little function like this: Function SetCaption(frm As Form, strCaption As String) frm.Caption = strCaption End Function and then changed my form's OnOpen from being an Event Procedure to : =SetCaption([Screen].[ActiveForm],"x") (The "x" is just for testing. The real call would have something a bit more dynamic, like the result of a function call.) The thing is that it errors because it can't resolve [Screen].[ActiveForm] at that point. Ok, methinks, I'll move the call. But I can't find where to put it. All of the following fail: On Load On GotFocus of the first control On Current The only success I've had is putting a timer interval of 5 and putting the call in OnTimer, but I don't like that much as you can imagine. If I force a call to it once the form's up then there's no problem (eg a command button), but that's not a lot of use to me either. So I know the function is fine, but has anyone got an answer as to where I might get this to run from? -- Andy Lacey http://www.minstersystems.co.uk From andy at minstersystems.co.uk Tue Dec 7 08:21:48 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 7 Dec 2004 15:21:48 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041207152146.479A2256AC5@smtp.nildram.co.uk> Genius. Sheer genius. Works like a dream. Thanks Gustav. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Set form's Caption without code Date: 07/12/04 15:00 > > Hi Andy > > At the OnOpen event, you could try this: > > =SetCaption(Forms([Forms].[Count]-1);"SomeCaption") > > /gustav > > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 5:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > > Ok, here's the thing. I want to make a few forms lightweight which > currently > have just a line or two in modules. A few have nothing more than a > line > which dynamically sets the form's caption. So I wrote a little function > like > this: > > Function SetCaption(frm As Form, strCaption As String) frm.Caption = > strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have something a bit > more > dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve > [Screen].[ActiveForm] > at that point. Ok, methinks, I'll move the call. But I can't find where > to > put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 and putting > the > call in OnTimer, but I don't like that much as you can imagine. If I > force a > call to it once the form's up then there's no problem (eg a command > button), > but that's not a lot of use to me either. So I know the function is > fine, > but has anyone got an answer as to where I might get this to run from? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From markamatte at hotmail.com Tue Dec 7 09:26:28 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 07 Dec 2004 15:26:28 +0000 Subject: [AccessD] Set form's Caption without code In-Reply-To: Message-ID: Not sure if its the same...or if your against code all together...but I used this to change the AppTitle.. Private Sub Form_Activate() Dim intX As Integer intX = AddAppProperty("AppTitle", dbText, Me.Caption) RefreshTitleBar End Sub Hope it helps... Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: RE: [AccessD] Set form's Caption without code >Date: Tue, 07 Dec 2004 15:57:41 +0100 > >Hi Andy > >At the OnOpen event, you could try this: > >=SetCaption(Forms([Forms].[Count]-1);"SomeCaption") > >/gustav > >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey >Sent: Tuesday, December 07, 2004 5:59 AM >To: Dba >Subject: [AccessD] Set form's Caption without code > > >Ok, here's the thing. I want to make a few forms lightweight which >currently >have just a line or two in modules. A few have nothing more than a >line >which dynamically sets the form's caption. So I wrote a little function >like >this: > >Function SetCaption(frm As Form, strCaption As String) frm.Caption = >strCaption End Function > >and then changed my form's OnOpen from being an Event Procedure to : > >=SetCaption([Screen].[ActiveForm],"x") > >(The "x" is just for testing. The real call would have something a bit >more >dynamic, like the result of a function call.) > >The thing is that it errors because it can't resolve >[Screen].[ActiveForm] >at that point. Ok, methinks, I'll move the call. But I can't find where >to >put it. All of the following fail: > >On Load >On GotFocus of the first control >On Current > >The only success I've had is putting a timer interval of 5 and putting >the >call in OnTimer, but I don't like that much as you can imagine. If I >force a >call to it once the form's up then there's no problem (eg a command >button), >but that's not a lot of use to me either. So I know the function is >fine, >but has anyone got an answer as to where I might get this to run from? > >-- >Andy Lacey >http://www.minstersystems.co.uk > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Dec 7 11:05:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 07 Dec 2004 09:05:57 -0800 Subject: [AccessD] import tekst wizard A2003 References: <200412071408.iB7E8cCW009905@mailhostC.plex.net> Message-ID: <41B5E2F5.604@shaw.ca> You need the Office 2003 SP1 or the March 2004 Access 2003 hotfix I think they rolled the hotfixes into the SP1 Description of the Access 2003 hotfix package: March 17, 2004 http://support.microsoft.com/kb/837003 Issues that are fixed in Access 2003 by Office 2003 Service Pack 1 http://support.microsoft.com/default.aspx?kbid=872834 " When you use the Import Spreadsheet Wizard in Microsoft Access or the Import Text Wizard in Microsoft Access to import a Microsoft Excel file or a text file, you can modify the field information for only the first field that is on the fourth page of the Import Spreadsheet Wizard or the Import Text Wizard.ReasonThe problem is related to both the Import Spreadsheet Wizard and the Import Text Wizard. pedro at plex.nl wrote: >Hello Group, > >in the hospital were i am working we changed from A2k to A2003. >The import tekst wizard doesn't work properly. >When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. > >Is this a general problem and is there a solution. > >Pedro Janssen > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue Dec 7 11:37:33 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Dec 2004 18:37:33 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: Thanks Andy! By second thought, this might be what you had in mind. It seems to work as well: =SetCaption(Forms([Form].[Name]);"See me run!") /gustav >>> andy at minstersystems.co.uk 07-12-2004 15:21:48 >>> Genius. Sheer genius. Works like a dream. Thanks Gustav. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Set form's Caption without code Date: 07/12/04 15:00 > Hi Andy > > At the OnOpen event, you could try this: > > =SetCaption(Forms([Forms].[Count]-1);"SomeCaption") > > /gustav > > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 5:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > > Ok, here's the thing. I want to make a few forms lightweight which > currently > have just a line or two in modules. A few have nothing more than a > line > which dynamically sets the form's caption. So I wrote a little function > like this: > > Function SetCaption(frm As Form, strCaption As String) frm.Caption = > strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have something a bit > more dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve > [Screen].[ActiveForm] > at that point. Ok, methinks, I'll move the call. But I can't find where > to put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 and putting > the > call in OnTimer, but I don't like that much as you can imagine. If I > force a > call to it once the form's up then there's no problem (eg a command > button), > but that's not a lot of use to me either. So I know the function is > fine, > but has anyone got an answer as to where I might get this to run from? From andy at minstersystems.co.uk Tue Dec 7 12:25:13 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 7 Dec 2004 18:25:13 -0000 Subject: [AccessD] Help! In-Reply-To: <97.541a8faa.2ee71510@aol.com> Message-ID: <000101c4dc8a$1814f240$b274d0d5@minster33c3r25> Hi Doris, First, welcome to the list. Do you realise you posted the same question twice with different subjects? The one under "Add new data to existing table" had replies earlier today. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > DorisH3 at aol.com > Sent: 07 December 2004 14:16 > To: accessd at databaseadvisors.com > Subject: [AccessD] Help! > > > I want to apologize ahead of time for my ignorance of Access > but I am new to > this and would appreciate any help that would come my way. > > I have a Customer entry form whereby I am entering customer > first name, > customer last name, address, zip code, City, State and > remarks. I also have a > ZipCode table where I have Zip Code, City, State fields. > When I am entering data > into the Customer Entry Form the Zip Code field goes out and > looks up the City > and State and returns the value from the table on exit from > the Zip Code > field. My question is this: when a value is not found in > the Zip code table that > matches the entered zip code, how do I from the Customer > entry form add the > Zip code, City and State to the Zip Code table? > > Again, I appreciate any help you can extend me. > > Doris > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From dmcafee at pacbell.net Tue Dec 7 13:13:34 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 7 Dec 2004 11:13:34 -0800 Subject: [AccessD] Help! In-Reply-To: <000101c4dc8a$1814f240$b274d0d5@minster33c3r25> Message-ID: I have a older sample that does this. I'll send it to you off the list. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Tuesday, December 07, 2004 10:25 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help! Hi Doris, First, welcome to the list. Do you realise you posted the same question twice with different subjects? The one under "Add new data to existing table" had replies earlier today. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > DorisH3 at aol.com > Sent: 07 December 2004 14:16 > To: accessd at databaseadvisors.com > Subject: [AccessD] Help! > > > I want to apologize ahead of time for my ignorance of Access > but I am new to > this and would appreciate any help that would come my way. > > I have a Customer entry form whereby I am entering customer > first name, > customer last name, address, zip code, City, State and > remarks. I also have a > ZipCode table where I have Zip Code, City, State fields. > When I am entering data > into the Customer Entry Form the Zip Code field goes out and > looks up the City > and State and returns the value from the table on exit from > the Zip Code > field. My question is this: when a value is not found in > the Zip code table that > matches the entered zip code, how do I from the Customer > entry form add the > Zip code, City and State to the Zip Code table? > > Again, I appreciate any help you can extend me. > > Doris > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Tue Dec 7 14:54:46 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Tue, 7 Dec 2004 14:54:46 -0600 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB048@redstone819.ad.redstone.army.mil> Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The Microsoft? .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 7 15:23:59 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 7 Dec 2004 13:23:59 -0800 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Message-ID: As far as I know the .Net framework SDK is for creating framework apps, not VS.Net apps. In other words, it's for customizing the framework. You still need at least VSTO or VB.Net Standard (which comes with VSTO) for the rest. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The Microsoft(r) .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Dec 7 15:36:27 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 7 Dec 2004 16:36:27 -0500 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A28DA@xlivmbx21.aig.com> The SDK download is indeed a complete package with which you can develop .NET applications, but though you get comprehensive documentation, there is no IDE. You will be using the command line compiler for C# and you will have to provide your own editor. Not too big a burden considering there are at least three free IDE's out there: Sharp Develop. http://www.icsharpcode.net/OpenSource/SD/ Mono. http://www.mono-project.com/about/index.html and Borland C# Builder (free for personal use). http://www.borland.com/products/downloads/download_cbuilder.html Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Tuesday, December 07, 2004 3:55 PM > To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com > Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy > "Microsoft Visual Basic.NET Standard 2003 ..." > > Richard: > > I do not mean to question what you're telling me, but I want to make > absolutely sure that we're both on the same wavelength. I understand > that the .NET "Framework" simply provides the .NET runtime environment, > (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, > and VB.NET - among others). > > What I am specifically asking about is the information at this: > > http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 > 070-9f41-a333c6b9181d&displaylang=en > > Microsoft download site, where the following descriptive text appears > verbatim: > > Quote: > > .NET Framework SDK Version 1.1 > > The Microsoft? .NET Framework Software Development Kit (SDK) version 1.1 > includes everything developers need to write, build, test, and deploy .NET > Framework applications - documentation, samples, and command-line tools > and compilers. > > End Quote: > > Of course, trying to decipher Microsoft marketing hyperbole can be > something of an exercise in futility, but when you read this statement > word-for-word, they do use the words "... everything developers need ..." > (among others) and they ARE describing a "Software Developer Kit" (SDK) > product. Also, the SDK download is approximately 106 Megabytes - which is > quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by > itself) is just a tad over 20 Megabytes. (I know this for a fact because > the .NET Framework [download] appears as an "optional download" when I run > Windows Update on my home computer. > > My question boils down to this: Are you SURE (really sure) that the > "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" > [download] is merely the .NET runtime environment? (If that is all it is, > what is the extra 86 Megabytes and why is Microsoft using terms like > "command-line tools and compilers" as well as "write, build, test, and > deploy .NET Framework applications ..." in their description of the > product? > > If this SDK can be used as a relatively inexpensive (or free) "learning > tool" to help me learn (and write) VB.NET code, then I think it would be > well worth the bother of downloading to my home computer - even on a slow > dial-up connection! > > I'm going to cross post this to the AccessD List in the hopes that > Charlotte Foust and John Colby will see it. > > Alan C. Lawhon > > > -----Original Message----- > From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] > Sent: Tuesday, December 07, 2004 11:32 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic.NET Standard 2003 ..." > > > Hi > The framework simply provides the dotnet runtime environment. To > develop you need Visual Studio .NET 2003 "Professional" Edition. I've > seen recently for about $700 and this includes windows 2003 and sql 2000 > (developer/test editions) - not bad really > Richard > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: 07 December 2004 17:07 > To: dba-vb at databaseadvisors.com; accessd at shaw.ca > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic.NET Standard 2003 ..." > > Jim: > > Thanks for the .NET links & info - which I am now diligently research- > ing. I need a bit of clarification concerning one of the links you > provided. First, some background ... > > We are in the process of coming up with a recommendation for our > customer > concerning what software (and development tools) should be purchased in > order to facilitate conversion of our environmental database application > to a "web enabled" environmental database application. I also have a > secondary goal of obtaining an "affordable" .NET integrated development > environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, > (and whatever-else .NET is required), on my home computer. (I have a > feeling I can learn more at home versus all the constant "distractions" > and interruptions here at work ...) > > I have visited the link you provided to Microsoft's download site for > the (free?) ".NET Framework SDK Version 1.1" IDE. According to info > at this MS site, the 106 MB download contains "everything developers > need to write, build, test, and deploy .NET Framework applications - > documentation, samples, and command-line tools and compilers." I > presume this means that this download includes the VB.NET compiler, > ADO.NET, ASP.NET and other .NET development tools - in other words > just about everything that is bundled with Microsoft's full-up version > of Visual Studio .NET? > > What has me scratching my head is this: I went to Microsoft's "Product > Information" page for Visual Studio .NET 2003 "Professional" Edition. > > URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= > 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr > > and the "full up" (not upgrade) version of Visual Studio .NET lists for > $1,079.00 direct purchase from Microsoft. > > So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, > (Version 1.1) "free" at one of their download sites while charging > $1,079.00 for [virtually] the same product at another Microsoft site? > Either I'm missing something here, or I'm totally confused, or > something. > > There has to be a "catch" here, because Microsoft doesn't "give away" > anything for free - or anything that is not "crippled" (or a woefully > lacking subset) of the full product. > > Have you actually downloaded (and used) the ".NET Framework SDK, > Version 1.1" product? (We are leaning toward recommending that our > customer buy a copy of the full up version of "Visual Studio .NET 2003 > Professional" edition.) > > Alan C. Lawhon > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, December 01, 2004 5:18 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic .NET Standard 2003 ..." > > > Hi Alan: > > I am currently following the same route, a little further ahead but if > you > look sharp I can be seen just up the trail a bit. Following are a few of > the > options out there. The actual portion of the .Net application suite that > generates the web code is ASP.Net but the full .Net studio has ASP.Net > incorporated: > > Here is the pointer to the Asp.Net webmatrix editor and appropriate > tutorials...and it is free. > http://www.asp.net/webmatrix/tour/section2/newconn.aspx > > Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and > it > is free. http://www.icsharpcode.net/OpenSource/SD/ > > The SDK can be downloaded from M$...and it is free. > http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 > 070- > 9f41-a333c6b9181d&displaylang=en > > Nothing like fair pricing and a good place to start. The best OS > platform to > develop the coding and testing is on an XP or 2000 server as they have > IIS > built in and applications can test immediately. > > Good luck and have fun. > > HTH > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Wednesday, December 01, 2004 2:15 PM > To: dba-VB at databaseadvisors.com > Cc: dba-AccessD at databaseadvisors.com > Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic > .NET Standard 2003 ..." > > > ... or just try to learn what I can from [VB.Net] books alone? > > Well, the "future" has finally arrived ... Here at work we have a > fairly > significant environmental database application that we have been using > (and > "tweaking") for the past five years. The application, called "EDS" - > which > stands for "Environmental Document System" - started off as a very > simple > Access 97 application. Over time, as the capabilities of the system > grew > and the need to provide client/server access was realized, the front end > migrated to Access 2000 and the back end [eventually] migrated to SQL > Server > 2000 - which is where we are now. > > Well, you know how customers are ... they are always wanting changes (or > "something new") and that is the case with our customer. EDS is > becoming > increasingly popular with users outside our immediate organization. So > popular, in fact, that our Government manager has requested that we "web > enable" EDS and make EDS accessible from a web browser - such as > Internet > Explorer. Gulp !! It didn't take too much web surfing (and research) > to > realize that "web enabling" EDS is going to be thirsty work ... > > The EDS database consists of multiple form and report objects with lots > of > event driven Visual Basic code. Most of the VBA code is attached to > command > buttons as Click_Event() procedures. (There's a lot of logic testing > and > conditional execution for business rule implementation within the VBA > code.) > > The research I have done (so far) indicates that I face a steep learning > curve when it comes to web programming. I'm already looking at "HTML & > XML > for Beginners" (book) by Michael Morrison and I have just ordered a > couple > of books on databases and VB.Net programming. (I have ordered > "Beginning > VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual > Basic > .NET for Microsoft Access Databases" by Rick Dobson.) I figure these > two > books will give me plenty to chew on - at least initially. > > The senior programmer and I have been looking on the internet for the > proper > .NET development tool. Right now it looks like we will be asking our > customer to pay for a full-up version of Visual Studio 2003 - or > whatever > contains the full "Professional" version of MS Visual Basic .NET. While > researching the various developer tool alternatives for VB.NET > programming, > I came across this page at Amazon.com's web site: > > http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 > > The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two > reasons: It's (relatively) affordable - less than a hundred dollars - > and > the "Standard" edition might be a good "learning tool" for playing > around > with VB.Net on my home computer. However, the "Standard" edition > appears to > have a number of ... uhm ... limitations. (Look at Frank Spillman's > "Roadblocks, Roadblocks" reader review in the above link.) > > I would be grateful if some of the folks on this list who have actually > done > some web programming (especially with VB.Net) could offer advice and > opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" > [web] development tool. Basically, I'm wondering if the "Standard" > edition > has enough capability to serve as a useful "learning tool" - or is it so > "crippled" that I would be better off simply reading .NET books? > > Thanks in advance ... > > Alan C. Lawhon > > > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Dec 7 15:37:39 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 7 Dec 2004 16:37:39 -0500 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A28DB@xlivmbx21.aig.com> Oops (pun intended) The Borland link should have been http://www.borland.com/products/downloads/download_csharpbuilder.html Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Tuesday, December 07, 2004 3:55 PM > To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com > Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy > "Microsoft Visual Basic.NET Standard 2003 ..." > > Richard: > > I do not mean to question what you're telling me, but I want to make > absolutely sure that we're both on the same wavelength. I understand > that the .NET "Framework" simply provides the .NET runtime environment, > (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, > and VB.NET - among others). > > What I am specifically asking about is the information at this: > > http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 > 070-9f41-a333c6b9181d&displaylang=en > > Microsoft download site, where the following descriptive text appears > verbatim: > > Quote: > > .NET Framework SDK Version 1.1 > > The Microsoft? .NET Framework Software Development Kit (SDK) version 1.1 > includes everything developers need to write, build, test, and deploy .NET > Framework applications - documentation, samples, and command-line tools > and compilers. > > End Quote: > > Of course, trying to decipher Microsoft marketing hyperbole can be > something of an exercise in futility, but when you read this statement > word-for-word, they do use the words "... everything developers need ..." > (among others) and they ARE describing a "Software Developer Kit" (SDK) > product. Also, the SDK download is approximately 106 Megabytes - which is > quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by > itself) is just a tad over 20 Megabytes. (I know this for a fact because > the .NET Framework [download] appears as an "optional download" when I run > Windows Update on my home computer. > > My question boils down to this: Are you SURE (really sure) that the > "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" > [download] is merely the .NET runtime environment? (If that is all it is, > what is the extra 86 Megabytes and why is Microsoft using terms like > "command-line tools and compilers" as well as "write, build, test, and > deploy .NET Framework applications ..." in their description of the > product? > > If this SDK can be used as a relatively inexpensive (or free) "learning > tool" to help me learn (and write) VB.NET code, then I think it would be > well worth the bother of downloading to my home computer - even on a slow > dial-up connection! > > I'm going to cross post this to the AccessD List in the hopes that > Charlotte Foust and John Colby will see it. > > Alan C. Lawhon > > > -----Original Message----- > From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] > Sent: Tuesday, December 07, 2004 11:32 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic.NET Standard 2003 ..." > > > Hi > The framework simply provides the dotnet runtime environment. To > develop you need Visual Studio .NET 2003 "Professional" Edition. I've > seen recently for about $700 and this includes windows 2003 and sql 2000 > (developer/test editions) - not bad really > Richard > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: 07 December 2004 17:07 > To: dba-vb at databaseadvisors.com; accessd at shaw.ca > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic.NET Standard 2003 ..." > > Jim: > > Thanks for the .NET links & info - which I am now diligently research- > ing. I need a bit of clarification concerning one of the links you > provided. First, some background ... > > We are in the process of coming up with a recommendation for our > customer > concerning what software (and development tools) should be purchased in > order to facilitate conversion of our environmental database application > to a "web enabled" environmental database application. I also have a > secondary goal of obtaining an "affordable" .NET integrated development > environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, > (and whatever-else .NET is required), on my home computer. (I have a > feeling I can learn more at home versus all the constant "distractions" > and interruptions here at work ...) > > I have visited the link you provided to Microsoft's download site for > the (free?) ".NET Framework SDK Version 1.1" IDE. According to info > at this MS site, the 106 MB download contains "everything developers > need to write, build, test, and deploy .NET Framework applications - > documentation, samples, and command-line tools and compilers." I > presume this means that this download includes the VB.NET compiler, > ADO.NET, ASP.NET and other .NET development tools - in other words > just about everything that is bundled with Microsoft's full-up version > of Visual Studio .NET? > > What has me scratching my head is this: I went to Microsoft's "Product > Information" page for Visual Studio .NET 2003 "Professional" Edition. > > URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= > 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr > > and the "full up" (not upgrade) version of Visual Studio .NET lists for > $1,079.00 direct purchase from Microsoft. > > So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, > (Version 1.1) "free" at one of their download sites while charging > $1,079.00 for [virtually] the same product at another Microsoft site? > Either I'm missing something here, or I'm totally confused, or > something. > > There has to be a "catch" here, because Microsoft doesn't "give away" > anything for free - or anything that is not "crippled" (or a woefully > lacking subset) of the full product. > > Have you actually downloaded (and used) the ".NET Framework SDK, > Version 1.1" product? (We are leaning toward recommending that our > customer buy a copy of the full up version of "Visual Studio .NET 2003 > Professional" edition.) > > Alan C. Lawhon > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, December 01, 2004 5:18 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual > Basic .NET Standard 2003 ..." > > > Hi Alan: > > I am currently following the same route, a little further ahead but if > you > look sharp I can be seen just up the trail a bit. Following are a few of > the > options out there. The actual portion of the .Net application suite that > generates the web code is ASP.Net but the full .Net studio has ASP.Net > incorporated: > > Here is the pointer to the Asp.Net webmatrix editor and appropriate > tutorials...and it is free. > http://www.asp.net/webmatrix/tour/section2/newconn.aspx > > Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and > it > is free. http://www.icsharpcode.net/OpenSource/SD/ > > The SDK can be downloaded from M$...and it is free. > http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 > 070- > 9f41-a333c6b9181d&displaylang=en > > Nothing like fair pricing and a good place to start. The best OS > platform to > develop the coding and testing is on an XP or 2000 server as they have > IIS > built in and applications can test immediately. > > Good luck and have fun. > > HTH > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Wednesday, December 01, 2004 2:15 PM > To: dba-VB at databaseadvisors.com > Cc: dba-AccessD at databaseadvisors.com > Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic > .NET Standard 2003 ..." > > > ... or just try to learn what I can from [VB.Net] books alone? > > Well, the "future" has finally arrived ... Here at work we have a > fairly > significant environmental database application that we have been using > (and > "tweaking") for the past five years. The application, called "EDS" - > which > stands for "Environmental Document System" - started off as a very > simple > Access 97 application. Over time, as the capabilities of the system > grew > and the need to provide client/server access was realized, the front end > migrated to Access 2000 and the back end [eventually] migrated to SQL > Server > 2000 - which is where we are now. > > Well, you know how customers are ... they are always wanting changes (or > "something new") and that is the case with our customer. EDS is > becoming > increasingly popular with users outside our immediate organization. So > popular, in fact, that our Government manager has requested that we "web > enable" EDS and make EDS accessible from a web browser - such as > Internet > Explorer. Gulp !! It didn't take too much web surfing (and research) > to > realize that "web enabling" EDS is going to be thirsty work ... > > The EDS database consists of multiple form and report objects with lots > of > event driven Visual Basic code. Most of the VBA code is attached to > command > buttons as Click_Event() procedures. (There's a lot of logic testing > and > conditional execution for business rule implementation within the VBA > code.) > > The research I have done (so far) indicates that I face a steep learning > curve when it comes to web programming. I'm already looking at "HTML & > XML > for Beginners" (book) by Michael Morrison and I have just ordered a > couple > of books on databases and VB.Net programming. (I have ordered > "Beginning > VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual > Basic > .NET for Microsoft Access Databases" by Rick Dobson.) I figure these > two > books will give me plenty to chew on - at least initially. > > The senior programmer and I have been looking on the internet for the > proper > .NET development tool. Right now it looks like we will be asking our > customer to pay for a full-up version of Visual Studio 2003 - or > whatever > contains the full "Professional" version of MS Visual Basic .NET. While > researching the various developer tool alternatives for VB.NET > programming, > I came across this page at Amazon.com's web site: > > http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 > > The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two > reasons: It's (relatively) affordable - less than a hundred dollars - > and > the "Standard" edition might be a good "learning tool" for playing > around > with VB.Net on my home computer. However, the "Standard" edition > appears to > have a number of ... uhm ... limitations. (Look at Frank Spillman's > "Roadblocks, Roadblocks" reader review in the above link.) > > I would be grateful if some of the folks on this list who have actually > done > some web programming (especially with VB.Net) could offer advice and > opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" > [web] development tool. Basically, I'm wondering if the "Standard" > edition > has enough capability to serve as a useful "learning tool" - or is it so > "crippled" that I would be better off simply reading .NET books? > > Thanks in advance ... > > Alan C. Lawhon > > > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Dec 7 15:52:25 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 7 Dec 2004 13:52:25 -0800 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB048@redstone819.ad.redstone.army.mil> Message-ID: <000501c4dca7$09d91f90$8500a8c0@murphyf3vdfepi> Alan, The frame work includes the runtime environment plus all the command line utilities for compiling and packaging .net applications. I belive there is .NET documentation in the SDK also. You can do your developmet in a text editor. One book that uses this approach is "Build your own ASP.NET web site using C# and VB.NET" by Zak Ruvalcaba. The book is published by Sitepoint, ISBN 0-9579218-6-1. Zak covers downloading and installing the SDK and then setting up your database of choice, MSDE, SQL or Access to use with your ASP.NET site. The thing the SDK does not have is the nice development environment that Visual Studio.NET has plus all the wizards, builders, etc. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The MicrosoftR .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Tue Dec 7 16:06:39 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Tue, 7 Dec 2004 16:06:39 -0600 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB04D@redstone819.ad.redstone.army.mil> Doug: Thanks! (This is very helpful info ...) Alan -----Original Message----- From: Doug Murphy [mailto:dw-murphy at cox.net] Sent: Tuesday, December 07, 2004 3:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Alan, The frame work includes the runtime environment plus all the command line utilities for compiling and packaging .net applications. I belive there is .NET documentation in the SDK also. You can do your developmet in a text editor. One book that uses this approach is "Build your own ASP.NET web site using C# and VB.NET" by Zak Ruvalcaba. The book is published by Sitepoint, ISBN 0-9579218-6-1. Zak covers downloading and installing the SDK and then setting up your database of choice, MSDE, SQL or Access to use with your ASP.NET site. The thing the SDK does not have is the nice development environment that Visual Studio.NET has plus all the wizards, builders, etc. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The MicrosoftR .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 7 16:38:59 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 07 Dec 2004 17:38:59 -0500 Subject: [AccessD] Good laptop cheap Message-ID: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> For all those who were not able to take advantage of the Emachines laptop (or didn't trust the brand) http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= 6851267&tab=6 A nice Toshiba for $650 after rebates. Not as much machine as the Emachines but still a good deal. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From alan.lawhon at us.army.mil Tue Dec 7 16:40:00 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Tue, 7 Dec 2004 16:40:00 -0600 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB050@redstone819.ad.redstone.army.mil> Doug: I just ordered Zak's book from Amazon.Com. Rather than shelling out hundreds of dollars for a "Professional" copy of Visual Studio .NET, I am going to immerse myself in Zak's book and see how it goes. Thanks for the tip! (I think this is just what I was looking for.) Alan C. Lawhon -----Original Message----- From: Doug Murphy [mailto:dw-murphy at cox.net] Sent: Tuesday, December 07, 2004 3:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Alan, The frame work includes the runtime environment plus all the command line utilities for compiling and packaging .net applications. I belive there is .NET documentation in the SDK also. You can do your developmet in a text editor. One book that uses this approach is "Build your own ASP.NET web site using C# and VB.NET" by Zak Ruvalcaba. The book is published by Sitepoint, ISBN 0-9579218-6-1. Zak covers downloading and installing the SDK and then setting up your database of choice, MSDE, SQL or Access to use with your ASP.NET site. The thing the SDK does not have is the nice development environment that Visual Studio.NET has plus all the wizards, builders, etc. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The MicrosoftR .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DorisH3 at aol.com Tue Dec 7 16:39:47 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Tue, 7 Dec 2004 17:39:47 EST Subject: [AccessD] Help! Message-ID: <1f2.3150f55.2ee78b33@aol.com> That would be great...my email address is dorish3 at aol.com. Thanks I appreciate all the help I can get. Doris From DorisH3 at aol.com Tue Dec 7 16:44:36 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Tue, 7 Dec 2004 17:44:36 EST Subject: [AccessD] Help! Message-ID: <19b.2caa00f1.2ee78c54@aol.com> Hi Andy, I just realized that I had 2 postings for the same question...thought the first one didn't go thru to the board and reposted. Sorry about that. I did not see any replies for the first posting "Add new data to existing table"...I did get a reply on the "Help" posting. Doris From dw-murphy at cox.net Tue Dec 7 17:08:54 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 7 Dec 2004 15:08:54 -0800 Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy"MicrosoftVisual Basic.NET Standard 2003 ..." In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB050@redstone819.ad.redstone.army.mil> Message-ID: <000801c4dcb1$bbed4df0$8500a8c0@murphyf3vdfepi> Alan, Zak's book is good to learn what is going on with the ASP pages without getting lost in the IDE. If you go this route you will need a good HTML book and/or another web page development tool to help construct the actual pages. Once you build the HTML page the book will show you how to go in and modify the tags to use the .Net web controls. If your time is worth anything you will want to get one of the DOT.NET development environments. Auto complete and help are great when writing code, especially when the syntax isn't familiar. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 2:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: [dba-VB] Please Advise: Should I Buy"MicrosoftVisual Basic.NET Standard 2003 ..." Doug: I just ordered Zak's book from Amazon.Com. Rather than shelling out hundreds of dollars for a "Professional" copy of Visual Studio .NET, I am going to immerse myself in Zak's book and see how it goes. Thanks for the tip! (I think this is just what I was looking for.) Alan C. Lawhon -----Original Message----- From: Doug Murphy [mailto:dw-murphy at cox.net] Sent: Tuesday, December 07, 2004 3:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Alan, The frame work includes the runtime environment plus all the command line utilities for compiling and packaging .net applications. I belive there is .NET documentation in the SDK also. You can do your developmet in a text editor. One book that uses this approach is "Build your own ASP.NET web site using C# and VB.NET" by Zak Ruvalcaba. The book is published by Sitepoint, ISBN 0-9579218-6-1. Zak covers downloading and installing the SDK and then setting up your database of choice, MSDE, SQL or Access to use with your ASP.NET site. The thing the SDK does not have is the nice development environment that Visual Studio.NET has plus all the wizards, builders, etc. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, December 07, 2004 12:55 PM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] RE: [dba-VB] Please Advise: Should I Buy "MicrosoftVisual Basic.NET Standard 2003 ..." Richard: I do not mean to question what you're telling me, but I want to make absolutely sure that we're both on the same wavelength. I understand that the .NET "Framework" simply provides the .NET runtime environment, (and NOT the various .Net developer tools - such as ASP.NET, ADO.NET, and VB.NET - among others). What I am specifically asking about is the information at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070-9f41-a333c6b9181d&displaylang=en Microsoft download site, where the following descriptive text appears verbatim: Quote: .NET Framework SDK Version 1.1 The MicrosoftR .NET Framework Software Development Kit (SDK) version 1.1 includes everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers. End Quote: Of course, trying to decipher Microsoft marketing hyperbole can be something of an exercise in futility, but when you read this statement word-for-word, they do use the words "... everything developers need ..." (among others) and they ARE describing a "Software Developer Kit" (SDK) product. Also, the SDK download is approximately 106 Megabytes - which is quite a bucket of bits! (Pardon the pun ...) The .NET Framework (by itself) is just a tad over 20 Megabytes. (I know this for a fact because the .NET Framework [download] appears as an "optional download" when I run Windows Update on my home computer. My question boils down to this: Are you SURE (really sure) that the "Microsoft .NET Framework Software Development Kit (SDK) version 1.1" [download] is merely the .NET runtime environment? (If that is all it is, what is the extra 86 Megabytes and why is Microsoft using terms like "command-line tools and compilers" as well as "write, build, test, and deploy .NET Framework applications ..." in their description of the product? If this SDK can be used as a relatively inexpensive (or free) "learning tool" to help me learn (and write) VB.NET code, then I think it would be well worth the bother of downloading to my home computer - even on a slow dial-up connection! I'm going to cross post this to the AccessD List in the hopes that Charlotte Foust and John Colby will see it. Alan C. Lawhon -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, December 07, 2004 11:32 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Hi The framework simply provides the dotnet runtime environment. To develop you need Visual Studio .NET 2003 "Professional" Edition. I've seen recently for about $700 and this includes windows 2003 and sql 2000 (developer/test editions) - not bad really Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 07 December 2004 17:07 To: dba-vb at databaseadvisors.com; accessd at shaw.ca Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic.NET Standard 2003 ..." Jim: Thanks for the .NET links & info - which I am now diligently research- ing. I need a bit of clarification concerning one of the links you provided. First, some background ... We are in the process of coming up with a recommendation for our customer concerning what software (and development tools) should be purchased in order to facilitate conversion of our environmental database application to a "web enabled" environmental database application. I also have a secondary goal of obtaining an "affordable" .NET integrated development environment so that I can "play around" with VB.NET, ADO.NET, ASP.NET, (and whatever-else .NET is required), on my home computer. (I have a feeling I can learn more at home versus all the constant "distractions" and interruptions here at work ...) I have visited the link you provided to Microsoft's download site for the (free?) ".NET Framework SDK Version 1.1" IDE. According to info at this MS site, the 106 MB download contains "everything developers need to write, build, test, and deploy .NET Framework applications - documentation, samples, and command-line tools and compilers." I presume this means that this download includes the VB.NET compiler, ADO.NET, ASP.NET and other .NET development tools - in other words just about everything that is bundled with Microsoft's full-up version of Visual Studio .NET? What has me scratching my head is this: I went to Microsoft's "Product Information" page for Visual Studio .NET 2003 "Professional" Edition. URL: http://www.microsoft.com/products/info/product.aspx?view=22&pcid= 9fdcc2af-6b86-4ee8-9b71-90cebe8626e6&type=ovr and the "full up" (not upgrade) version of Visual Studio .NET lists for $1,079.00 direct purchase from Microsoft. So, why is Microsoft, in effect, "giving away" the .NET Framework SDK, (Version 1.1) "free" at one of their download sites while charging $1,079.00 for [virtually] the same product at another Microsoft site? Either I'm missing something here, or I'm totally confused, or something. There has to be a "catch" here, because Microsoft doesn't "give away" anything for free - or anything that is not "crippled" (or a woefully lacking subset) of the full product. Have you actually downloaded (and used) the ".NET Framework SDK, Version 1.1" product? (We are leaning toward recommending that our customer buy a copy of the full up version of "Visual Studio .NET 2003 Professional" edition.) Alan C. Lawhon -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, December 01, 2004 5:18 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." Hi Alan: I am currently following the same route, a little further ahead but if you look sharp I can be seen just up the trail a bit. Following are a few of the options out there. The actual portion of the .Net application suite that generates the web code is ASP.Net but the full .Net studio has ASP.Net incorporated: Here is the pointer to the Asp.Net webmatrix editor and appropriate tutorials...and it is free. http://www.asp.net/webmatrix/tour/section2/newconn.aspx Sharpe Develop is IDE has Asp.Net, C#.Net and Vb.Net (Open source)...and it is free. http://www.icsharpcode.net/OpenSource/SD/ The SDK can be downloaded from M$...and it is free. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4 070- 9f41-a333c6b9181d&displaylang=en Nothing like fair pricing and a good place to start. The best OS platform to develop the coding and testing is on an XP or 2000 server as they have IIS built in and applications can test immediately. Good luck and have fun. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 01, 2004 2:15 PM To: dba-VB at databaseadvisors.com Cc: dba-AccessD at databaseadvisors.com Subject: [dba-VB] Please Advise: Should I Buy "Microsoft Visual Basic .NET Standard 2003 ..." ... or just try to learn what I can from [VB.Net] books alone? Well, the "future" has finally arrived ... Here at work we have a fairly significant environmental database application that we have been using (and "tweaking") for the past five years. The application, called "EDS" - which stands for "Environmental Document System" - started off as a very simple Access 97 application. Over time, as the capabilities of the system grew and the need to provide client/server access was realized, the front end migrated to Access 2000 and the back end [eventually] migrated to SQL Server 2000 - which is where we are now. Well, you know how customers are ... they are always wanting changes (or "something new") and that is the case with our customer. EDS is becoming increasingly popular with users outside our immediate organization. So popular, in fact, that our Government manager has requested that we "web enable" EDS and make EDS accessible from a web browser - such as Internet Explorer. Gulp !! It didn't take too much web surfing (and research) to realize that "web enabling" EDS is going to be thirsty work ... The EDS database consists of multiple form and report objects with lots of event driven Visual Basic code. Most of the VBA code is attached to command buttons as Click_Event() procedures. (There's a lot of logic testing and conditional execution for business rule implementation within the VBA code.) The research I have done (so far) indicates that I face a steep learning curve when it comes to web programming. I'm already looking at "HTML & XML for Beginners" (book) by Michael Morrison and I have just ordered a couple of books on databases and VB.Net programming. (I have ordered "Beginning VB.Net Databases" by Thearon Willis and "Programming Microsoft Visual Basic .NET for Microsoft Access Databases" by Rick Dobson.) I figure these two books will give me plenty to chew on - at least initially. The senior programmer and I have been looking on the internet for the proper .NET development tool. Right now it looks like we will be asking our customer to pay for a full-up version of Visual Studio 2003 - or whatever contains the full "Professional" version of MS Visual Basic .NET. While researching the various developer tool alternatives for VB.NET programming, I came across this page at Amazon.com's web site: http://www.amazon.com/exec/obidos/ASIN/B000089GKW/002-1179299-3348025 The "Standard" edition of Microsoft VB.Net [2003] appeals to me for two reasons: It's (relatively) affordable - less than a hundred dollars - and the "Standard" edition might be a good "learning tool" for playing around with VB.Net on my home computer. However, the "Standard" edition appears to have a number of ... uhm ... limitations. (Look at Frank Spillman's "Roadblocks, Roadblocks" reader review in the above link.) I would be grateful if some of the folks on this list who have actually done some web programming (especially with VB.Net) could offer advice and opinions with respect to the "Microsoft Visual Basic .NET Standard 2003" [web] development tool. Basically, I'm wondering if the "Standard" edition has enough capability to serve as a useful "learning tool" - or is it so "crippled" that I would be better off simply reading .NET books? Thanks in advance ... Alan C. Lawhon _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 8 00:46:41 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 7 Dec 2004 22:46:41 -0800 Subject: [AccessD] Report Cancel Issue Message-ID: <000401c4dcf1$af9fefe0$6501a8c0@delllaptop> The message box is OK. I am trying to kill the " The ReportOpen action was canceled box" is unwelcome. How can I make it go away. Private Sub Report_NoData(Cancel As Integer) Dim lngRetval As Long DoCmd.SetWarnings False lngRetval = MsgBox( _ "There are no products requiring a QAIP Form in for this Purcase Order.", _ vbOKOnly + vbInformation + vbSystemModal + vbDefaultButton1, _ "No QAIP for this PO") Select Case lngRetval Case vbOK Cancel = True End Select DoCmd.SetWarnings True Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net From viner at EUnet.yu Wed Dec 8 00:15:22 2004 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 8 Dec 2004 07:15:22 +0100 Subject: [AccessD] No, itt a cim is : Good laptop cheap References: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> Message-ID: <008301c4dcf2$17c50240$0100a8c0@razvoj> Akarlak rabeszelni hogy vegyel laptopot :))) E. > For all those who were not able to take advantage of the Emachines laptop > (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > From pedro at plex.nl Wed Dec 8 08:27:19 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 08 Dec 2004 08:27:19 (MET) Subject: [AccessD] import tekst wizard A2003 Message-ID: <200412080727.iB87RJVD016085@mailhostC.plex.net> Hello Marty, thanks for the help. When i searched the knowledge base i couldn't find an answer to the problem. Pedro Janssen In antwoord op: > From: MartyConnelly > To: Access Developers discussion and problem solving > Date: Tue, 07 Dec 2004 09:05:57 -0800 > Subject: Re: [AccessD] import tekst wizard A2003 > > > You need the Office 2003 SP1 or the March 2004 Access 2003 hotfix > I think they rolled the hotfixes into the SP1 > > Description of the Access 2003 hotfix package: March 17, 2004 > http://support.microsoft.com/kb/837003 > > Issues that are fixed in Access 2003 by Office 2003 Service Pack 1 > http://support.microsoft.com/default.aspx?kbid=872834 > > " When you use the Import Spreadsheet Wizard in Microsoft Access or the > Import Text Wizard in Microsoft Access to import a Microsoft Excel file > or a text file, you can modify the field information for only the first > field that is on the fourth page of the Import Spreadsheet Wizard or the > Import Text Wizard.ReasonThe problem is related to both the Import > Spreadsheet Wizard and the Import Text Wizard. > > > pedro at plex.nl wrote: > > >Hello Group, > > > >in the hospital were i am working we changed from A2k to A2003. > >The import tekst wizard doesn't work properly. > >When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. > > > >Is this a general problem and is there a solution. > > > >Pedro Janssen > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Wed Dec 8 08:26:40 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 08 Dec 2004 08:26:40 (MET) Subject: [AccessD] import tekst wizard A2003 Message-ID: <200412080726.iB87Qeiv016065@mailhostC.plex.net> Hello Marty, thanks for the help. When i searched the knowledge base i couldn't find an answer to the problem. Pedro Janssen In antwoord op: > From: MartyConnelly > To: Access Developers discussion and problem solving > Date: Tue, 07 Dec 2004 09:05:57 -0800 > Subject: Re: [AccessD] import tekst wizard A2003 > > > You need the Office 2003 SP1 or the March 2004 Access 2003 hotfix > I think they rolled the hotfixes into the SP1 > > Description of the Access 2003 hotfix package: March 17, 2004 > http://support.microsoft.com/kb/837003 > > Issues that are fixed in Access 2003 by Office 2003 Service Pack 1 > http://support.microsoft.com/default.aspx?kbid=872834 > > " When you use the Import Spreadsheet Wizard in Microsoft Access or the > Import Text Wizard in Microsoft Access to import a Microsoft Excel file > or a text file, you can modify the field information for only the first > field that is on the fourth page of the Import Spreadsheet Wizard or the > Import Text Wizard.ReasonThe problem is related to both the Import > Spreadsheet Wizard and the Import Text Wizard. > > > pedro at plex.nl wrote: > > >Hello Group, > > > >in the hospital were i am working we changed from A2k to A2003. > >The import tekst wizard doesn't work properly. > >When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. > > > >Is this a general problem and is there a solution. > > > >Pedro Janssen > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Wed Dec 8 08:26:59 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 08 Dec 2004 08:26:59 (MET) Subject: [AccessD] import tekst wizard A2003 Message-ID: <200412080726.iB87Qxjc016073@mailhostC.plex.net> Hello Marty, thanks for the help. When i searched the knowledge base i couldn't find an answer to the problem. Pedro Janssen In antwoord op: > From: MartyConnelly > To: Access Developers discussion and problem solving > Date: Tue, 07 Dec 2004 09:05:57 -0800 > Subject: Re: [AccessD] import tekst wizard A2003 > > > You need the Office 2003 SP1 or the March 2004 Access 2003 hotfix > I think they rolled the hotfixes into the SP1 > > Description of the Access 2003 hotfix package: March 17, 2004 > http://support.microsoft.com/kb/837003 > > Issues that are fixed in Access 2003 by Office 2003 Service Pack 1 > http://support.microsoft.com/default.aspx?kbid=872834 > > " When you use the Import Spreadsheet Wizard in Microsoft Access or the > Import Text Wizard in Microsoft Access to import a Microsoft Excel file > or a text file, you can modify the field information for only the first > field that is on the fourth page of the Import Spreadsheet Wizard or the > Import Text Wizard.ReasonThe problem is related to both the Import > Spreadsheet Wizard and the Import Text Wizard. > > > pedro at plex.nl wrote: > > >Hello Group, > > > >in the hospital were i am working we changed from A2k to A2003. > >The import tekst wizard doesn't work properly. > >When changing the first fieldname, this changed fieldname stays in the following fields. It doesn't give then field2 etc. When changing the name in Field two the name from the original field1 also changes. > > > >Is this a general problem and is there a solution. > > > >Pedro Janssen > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Wed Dec 8 01:52:34 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 8 Dec 2004 07:52:34 -0000 Subject: [AccessD] Help! In-Reply-To: <19b.2caa00f1.2ee78c54@aol.com> Message-ID: <002201c4dcfa$e0f93660$b274d0d5@minster33c3r25> No problem. Odd that you haven't had the first two replies. They're from Liz Doering and Darren Dick if you want to double check. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > DorisH3 at aol.com > Sent: 07 December 2004 22:45 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Help! > > > Hi Andy, > > I just realized that I had 2 postings for the same > question...thought the > first one didn't go thru to the board and reposted. Sorry > about that. I did not > see any replies for the first posting "Add new data to > existing table"...I > did get a reply on the "Help" posting. > > Doris > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From cyx5 at cdc.gov Wed Dec 8 05:38:04 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 8 Dec 2004 06:38:04 -0500 Subject: [AccessD] Report Cancel Issue Message-ID: Private Sub Report_NoData(Cancel As Integer) MsgBox "There is no data to print", vbInformation + vbOKOnly, "NoData Cancellation" Cancel = True End Sub If you're opening the report from code behind a form, you need to handle the error that's generated as a result. Private Sub TestNoData_Click() On Error Resume Next DoCmd.OpenReport "SomeReport", acViewPreview If Err = 2501 Then Err.Clear End Sub Or, check the FMS detailed pitfalls documentation at: http://www.fmsinc.com/tpapers/genaccess/reporttips.html -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 08, 2004 1:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Cancel Issue The message box is OK. I am trying to kill the " The ReportOpen action was canceled box" is unwelcome. How can I make it go away. Private Sub Report_NoData(Cancel As Integer) Dim lngRetval As Long DoCmd.SetWarnings False lngRetval = MsgBox( _ "There are no products requiring a QAIP Form in for this Purcase Order.", _ vbOKOnly + vbInformation + vbSystemModal + vbDefaultButton1, _ "No QAIP for this PO") Select Case lngRetval Case vbOK Cancel = True End Select DoCmd.SetWarnings True Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DorisH3 at aol.com Wed Dec 8 06:47:40 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Wed, 8 Dec 2004 07:47:40 EST Subject: [AccessD] Help! Message-ID: Hi Andy Never got them....I wonder how I can get them to resend their posting? Thanks I appreciate all the help you have extended me....Doris From carbonnb at gmail.com Wed Dec 8 07:12:50 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 8 Dec 2004 08:12:50 -0500 Subject: [AccessD] Help! In-Reply-To: References: Message-ID: On Wed, 8 Dec 2004 07:47:40 EST, DorisH3 at aol.com wrote: > Hi Andy > > Never got them....I wonder how I can get them to resend their posting? > Thanks I appreciate all the help you have extended me....Doris You can always look in the archives: http://databaseadvisors.com/pipermail/accessd/ for the main archive page or http://databaseadvisors.com/pipermail/accessd/2004-December/029800.html and http://databaseadvisors.com/pipermail/accessd/2004-December/029801.html for the specific messages. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From DorisH3 at aol.com Wed Dec 8 07:26:50 2004 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Wed, 8 Dec 2004 08:26:50 EST Subject: [AccessD] Thanks Liz Message-ID: <141.3aaa867f.2ee85b1a@aol.com> Just want to thank you for your good advice and code....it is greatly appreciated. Have a great holiday. Doris From ldoering at symphonyinfo.com Wed Dec 8 09:47:11 2004 From: ldoering at symphonyinfo.com (Liz Doering) Date: Wed, 8 Dec 2004 09:47:11 -0600 Subject: [AccessD] Thanks Liz Message-ID: <200412080947.AA1320878382@symphonyinfo.com> I'm glad to be able to help someone else for a change--this list has been a great help to me! Liz ---------- Original Message ---------------------------------- From: DorisH3 at aol.com Reply-To: Access Developers discussion and problem solving Date: Wed, 8 Dec 2004 08:26:50 EST Just want to thank you for your good advice and code....it is greatly appreciated. Have a great holiday. Doris -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwhittinghill at symphonyinfo.com Wed Dec 8 10:06:51 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Wed, 8 Dec 2004 10:06:51 -0600 Subject: [AccessD] VSS and getting an older Version of VB6 project Message-ID: <023701c4dd3f$ef3e6b60$2601a8c0@Symphony.local> Hi all, I have a VB6 project that I have source safed. I create labels at various points in development. I would like to rebuild my source code from a previous version, but I don't want to rollback from the most recent. Can anyone tell me how to do this? Thanks, Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com From mark.breen at gmail.com Wed Dec 8 12:38:13 2004 From: mark.breen at gmail.com (Mark Breen) Date: Wed, 8 Dec 2004 18:38:13 +0000 Subject: [AccessD] Good laptop cheap In-Reply-To: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> References: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> Message-ID: <26a96cce041208103814b7341f@mail.gmail.com> Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines laptop > (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Mark.Mitsules at ngc.com Wed Dec 8 13:55:22 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Wed, 8 Dec 2004 14:55:22 -0500 Subject: [AccessD] FW: [dba-Tech] Google Alerts Message-ID: X-posted. -----Original Message----- From: Mitsules, Mark Sent: Wednesday, December 08, 2004 11:38 AM To: dba-tech at databaseadvisors.com Subject: [dba-Tech] Google Alerts Group, Wasn't quite sure where to post this, so here goes. I am the webmaster for my departmental website. I made it clear from the onset when I took the job that I would NOT be responsible for creating the ongoing content, merely its presentation. Sad to say, but it appears that the content providers aren't responsible either;) In an attempt to provide ongoing unique content, I have looked into Google alerts. I'm setting up one now for industry related news. My question is this: I will be receiving these alerts through Outlook with the goal of posting them to our website in a timely manner using an automatic or semi-automatic process. Any great ideas on how to proceed? Mark _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Wed Dec 8 14:02:49 2004 From: bheygood at abestsystems.com (Bob Heygood) Date: Wed, 8 Dec 2004 12:02:49 -0800 Subject: [AccessD] Good laptop cheap In-Reply-To: <26a96cce041208103814b7341f@mail.gmail.com> Message-ID: curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines laptop > (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Wed Dec 8 14:45:11 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Wed, 8 Dec 2004 14:45:11 -0600 Subject: [AccessD] Good laptop cheap Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB062@redstone819.ad.redstone.army.mil> Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines laptop > (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Dec 8 16:10:12 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 8 Dec 2004 16:10:12 -0600 Subject: [AccessD] Set form's Caption without code Message-ID: <100F91B31300334B89EC531C9DCB08653F61C8@tccexch01.tappeconstruction.net> Andy, Screen.ActiveForm can be really picky, and I try to avoid using it if possible. Can you call it instead using the following syntax: =SetCaption([Form],"x") I would try placing this in the On Load event. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, December 07, 2004 4:59 AM To: Dba Subject: [AccessD] Set form's Caption without code Ok, here's the thing. I want to make a few forms lightweight which currently have just a line or two in modules. A few have nothing more than a line which dynamically sets the form's caption. So I wrote a little function like this: Function SetCaption(frm As Form, strCaption As String) frm.Caption = strCaption End Function and then changed my form's OnOpen from being an Event Procedure to : =SetCaption([Screen].[ActiveForm],"x") (The "x" is just for testing. The real call would have something a bit more dynamic, like the result of a function call.) The thing is that it errors because it can't resolve [Screen].[ActiveForm] at that point. Ok, methinks, I'll move the call. But I can't find where to put it. All of the following fail: On Load On GotFocus of the first control On Current The only success I've had is putting a timer interval of 5 and putting the call in OnTimer, but I don't like that much as you can imagine. If I force a call to it once the form's up then there's no problem (eg a command button), but that's not a lot of use to me either. So I know the function is fine, but has anyone got an answer as to where I might get this to run from? -- Andy Lacey http://www.minstersystems.co.uk -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From d.dick at uws.edu.au Wed Dec 8 16:14:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 9 Dec 2004 09:14:45 +1100 Subject: [AccessD] A2003: FTP and Network Connection Gurus Message-ID: <200412082214.iB8MEox6014414@cooper.uws.edu.au> Hi All I need to add an FTP upload screen to one of my APPS Firstly - lemme say I know nothing about such things The client's Network dude gave me... A Server Name A UserName And a Password So...I opened up an FTP client and successfully transferred the back end of the app (About 4meg) to the FTP location he supplied with the credentials he supplied - Phew so far so good :-)) Anyone got any code or forms or URL's they'd like to share so I can incorporate something like an FTP scheduler in my app, to run nightly? Secondly how do I then link a front end to this FTP'd backend? I know the IPADRRESS of the FTP destination, but don't know the share or what the 'true' location of the FTP'd file is I have relinking code that can link to all the tables in say.... \\123.123.456.789\SomeShare\SomedB.mdb But how to I work out a path like that from the FTP info I have so far?? Many thanks in advance Darren From BBarabash at TappeConstruction.com Wed Dec 8 16:14:54 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 8 Dec 2004 16:14:54 -0600 Subject: [AccessD] VSS and getting an older Version of VB6 project Message-ID: <100F91B31300334B89EC531C9DCB08653F61C9@tccexch01.tappeconstruction.net> Mark, In VSS Explorer, right click on the project file and select Show History... Press OK to the dialog it displays and it will show you a revision history. Click on the version you would like to revert to and press the Get button. Select a file path to save the file to (preferably one that won't overwrite your current project). Repeat as necessary for all other forms, modules, classes, etc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Whittinghill Sent: Wednesday, December 08, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: [AccessD] VSS and getting an older Version of VB6 project Hi all, I have a VB6 project that I have source safed. I create labels at various points in development. I would like to rebuild my source code from a previous version, but I don't want to rollback from the most recent. Can anyone tell me how to do this? Thanks, Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From artful at rogers.com Wed Dec 8 16:15:38 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 08 Dec 2004 17:15:38 -0500 Subject: [AccessD] ODBC etc. link to Btrieve db? In-Reply-To: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> References: <002c01c4dcad$8e87bd90$e8dafea9@ColbyM6805> Message-ID: <41B77D0A.4040002@rogers.com> Is there such a thing? Does it cost money? A client has an ancient (DOS!) Btrieve app which can export text files but I'd like to eliminate this step if possible. Any way to hook Access to the Btrieve db automatically? TIA, Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004 From mastercafe at ctv.es Wed Dec 8 17:25:09 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Thu, 9 Dec 2004 00:25:09 +0100 Subject: [AccessD] In-Reply-To: Message-ID: <000c01c4dd7d$296630b0$0500a8c0@masterserv> Hi group, this week we are looking for DATE problems and solutions over this bug from Access. We use normally dd/mm/yyyy to capture de date information, and configure the windows DATE/TIME to this format, when yo try to input some date you can see this diferences: Input Format Format dd/mmm/yy 01/02/2001 - 01 Feb 01 03/02/2001 - 02 Mar 01 13/02/2001 - 13 Feb 01 03/04/2001 - 03 Apr 01 Its totally stupid the translation, we saw that use the main format as they want. If you put a day over >12 then the format it's OK dd/mm/yyyy, but if you put a day under 13 depend of the month.. If the month if higher then the format that the use is mm/dd/yyyy but not always, only for months lower than 6. At this moment we only found a solution for this, convert all date to string 8 positions (yyyymmdd) and then use this ISO format to make any SQL, but the speed are not good on a large ammount of registry. Any ideas to control de DATE correctly?? We problem we saw in Access 2 and always use String format, but actually we hope that with Access XP and WinXP could be solved. Thanks. Juan Menendez From jwcolby at colbyconsulting.com Wed Dec 8 18:13:36 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 08 Dec 2004 19:13:36 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: Message-ID: <001901c4dd83$f17caab0$e8dafea9@ColbyM6805> Yes, they come with a restore disk with windows on it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Wednesday, December 08, 2004 3:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Dec 8 18:17:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 08 Dec 2004 19:17:32 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: <26a96cce041208103814b7341f@mail.gmail.com> Message-ID: <001a01c4dd84$7df55c30$e8dafea9@ColbyM6805> Naw, I LOVE my emachines m6805 Laptop. Athlon64 with 1.25g ram, 60g 7200 rpm hard disk, Cd/DVD player (no writer) ATI 9600 graphics. It's a "desktop replacement" and it is just an awesome machine. I paid $1250 for it after rebate. The m5405 I got for my Wife is not as powerful as mine (though pretty close) but a much better deal than mine was. For her use it is way more than she needs and I paid just $650 after rebates. The one I just published was so good a deal it immediately sold out. ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 1:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& > skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 8 19:55:31 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 8 Dec 2004 17:55:31 -0800 Subject: [AccessD] Good laptop cheap Message-ID: I, on the other hand, buy no name laptops from a distributor and purchase a new copy of windows pro. Since I buy a new laptop when I "outgrow" the prior one, I just move my programs to that machine, so I don't want a new version. Besides, I have yet to find a machine that comes with the developer editions on it. Charlotte Foust -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Wednesday, December 08, 2004 12:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&sk uId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Dec 8 20:25:12 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Dec 2004 12:25:12 +1000 Subject: [AccessD] A2003: FTP and Network Connection Gurus In-Reply-To: <200412082214.iB8MEox6014414@cooper.uws.edu.au> Message-ID: <41B84428.16247.A76C13B@lexacorp.com.pg> On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things > The client's Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the > back end of the app (About 4meg) to the FTP location he supplied > with the credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript > Secondly how do I then link a front end to this FTP'd backend? > I know the IPADRRESS of the FTP destination, but don't know the > share or what the 'true' location of the FTP'd file is > > I have relinking code that can link to all the tables in say.... > \\123.123.456.789\SomeShare\SomedB.mdb > But how to I work out a path like that from the FTP info I have so far?? > You can't. His FTP structure does not necessarily bear any resemblance to the path which Access will use. You will have to ask the recipient what UNC path the FE will access the BE through. -- Stuart From pcs at azizaz.com Wed Dec 8 20:39:35 2004 From: pcs at azizaz.com (Borge Hansen) Date: Thu, 9 Dec 2004 12:39:35 +1000 Subject: [AccessD] References: <000c01c4dd7d$296630b0$0500a8c0@masterserv> Message-ID: <01e601c4dd98$52ae5220$fa10a8c0@Albatross> Try and customize the settings of languages, numbers, times and dates. You probably have your machine set to a US English format.... On WinXP go Control Panel => Regional and Language Options. This should clear up the problem you are describing. Always use US date format when you are using a Date as a selection criterium, etc. in SQL action queries. Hope this helps Borge ----- Original Message ----- From: "MastercafeCTV" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:25 AM Subject: [AccessD] > > Hi group, this week we are looking for DATE problems and solutions over this > bug from Access. > > We use normally dd/mm/yyyy to capture de date information, and configure the > windows DATE/TIME to this format, when yo try to input some date you can see > this diferences: > > Input Format Format dd/mmm/yy > 01/02/2001 - 01 Feb 01 > 03/02/2001 - 02 Mar 01 > 13/02/2001 - 13 Feb 01 > 03/04/2001 - 03 Apr 01 > > Its totally stupid the translation, we saw that use the main format as they > want. If you put a day over >12 then the format it's OK dd/mm/yyyy, but if > you put a day under 13 depend of the month.. If the month if higher then the > format that the use is mm/dd/yyyy but not always, only for months lower than > 6. > > At this moment we only found a solution for this, convert all date to string > 8 positions (yyyymmdd) and then use this ISO format to make any SQL, but the > speed are not good on a large ammount of registry. > > Any ideas to control de DATE correctly?? We problem we saw in Access 2 and > always use String format, but actually we hope that with Access XP and WinXP > could be solved. > > Thanks. > > > Juan Menendez > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 From mastercafe at ctv.es Wed Dec 8 21:02:35 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Thu, 9 Dec 2004 04:02:35 +0100 Subject: [AccessD] Date Problem In-Reply-To: <01e601c4dd98$52ae5220$fa10a8c0@Albatross> Message-ID: <002201c4dd9b$94e56ef0$0500a8c0@masterserv> We check this many time and this is not the problem. Actually we use Spanish format to introduce all date dd/mm/yyyy and when we need a SQL filter try to put Format(field;'yyyymmdd') to void the problem. Look this: Field 1 Field 2 Field 3 Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data Cname1 01/03/2001 Some data -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: jueves, 09 de diciembre de 2004 03:40 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Try and customize the settings of languages, numbers, times and dates. You probably have your machine set to a US English format.... On WinXP go Control Panel => Regional and Language Options. This should clear up the problem you are describing. Always use US date format when you are using a Date as a selection criterium, etc. in SQL action queries. Hope this helps Borge ----- Original Message ----- From: "MastercafeCTV" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:25 AM Subject: [AccessD] > > Hi group, this week we are looking for DATE problems and solutions > over this > bug from Access. > > We use normally dd/mm/yyyy to capture de date information, and > configure the > windows DATE/TIME to this format, when yo try to input some date you > can see > this diferences: > > Input Format Format dd/mmm/yy > 01/02/2001 - 01 Feb 01 > 03/02/2001 - 02 Mar 01 > 13/02/2001 - 13 Feb 01 > 03/04/2001 - 03 Apr 01 > > Its totally stupid the translation, we saw that use the main format as they > want. If you put a day over >12 then the format it's OK dd/mm/yyyy, > but if you put a day under 13 depend of the month.. If the month if > higher then the > format that the use is mm/dd/yyyy but not always, only for months > lower than > 6. > > At this moment we only found a solution for this, convert all date to string > 8 positions (yyyymmdd) and then use this ISO format to make any SQL, > but the > speed are not good on a large ammount of registry. > > Any ideas to control de DATE correctly?? We problem we saw in Access 2 > and always use String format, but actually we hope that with Access XP > and WinXP > could be solved. > > Thanks. > > > Juan Menendez > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Wed Dec 8 21:09:01 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Thu, 9 Dec 2004 04:09:01 +0100 Subject: [AccessD] Date Problem In-Reply-To: <01e601c4dd98$52ae5220$fa10a8c0@Albatross> Message-ID: <002301c4dd9c$79d0cbe0$0500a8c0@masterserv> We check this many time and this is not the problem. Actually we use Spanish format to introduce all date dd/mm/yyyy and when we need a SQL filter try to put Format(field;'yyyymmdd') to void the problem. Look this: Field 1 Field 2 Field 3 Cname1 01/03/2001 Some data Cname2 01/04/2001 Some data Cname3 01/05/2001 Some data Cname4 01/06/2001 Some data Cname5 01/07/2001 Some data Cname6 01/08/2001 Some data Cname7 01/09/2001 Some data Cname8 01/10/2001 Some data Cname9 01/11/2001 Some data If we try to Select * from DDBB where field2>=#01/06/2001# Normally you must be obtain Cname4 to 9, but we obtain all (01 is month) If we try to Select * from DDBB where field2>=#13/06/2001# Normally you must be obtain Cname5 to 9 in this case run perfect (13 is day) Then we change our SQl to Select * from DDBB where format(field2,'yyyymmdd')>='20010601' you must be obtain Cname4 to 9 and in this case run perfect again. Why sometimes change Day with Month?.. Not in Control Panel, not in Access Options... Where?? And why? A feel stupid with this yet. Thanks Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: jueves, 09 de diciembre de 2004 03:40 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Try and customize the settings of languages, numbers, times and dates. You probably have your machine set to a US English format.... On WinXP go Control Panel => Regional and Language Options. This should clear up the problem you are describing. Always use US date format when you are using a Date as a selection criterium, etc. in SQL action queries. Hope this helps Borge ----- Original Message ----- From: "MastercafeCTV" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:25 AM Subject: [AccessD] > > Hi group, this week we are looking for DATE problems and solutions > over this > bug from Access. > > We use normally dd/mm/yyyy to capture de date information, and > configure the > windows DATE/TIME to this format, when yo try to input some date you > can see > this diferences: > > Input Format Format dd/mmm/yy > 01/02/2001 - 01 Feb 01 > 03/02/2001 - 02 Mar 01 > 13/02/2001 - 13 Feb 01 > 03/04/2001 - 03 Apr 01 > > Its totally stupid the translation, we saw that use the main format as they > want. If you put a day over >12 then the format it's OK dd/mm/yyyy, > but if you put a day under 13 depend of the month.. If the month if > higher then the > format that the use is mm/dd/yyyy but not always, only for months > lower than > 6. > > At this moment we only found a solution for this, convert all date to string > 8 positions (yyyymmdd) and then use this ISO format to make any SQL, > but the > speed are not good on a large ammount of registry. > > Any ideas to control de DATE correctly?? We problem we saw in Access 2 > and always use String format, but actually we hope that with Access XP > and WinXP > could be solved. > > Thanks. > > > Juan Menendez > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 8 21:34:43 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 8 Dec 2004 19:34:43 -0800 Subject: [AccessD] Event only if sending report to the printer Message-ID: <000801c4dda0$095e5720$6501a8c0@delllaptop> I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From stuart at lexacorp.com.pg Wed Dec 8 21:50:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Dec 2004 13:50:45 +1000 Subject: [AccessD] Date Problem In-Reply-To: <002301c4dd9c$79d0cbe0$0500a8c0@masterserv> References: <01e601c4dd98$52ae5220$fa10a8c0@Albatross> Message-ID: <41B85835.9842.AC502AD@lexacorp.com.pg> On 9 Dec 2004 at 4:09, MastercafeCTV wrote: > We check this many time and this is not the problem. > > Actually we use Spanish format to introduce all date dd/mm/yyyy and when we > need a SQL filter try to put Format(field;'yyyymmdd') to void the problem. > > Look this: > Field 1 Field 2 Field 3 > Cname1 01/03/2001 Some data > Cname2 01/04/2001 Some data > Cname3 01/05/2001 Some data > Cname4 01/06/2001 Some data > Cname5 01/07/2001 Some data > Cname6 01/08/2001 Some data > Cname7 01/09/2001 Some data > Cname8 01/10/2001 Some data > Cname9 01/11/2001 Some data > OK - the above are displayed in your short date format of dd/mm/yy > If we try to Select * from DDBB where field2>=#01/06/2001# Normally you must > be obtain Cname4 to 9, but we obtain all (01 is month) SQL "Select ...... #...#" assumes a US date format mm/dd/yyyy if valid so it selects everything greater than 6 Jan 2001. > If we try to Select * from DDBB where field2>=#13/06/2001# Normally you must > be obtain Cname5 to 9 in this case run perfect (13 is day) SInce 13 is not a valid month, the SQL falls back to the second *possible* (see below re 2 digit years) interpretation and uses 13 Jun 2001 instead. > Then we change our SQl to Select * from DDBB where > format(field2,'yyyymmdd')>='20010601' you must be obtain Cname4 to 9 and in > this case run perfect again. That's logical. > Why sometimes change Day with Month?.. Not in Control Panel, not in Access > Options... Where?? And why? A feel stupid with this yet. > It only changes from the standard US mm/dd/yyyy (or mm/dd/yy) where that interpretation does not return a valid date. Note that if you use a two digit year, it tries yy/mm/dd as the second interpretation before getting round to trying dd/mm/yy so 13/06/01 is likely to end up interpreted 1 Jun 2013 :-( One solution is to use an unambigous format for comparison such as Select * from DDBB where field2 > "1 Jun 2001" If pulling the comparison from a text box etc, I always use: Select * from DDBB where field2 > Datevalue('" & txtTextBox & "'") That way, it doesn't matter how the the text box and regional settings are configured, it always does the comparison using the underlying value of the control/field. -- Stuart From andy at minstersystems.co.uk Thu Dec 9 01:43:17 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 9 Dec 2004 07:43:17 -0000 Subject: [AccessD] Set form's Caption without code In-Reply-To: <100F91B31300334B89EC531C9DCB08653F61C8@tccexch01.tappeconstruction.net> Message-ID: <001c01c4ddc2$c1475d10$b274d0d5@minster33c3r25> Thanks for the reply Brett. Yes, I found that Screen.ActiveForm won't work at opening time. It doesn't come right until the form's "settled down". Gustav gave me the solution in an earler post, by either using Forms("myform") or Form(Forms.Count-1). -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Brett Barabash > Sent: 08 December 2004 22:10 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Set form's Caption without code > > > Andy, > Screen.ActiveForm can be really picky, and I try to avoid > using it if possible. Can you call it instead using the > following syntax: > =SetCaption([Form],"x") > > I would try placing this in the On Load event. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 4:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > Ok, here's the thing. I want to make a few forms lightweight > which currently have just a line or two in modules. A few > have nothing more than a line which dynamically sets the > form's caption. So I wrote a little function like > this: > > Function SetCaption(frm As Form, strCaption As String) > frm.Caption = strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have > something a bit more dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve > [Screen].[ActiveForm] at that point. Ok, methinks, I'll move > the call. But I can't find where to put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 > and putting the call in OnTimer, but I don't like that much > as you can imagine. If I force a call to it once the form's > up then there's no problem (eg a command button), but that's > not a lot of use to me either. So I know the function is > fine, but has anyone got an answer as to where I might get > this to run from? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > -------------------------------------------------------------- > ------------------------------------------------------ > The information in this email may contain confidential > information that > is legally privileged. The information is only for the use of > the intended > recipient(s) named above. If you are not the intended > recipient(s), you > are hereby notified that any disclosure, copying, > distribution, or the taking > of any action in regard to the content of this email is > strictly prohibited. If > transmission is incorrect, unclear, or incomplete, please > notify the sender > immediately. The authorized recipient(s) of this information > is/are prohibited > from disclosing this information to any other party and > is/are required to > destroy the information after its stated need has been fulfilled. > > Any views expressed in this message are those of the > individual sender, except where the sender specifies and with > authority, states them to be the views of Tappe Construction Co. > > This footer also confirms that this email message has been > scanned for the presence of computer viruses.Scanning of this > message and addition of this footer is performed by > SurfControl E-mail Filter software in conjunction with virus > detection software. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Gustav at cactus.dk Thu Dec 9 02:56:09 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Dec 2004 09:56:09 +0100 Subject: OT: [AccessD] Good laptop cheap Message-ID: Hi laptoppers Couldn't we move this discussion to the OT list or at least dba-tech? /gustav PS: And why not pick the real thing: an IBM ThinkPad. From Gustav at cactus.dk Thu Dec 9 03:13:57 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Dec 2004 10:13:57 +0100 Subject: [AccessD] A2003: FTP and Network Connection Gurus Message-ID: Hi Darren If you prefer a little more than a DOS box for the user to view, go and pick Windows Command Line FTP and the Access module to drive it: http://www.pacific.net/~ken/software/ /gustav >>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things > The client's Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the > back end of the app (About 4meg) to the FTP location he supplied > with the credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript From Gustav at cactus.dk Thu Dec 9 03:27:07 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Dec 2004 10:27:07 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: Hi Brett and Andy Well, I would say Brett's solution is the answer. It looks like [Form] perfectly well can be used on its own. It works here anyway. /gustav >>> andy at minstersystems.co.uk 09-12-2004 08:43:17 >>> Thanks for the reply Brett. Yes, I found that Screen.ActiveForm won't work at opening time. It doesn't come right until the form's "settled down". Gustav gave me the solution in an earler post, by either using Forms("myform") or Form(Forms.Count-1). -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Brett Barabash > Sent: 08 December 2004 22:10 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Set form's Caption without code > > > Andy, > Screen.ActiveForm can be really picky, and I try to avoid > using it if possible. Can you call it instead using the > following syntax: > =SetCaption([Form],"x") > > I would try placing this in the On Load event. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, December 07, 2004 4:59 AM > To: Dba > Subject: [AccessD] Set form's Caption without code > > Ok, here's the thing. I want to make a few forms lightweight > which currently have just a line or two in modules. A few > have nothing more than a line which dynamically sets the > form's caption. So I wrote a little function like > this: > > Function SetCaption(frm As Form, strCaption As String) > frm.Caption = strCaption End Function > > and then changed my form's OnOpen from being an Event Procedure to : > > =SetCaption([Screen].[ActiveForm],"x") > > (The "x" is just for testing. The real call would have > something a bit more dynamic, like the result of a function call.) > > The thing is that it errors because it can't resolve > [Screen].[ActiveForm] at that point. Ok, methinks, I'll move > the call. But I can't find where to put it. All of the following fail: > > On Load > On GotFocus of the first control > On Current > > The only success I've had is putting a timer interval of 5 > and putting the call in OnTimer, but I don't like that much > as you can imagine. If I force a call to it once the form's > up then there's no problem (eg a command button), but that's > not a lot of use to me either. So I know the function is > fine, but has anyone got an answer as to where I might get > this to run from? > > -- > Andy Lacey > http://www.minstersystems.co.uk From andy at minstersystems.co.uk Thu Dec 9 03:10:47 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 9 Dec 2004 10:10:47 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041209101045.6E60224EAFC@smtp.nildram.co.uk> You're absolutely right. Hats off to Brett. It works a treat. But where does that syntax come from? I've never seen [Form] used to refer to the current form before, and Help doesn't have it. How'd you find that one Brett? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Set form's Caption without code Date: 09/12/04 09:28 > > Hi Brett and Andy > > Well, I would say Brett's solution is the answer. > It looks like [Form] perfectly well can be used on its own. It works > here anyway. > > /gustav > > >>> andy at minstersystems.co.uk 09-12-2004 08:43:17 >>> > Thanks for the reply Brett. Yes, I found that Screen.ActiveForm won't > work > at opening time. It doesn't come right until the form's "settled > down". > Gustav gave me the solution in an earler post, by either using > Forms("myform") or Form(Forms.Count-1). > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Brett Barabash > > Sent: 08 December 2004 22:10 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Set form's Caption without code > > > > > > Andy, > > Screen.ActiveForm can be really picky, and I try to avoid > > using it if possible. Can you call it instead using the > > following syntax: > > =SetCaption([Form],"x") > > > > I would try placing this in the On Load event. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy > Lacey > > Sent: Tuesday, December 07, 2004 4:59 AM > > To: Dba > > Subject: [AccessD] Set form's Caption without code > > > > Ok, here's the thing. I want to make a few forms lightweight > > which currently have just a line or two in modules. A few > > have nothing more than a line which dynamically sets the > > form's caption. So I wrote a little function like > > this: > > > > Function SetCaption(frm As Form, strCaption As String) > > frm.Caption = strCaption End Function > > > > and then changed my form's OnOpen from being an Event Procedure to : > > > > =SetCaption([Screen].[ActiveForm],"x") > > > > (The "x" is just for testing. The real call would have > > something a bit more dynamic, like the result of a function call.) > > > > The thing is that it errors because it can't resolve > > [Screen].[ActiveForm] at that point. Ok, methinks, I'll move > > the call. But I can't find where to put it. All of the following > fail: > > > > On Load > > On GotFocus of the first control > > On Current > > > > The only success I've had is putting a timer interval of 5 > > and putting the call in OnTimer, but I don't like that much > > as you can imagine. If I force a call to it once the form's > > up then there's no problem (eg a command button), but that's > > not a lot of use to me either. So I know the function is > > fine, but has anyone got an answer as to where I might get > > this to run from? > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Thu Dec 9 04:51:52 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Dec 2004 11:51:52 +0100 Subject: [AccessD] ODBC etc. link to Btrieve db? Message-ID: Hi Arthur 1. Fall back to Access 2.0. It came with a native Btrieve ODBC driver. 2. Try this commercial option: http://www.merant.com/datadirect/products/odbc/Connect/techdocs/matrix.asp 3. Maybe these will work for you: http://www.goldstarsoftware.com/down615.asp This page may as well be interesting to you: http://www.goldstarsoftware.com/products.asp /gustav >>> artful at rogers.com 08-12-2004 23:15:38 >>> Is there such a thing? Does it cost money? A client has an ancient (DOS!) Btrieve app which can export text files but I'd like to eliminate this step if possible. Any way to hook Access to the Btrieve db automatically? TIA, Arthur From pedro at plex.nl Thu Dec 9 12:08:16 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 09 Dec 2004 12:08:16 (MET) Subject: [AccessD] missing reference, converting to A2003 Message-ID: <200412091108.iB9B8Gec017757@mailhostC.plex.net> Hello Group, when converting a A2k database to A2003 i get an missing reference error. Missing is the effect library (MMEFXE.OCX). I searched the system for this reference, but i can't find it. Also in the knowledge base i can't find any info. Has anybody encountered this problem. Pedro Janssen From bheid at appdevgrp.com Thu Dec 9 07:33:17 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 9 Dec 2004 08:33:17 -0500 Subject: [AccessD] Error message when opening database from shortcut. Message-ID: <916187228923D311A6FE00A0CC3FAA305BBB40@ADGSERVER> Hi all, I'm getting the following error message when trying to open up my app. Cannot find the file 'D:\Wrap\XP\Wrap 6.02\WrapXP.mdb' (or one of its components). Make sure the path and filename are correct and that all required libraries are available. After I click OK, it opens fine. Any ideas what is going on here? Thanks, Bobby From jwcolby at colbyconsulting.com Thu Dec 9 08:14:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 09:14:43 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB062@redstone819.ad.redstone.army.mil> Message-ID: <003101c4ddf9$6ddc3600$e8dafea9@ColbyM6805> Alan, You are definitely too demanding. Look at the prices for notebooks. Sure you can get a DELL, you can get it with Office installed. But you pay a LOT for the privilege. I already own office, I purchased it separately. I own it and I can move it from system to system as I please. If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine. That's just plain silly. Buy a good laptop, get the best price possible. Buy Office, get the best price possible. Because you refused to buy a laptop without Office installed you missed out on the best price for a laptop of that value I have EVER seen. So go ahead, drop an extra 350 dollars and get less of a laptop with Office on it from Dell. Not me! In fact I became a Microsoft "partner" and bought the action pack for $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of other stuff. Why in the world would I pay for a laptop with that stuff installed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 08, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Dec 9 08:41:25 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 9 Dec 2004 08:41:25 -0600 Subject: [AccessD] Set form's Caption without code Message-ID: <100F91B31300334B89EC531C9DCB08653F61D2@tccexch01.tappeconstruction.net> Andy, Form is the default property of the form object. If you call a procedure with Me or Forms!MyForm as the argument, you are actually saying Me.Form or Forms!MyForm.Form. I learned this one back in my Access 2 days (actually not too long ago) when I was writing a set of framework procedures, similar to what you are doing. Glad to help! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, December 09, 2004 3:11 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Set form's Caption without code You're absolutely right. Hats off to Brett. It works a treat. But where does that syntax come from? I've never seen [Form] used to refer to the current form before, and Help doesn't have it. How'd you find that one Brett? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Set form's Caption without code Date: 09/12/04 09:28 > > Hi Brett and Andy > > Well, I would say Brett's solution is the answer. > It looks like [Form] perfectly well can be used on its own. It works > here anyway. > > /gustav > > >>> andy at minstersystems.co.uk 09-12-2004 08:43:17 > >>> Thanks for the reply Brett. Yes, I found that > Screen.ActiveForm won't work at opening time. It doesn't come right > until the form's "settled down". > Gustav gave me the solution in an earler post, by either using > Forms("myform") or Form(Forms.Count-1). > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Brett Barabash > Sent: 08 December 2004 22:10 > To: Access > Developers discussion and problem solving > Subject: RE: [AccessD] > Set form's Caption without code > > > Andy, > > Screen.ActiveForm can be really picky, and I try to avoid > using > it if possible. Can you call it instead using the > following > syntax: > > =SetCaption([Form],"x") > > I would try placing > this in the On Load event. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy > Lacey > Sent: Tuesday, December 07, 2004 4:59 AM > To: Dba > > Subject: [AccessD] Set form's Caption without code > > Ok, > here's the thing. I want to make a few forms lightweight > which > currently have just a line or two in modules. A few > have nothing > more than a line which dynamically sets the > form's caption. So I > wrote a little function like > this: > > > > Function SetCaption(frm As Form, strCaption As String) > > frm.Caption = strCaption End Function > > and then changed my > form's OnOpen from being an Event Procedure to : > > > > =SetCaption([Screen].[ActiveForm],"x") > > > > (The "x" is just for testing. The real call would have > > something a bit more dynamic, like the result of a function > call.) > > The thing is that it errors because it can't resolve > > [Screen].[ActiveForm] at that point. Ok, methinks, I'll move > > the call. But I can't find where to put it. All of the following > fail: > > > > On Load > > On GotFocus of the first control > > On Current > > > > The only success I've had is putting a timer interval of 5 > > and putting the call in OnTimer, but I don't like that much > as > you can imagine. If I force a call to it once the form's > up then > there's no problem (eg a command button), but that's > not a lot of > use to me either. So I know the function is > fine, but has anyone > got an answer as to where I might get > this to run from? > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From Lambert.Heenan at AIG.com Thu Dec 9 08:42:40 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 9 Dec 2004 09:42:40 -0500 Subject: [AccessD] Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A28F3@xlivmbx21.aig.com> This is not and never was a bug in Access, or Excel or any other program that works with dates. It's is simply because the world has not settled on a single date format, and computers cannot read minds. So Access etc. has to make a best guess when someone manually enters a date like "01//02/2001". Is it January or February???? The solution? Don't let users type dates. Use a calendar, either the active-X one provided by MS, or a VBA only one that is implemented as an Access form. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV > Sent: Wednesday, December 08, 2004 6:25 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] > > > Hi group, this week we are looking for DATE problems and solutions over > this > bug from Access. > > We use normally dd/mm/yyyy to capture de date information, and configure > the > windows DATE/TIME to this format, when yo try to input some date you can > see > this diferences: > > Input Format Format dd/mmm/yy > 01/02/2001 - 01 Feb 01 > 03/02/2001 - 02 Mar 01 > 13/02/2001 - 13 Feb 01 > 03/04/2001 - 03 Apr 01 > > Its totally stupid the translation, we saw that use the main format as > they > want. If you put a day over >12 then the format it's OK dd/mm/yyyy, but if > you put a day under 13 depend of the month.. If the month if higher then > the > format that the use is mm/dd/yyyy but not always, only for months lower > than > 6. > > At this moment we only found a solution for this, convert all date to > string > 8 positions (yyyymmdd) and then use this ISO format to make any SQL, but > the > speed are not good on a large ammount of registry. > > Any ideas to control de DATE correctly?? We problem we saw in Access 2 and > always use String format, but actually we hope that with Access XP and > WinXP > could be solved. > > Thanks. > > > Juan Menendez > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Thu Dec 9 09:17:46 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Thu, 9 Dec 2004 09:17:46 -0600 Subject: [AccessD] Good laptop cheap Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> John: Excuse me for asking this silly question, but doesn't the EULA license agreement for Windows and Office state explicitly that you are licensed ONLY to use your copy of Windows (and Office) on a SINGLE COMPUTER and you may NOT install - or transfer - your copy of Windows (and Office) to another computer? Of course, I know that [probably] 99.9 percent of Windows and Office users do this when they buy a new box, but strictly speaking you are in violation of a legal agreement when you reinstall your software on a new computer. Is this correct, or I am just confused? I purposely wait at least 2-3 years between major hardware/system upgrades because by the time two or three years have passed, CPU speeds have [at least] doubled (if not tripled) and major new versions of Windows and Office have been released - which are usually preinstalled with the new box. In effect, I auto-upgrade my software whenever I buy new hardware - and I always stay totally legal - although it does seem like I spend an awful lot on things like anti-virus software, firewall software, "Anonymizer" software - not to mention all the database and developer tool software ... Now I realize why I always have a high credit card balance! Alan C. Lawhon -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, December 09, 2004 8:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Good laptop cheap Alan, You are definitely too demanding. Look at the prices for notebooks. Sure you can get a DELL, you can get it with Office installed. But you pay a LOT for the privilege. I already own office, I purchased it separately. I own it and I can move it from system to system as I please. If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine. That's just plain silly. Buy a good laptop, get the best price possible. Buy Office, get the best price possible. Because you refused to buy a laptop without Office installed you missed out on the best price for a laptop of that value I have EVER seen. So go ahead, drop an extra 350 dollars and get less of a laptop with Office on it from Dell. Not me! In fact I became a Microsoft "partner" and bought the action pack for $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of other stuff. Why in the world would I pay for a laptop with that stuff installed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 08, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Dec 9 08:20:53 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 9 Dec 2004 15:20:53 +0100 Subject: [AccessD] Set form's Caption without code Message-ID: <20041209152050.0E4EE25F8E8@smtp.nildram.co.uk> Brett I get that. When we reference a control on a subform it's standard to say: Me!subFormControl.Form!control But I've never seen just plain [Form] used in isolation before to return the current form object. That was a new one on me. But then it's a poor day when you don't learn something - unless of course you're doing something more fun than learning ;-) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Set form's Caption without code Date: 09/12/04 14:46 > > Andy, > > Form is the default property of the form object. If you call a > procedure with Me or Forms!MyForm as the argument, you are actually > saying Me.Form or Forms!MyForm.Form. > > I learned this one back in my Access 2 days (actually not too long ago) > when I was writing a set of framework procedures, similar to what you > are doing. > > Glad to help! > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, December 09, 2004 3:11 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Set form's Caption without code > > You're absolutely right. Hats off to Brett. It works a treat. But where > does that syntax come from? I've never seen [Form] used to refer to the > current form before, and Help doesn't have it. How'd you find that one > Brett? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: accessd at databaseadvisors.com <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Set form's Caption without code > Date: 09/12/04 09:28 > > > > > Hi Brett and Andy > > > > Well, I would say Brett's solution is the answer. > > It looks like [Form] perfectly well can be used on its own. It works > > here anyway. > > > > /gustav > > > > &gt;&gt;&gt; andy at minstersystems.co.uk 09-12-2004 08:43:17 > > &gt;&gt;&gt; Thanks for the reply Brett. Yes, I found that > > Screen.ActiveForm won't work at opening time. It doesn't come right > > until the form's &quot;settled down&quot;. > > Gustav gave me the solution in an earler post, by either using > > Forms(&quot;myform&quot;) or Form(Forms.Count-1). > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of &gt; > > Brett Barabash &gt; Sent: 08 December 2004 22:10 &gt; To: Access > > Developers discussion and problem solving &gt; Subject: RE: [AccessD] > > Set form's Caption without code &gt; &gt; &gt; Andy, &gt; > > Screen.ActiveForm can be really picky, and I try to avoid &gt; using > > it if possible. Can you call it instead using the &gt; following > > syntax: > > &gt; =SetCaption([Form],&quot;x&quot;) &gt; &gt; I would try placing > > this in the On Load event. > > &gt; > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy > > Lacey &gt; Sent: Tuesday, December 07, 2004 4:59 AM &gt; To: Dba &gt; > > Subject: [AccessD] Set form's Caption without code &gt; &gt; Ok, > > here's the thing. I want to make a few forms lightweight &gt; which > > currently have just a line or two in modules. A few &gt; have nothing > > more than a line which dynamically sets the &gt; form's caption. So I > > wrote a little function like &gt; this: > > &gt; > > &gt; Function SetCaption(frm As Form, strCaption As String) &gt; > > frm.Caption = strCaption End Function &gt; &gt; and then changed my > > form's OnOpen from being an Event Procedure to : > > &gt; > > &gt; =SetCaption([Screen].[ActiveForm],&quot;x&quot;) > > &gt; > > &gt; (The &quot;x&quot; is just for testing. The real call would have > > &gt; something a bit more dynamic, like the result of a function > > call.) &gt; &gt; The thing is that it errors because it can't resolve > > &gt; [Screen].[ActiveForm] at that point. Ok, methinks, I'll move &gt; > > > the call. But I can't find where to put it. All of the following > > fail: > > &gt; > > &gt; On Load > > &gt; On GotFocus of the first control > > &gt; On Current > > &gt; > > &gt; The only success I've had is putting a timer interval of 5 &gt; > > and putting the call in OnTimer, but I don't like that much &gt; as > > you can imagine. If I force a call to it once the form's &gt; up then > > there's no problem (eg a command button), but that's &gt; not a lot of > > > use to me either. So I know the function is &gt; fine, but has anyone > > got an answer as to where I might get &gt; this to run from? > > &gt; > > &gt; -- > > &gt; Andy Lacey > > &gt; http://www.minstersystems.co.uk > > -------------------------------------------------------------------------------------------------------------------- > The information in this email may contain confidential information that > is legally privileged. The information is only for the use of the intended > recipient(s) named above. If you are not the intended recipient(s), you > are hereby notified that any disclosure, copying, distribution, or the taking > of any action in regard to the content of this email is strictly prohibited. If > transmission is incorrect, unclear, or incomplete, please notify the sender > immediately. The authorized recipient(s) of this information is/are prohibited > from disclosing this information to any other party and is/are required to > destroy the information after its stated need has been fulfilled. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > This footer also confirms that this email message has been scanned > for the presence of computer viruses.Scanning of this message and > addition of this footer is performed by SurfControl E-mail Filter software > in conjunction with virus detection software. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Thu Dec 9 09:47:10 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 10:47:10 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> Message-ID: <003401c4de06$581556a0$e8dafea9@ColbyM6805> Yes, it does say that (kind of), however: A) MS specifically ALLOWS you to use a single copy on a desktop and a laptop. I have had to call them to get an activation because I installed it on my desktop and then tried to put it on my laptop. They told me that it was OK to do that and gave me an activation code. B) You ARE allowed to move the license from computer to computer. In order to be in compliance you must uninstall it from the previous machine. So the TRANSFER is legal IF you uninstall on the previous system. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Thursday, December 09, 2004 10:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap John: Excuse me for asking this silly question, but doesn't the EULA license agreement for Windows and Office state explicitly that you are licensed ONLY to use your copy of Windows (and Office) on a SINGLE COMPUTER and you may NOT install - or transfer - your copy of Windows (and Office) to another computer? Of course, I know that [probably] 99.9 percent of Windows and Office users do this when they buy a new box, but strictly speaking you are in violation of a legal agreement when you reinstall your software on a new computer. Is this correct, or I am just confused? I purposely wait at least 2-3 years between major hardware/system upgrades because by the time two or three years have passed, CPU speeds have [at least] doubled (if not tripled) and major new versions of Windows and Office have been released - which are usually preinstalled with the new box. In effect, I auto-upgrade my software whenever I buy new hardware - and I always stay totally legal - although it does seem like I spend an awful lot on things like anti-virus software, firewall software, "Anonymizer" software - not to mention all the database and developer tool software ... Now I realize why I always have a high credit card balance! Alan C. Lawhon -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, December 09, 2004 8:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Good laptop cheap Alan, You are definitely too demanding. Look at the prices for notebooks. Sure you can get a DELL, you can get it with Office installed. But you pay a LOT for the privilege. I already own office, I purchased it separately. I own it and I can move it from system to system as I please. If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine. That's just plain silly. Buy a good laptop, get the best price possible. Buy Office, get the best price possible. Because you refused to buy a laptop without Office installed you missed out on the best price for a laptop of that value I have EVER seen. So go ahead, drop an extra 350 dollars and get less of a laptop with Office on it from Dell. Not me! In fact I became a Microsoft "partner" and bought the action pack for $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of other stuff. Why in the world would I pay for a laptop with that stuff installed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 08, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Dec 9 10:03:37 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 09 Dec 2004 08:03:37 -0800 Subject: [AccessD] Good laptop cheap In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> Message-ID: Hi Alan: The new MS software has to be activated, across the internet, before it will remain operational. Even changing hardware components on the computer in question can force the software to re-prompt for activation. I understand that a software package can be activated from a couple of computers without issue but any more... This is sufficient for someone who works at both a standard and home office. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Thursday, December 09, 2004 7:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap John: Excuse me for asking this silly question, but doesn't the EULA license agreement for Windows and Office state explicitly that you are licensed ONLY to use your copy of Windows (and Office) on a SINGLE COMPUTER and you may NOT install - or transfer - your copy of Windows (and Office) to another computer? Of course, I know that [probably] 99.9 percent of Windows and Office users do this when they buy a new box, but strictly speaking you are in violation of a legal agreement when you reinstall your software on a new computer. Is this correct, or I am just confused? I purposely wait at least 2-3 years between major hardware/system upgrades because by the time two or three years have passed, CPU speeds have [at least] doubled (if not tripled) and major new versions of Windows and Office have been released - which are usually preinstalled with the new box. In effect, I auto-upgrade my software whenever I buy new hardware - and I always stay totally legal - although it does seem like I spend an awful lot on things like anti-virus software, firewall software, "Anonymizer" software - not to mention all the database and developer tool software ... Now I realize why I always have a high credit card balance! Alan C. Lawhon -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, December 09, 2004 8:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Good laptop cheap Alan, You are definitely too demanding. Look at the prices for notebooks. Sure you can get a DELL, you can get it with Office installed. But you pay a LOT for the privilege. I already own office, I purchased it separately. I own it and I can move it from system to system as I please. If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine. That's just plain silly. Buy a good laptop, get the best price possible. Buy Office, get the best price possible. Because you refused to buy a laptop without Office installed you missed out on the best price for a laptop of that value I have EVER seen. So go ahead, drop an extra 350 dollars and get less of a laptop with Office on it from Dell. Not me! In fact I became a Microsoft "partner" and bought the action pack for $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of other stuff. Why in the world would I pay for a laptop with that stuff installed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Wednesday, December 08, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap Bob: You ask a good question ... I may be "too demanding" or whatever, but, at a minimum, I expect a computer to come with the current version of Windows - and a decent version of Microsoft Office - irrespective of "how good" the price may be. (I read an article several months ago on /. to the effect that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay Microsoft something like $49.00 for each copy of Windows; so the software IS NOT a major component of system cost.) I figure that bundled "home editions" of Windows and Office [together] probably cost the retail seller somewhere around $125.00. I went down to Best Buy last Friday to check out the $750.00 (after rebates) eMachines model M5405 notebook computer that John Colby had tipped us about. Once I discovered that the M5405 DID NOT have Microsoft Office installed, (it had some puny collection of utilities that it called "Microsoft Works"), I said "Sayonara" on that deal and left the store. Alan C. Lawhon -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Wednesday, December 08, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Good laptop cheap curious, did either of these come with actual disks for windows and such. seems there is a trend towards not including such... sorry if too OT, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Wednesday, December 08, 2004 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap Don't do it John, I never look at PC specs after I have purchased a PC, because no matter what, you will see a better deal. I hope that you enjoy the new machine, Mark On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby wrote: > For all those who were not able to take advantage of the Emachines > laptop (or didn't trust the brand) > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > 6851267&tab=6 > > A nice Toshiba for $650 after rebates. Not as much machine as the Emachines > but still a good deal. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Dec 9 10:09:07 2004 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 9 Dec 2004 10:09:07 -0600 Subject: [AccessD] Good laptop cheap In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> References: <5D5043687CFCE44288407A73E4CC6E179BB06B@redstone819.ad.redstone.army.mil> Message-ID: It may be different for the versions supplied with a system, but for the retail purchased versions you certainly can transfer to another system as long as you remove from the original system. You are also allowed to install on both a desktop and a portable system as long as it is the same person using the software on both systems. See http://download.microsoft.com/download/1/2/5/12538ba0-3d24-4f00-aab1-dd9ff4aacfc9/en_client_eula.pdf On Thu, 9 Dec 2004 09:17:46 -0600, Lawhon, Alan C Contractor/Morgan Research wrote: > John: > > Excuse me for asking this silly question, but doesn't the EULA license > agreement for Windows and Office state explicitly that you are licensed > ONLY to use your copy of Windows (and Office) on a SINGLE COMPUTER and > you may NOT install - or transfer - your copy of Windows (and Office) to > another computer? Of course, I know that [probably] 99.9 percent of > Windows and Office users do this when they buy a new box, but strictly > speaking you are in violation of a legal agreement when you reinstall > your software on a new computer. > > Is this correct, or I am just confused? > > I purposely wait at least 2-3 years between major hardware/system > upgrades because by the time two or three years have passed, CPU speeds > have [at least] doubled (if not tripled) and major new versions of > Windows and Office have been released - which are usually preinstalled > with the new box. In effect, I auto-upgrade my software whenever I buy > new hardware - and I always stay totally legal - although it does seem > like I spend an awful lot on things like anti-virus software, firewall > software, "Anonymizer" software - not to mention all the database and > developer tool software ... Now I realize why I always have a high > credit card balance! > > > > Alan C. Lawhon > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Thursday, December 09, 2004 8:15 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Good laptop cheap > > Alan, > > You are definitely too demanding. Look at the prices for notebooks. Sure > you can get a DELL, you can get it with Office installed. But you pay a LOT > for the privilege. I already own office, I purchased it separately. I own > it and I can move it from system to system as I please. If you get a > version installed on a laptop, it comes in that laptop's install / restore > disk which won't install on any other machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the best > price possible. > > Because you refused to buy a laptop without Office installed you missed out > on the best price for a laptop of that value I have EVER seen. So go ahead, > drop an extra 350 dollars and get less of a laptop with Office on it from > Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for $300. > I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of > other stuff. Why in the world would I pay for a laptop with that stuff > installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, but, at a > minimum, I expect a computer to come with the current version of Windows - > and a decent version of Microsoft Office - irrespective of "how good" the > price may be. (I read an article several months ago on /. to the effect > that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay > Microsoft something like $49.00 for each copy of Windows; so the software IS > NOT a major component of system cost.) I figure that bundled "home > editions" of Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had tipped > us about. Once I discovered that the M5405 DID NOT have Microsoft Office > installed, (it had some puny collection of utilities that it called > "Microsoft Works"), I said "Sayonara" on that deal and left the store. > > Alan C. Lawhon > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > curious, did either of these come with actual disks for windows and such. > seems there is a trend towards not including such... > > sorry if too OT, > > bob heygood > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no matter > what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: > > For all those who were not able to take advantage of the Emachines > > laptop (or didn't trust the brand) > > > > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= > > 6851267&tab=6 > > > > A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines > > but still a good deal. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Thu Dec 9 10:41:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 11:41:24 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: Message-ID: <003901c4de0d$ebbfc050$e8dafea9@ColbyM6805> I have read that the OEM versions are ONLY for use on the system that the install disk is for. It is not legal to, and the manufacturers put a check in to prevent, using the install disk with any other hardware. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, December 09, 2004 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap It may be different for the versions supplied with a system, but for the retail purchased versions you certainly can transfer to another system as long as you remove from the original system. You are also allowed to install on both a desktop and a portable system as long as it is the same person using the software on both systems. See http://download.microsoft.com/download/1/2/5/12538ba0-3d24-4f00-aab1-dd9ff4a acfc9/en_client_eula.pdf On Thu, 9 Dec 2004 09:17:46 -0600, Lawhon, Alan C Contractor/Morgan Research wrote: > John: > > Excuse me for asking this silly question, but doesn't the EULA license > agreement for Windows and Office state explicitly that you are > licensed ONLY to use your copy of Windows (and Office) on a SINGLE > COMPUTER and you may NOT install - or transfer - your copy of Windows > (and Office) to another computer? Of course, I know that [probably] > 99.9 percent of Windows and Office users do this when they buy a new > box, but strictly speaking you are in violation of a legal agreement > when you reinstall your software on a new computer. > > Is this correct, or I am just confused? > > I purposely wait at least 2-3 years between major hardware/system > upgrades because by the time two or three years have passed, CPU > speeds have [at least] doubled (if not tripled) and major new versions > of Windows and Office have been released - which are usually > preinstalled with the new box. In effect, I auto-upgrade my software > whenever I buy new hardware - and I always stay totally legal - > although it does seem like I spend an awful lot on things like > anti-virus software, firewall software, "Anonymizer" software - not to > mention all the database and developer tool software ... Now I > realize why I always have a high credit card balance! > > > > Alan C. Lawhon > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Thursday, December 09, 2004 8:15 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Good laptop cheap > > Alan, > > You are definitely too demanding. Look at the prices for notebooks. > Sure you can get a DELL, you can get it with Office installed. But > you pay a LOT for the privilege. I already own office, I purchased it > separately. I own it and I can move it from system to system as I > please. If you get a version installed on a laptop, it comes in that > laptop's install / restore disk which won't install on any other > machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the > best price possible. > > Because you refused to buy a laptop without Office installed you > missed out on the best price for a laptop of that value I have EVER > seen. So go ahead, drop an extra 350 dollars and get less of a laptop > with Office on it from Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for > $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a > TON of other stuff. Why in the world would I pay for a laptop with > that stuff installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, > Alan C Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, > but, at a minimum, I expect a computer to come with the current > version of Windows - and a decent version of Microsoft Office - > irrespective of "how good" the price may be. (I read an article > several months ago on /. to the effect that mass market PC sellers > like Dell, Gateway, Toshiba and eMachines pay Microsoft something like > $49.00 for each copy of Windows; so the software IS NOT a major > component of system cost.) I figure that bundled "home editions" of > Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had > tipped us about. Once I discovered that the M5405 DID NOT have > Microsoft Office installed, (it had some puny collection of utilities > that it called "Microsoft Works"), I said "Sayonara" on that deal and > left the store. > > Alan C. Lawhon > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > curious, did either of these come with actual disks for windows and > such. seems there is a trend towards not including such... > > sorry if too OT, > > bob heygood > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no > matter what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: > > For all those who were not able to take advantage of the Emachines > > laptop (or didn't trust the brand) > > > > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& > skuId= > > 6851267&tab=6 > > > > A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines > > but still a good deal. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwhittinghill at symphonyinfo.com Thu Dec 9 10:46:56 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 9 Dec 2004 10:46:56 -0600 Subject: [AccessD] VSS and getting an older Version of VB6 project References: <100F91B31300334B89EC531C9DCB08653F61C9@tccexch01.tappeconstruction.net> Message-ID: <000c01c4de0e$b28add50$2601a8c0@Symphony.local> Thanks, Brett. I was paranoid about accidentally rolling back. If I highlight the labelled version and choose Recursive and Make Writable, I can reproduce the whole project in one shot. Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com ----- Original Message ----- From: "Brett Barabash" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 08, 2004 4:14 PM Subject: RE: [AccessD] VSS and getting an older Version of VB6 project > Mark, > In VSS Explorer, right click on the project file and select Show > History... > Press OK to the dialog it displays and it will show you a revision > history. > Click on the version you would like to revert to and press the Get > button. > Select a file path to save the file to (preferably one that won't > overwrite your current project). > Repeat as necessary for all other forms, modules, classes, etc. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark > Whittinghill > Sent: Wednesday, December 08, 2004 10:07 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] VSS and getting an older Version of VB6 project > > > Hi all, > > I have a VB6 project that I have source safed. I create labels at > various points in development. I would like to rebuild my source code > from a previous version, but I don't want to rollback from the most > recent. Can anyone tell me how to do this? Thanks, > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -------------------------------------------------------------------------- ------------------------------------------ > The information in this email may contain confidential information that > is legally privileged. The information is only for the use of the intended > recipient(s) named above. If you are not the intended recipient(s), you > are hereby notified that any disclosure, copying, distribution, or the taking > of any action in regard to the content of this email is strictly prohibited. If > transmission is incorrect, unclear, or incomplete, please notify the sender > immediately. The authorized recipient(s) of this information is/are prohibited > from disclosing this information to any other party and is/are required to > destroy the information after its stated need has been fulfilled. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > This footer also confirms that this email message has been scanned > for the presence of computer viruses.Scanning of this message and > addition of this footer is performed by SurfControl E-mail Filter software > in conjunction with virus detection software. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Dec 9 10:59:08 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 08:59:08 -0800 Subject: [AccessD] missing reference, converting to A2003 Message-ID: If you uncheck the reference, does the code compile? Since the reference is to an ocx file, you should only need it if you're using the activex control in the application, in which case, it would have to be installed on your system. Charlotte Foust -----Original Message----- From: pedro at plex.nl [mailto:pedro at plex.nl] Sent: Thursday, December 09, 2004 4:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] missing reference, converting to A2003 Hello Group, when converting a A2k database to A2003 i get an missing reference error. Missing is the effect library (MMEFXE.OCX). I searched the system for this reference, but i can't find it. Also in the knowledge base i can't find any info. Has anybody encountered this problem. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Susan.Klos at fldoe.org Thu Dec 9 11:05:42 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Thu, 9 Dec 2004 12:05:42 -0500 Subject: [AccessD] Populate a list box using the same criteria which opens the form Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE7399B@doesefpeml02.eus.fldoe.int> I have one form which is opened in several different ways by clicking buttons on the menu form. On the form is a list box that shows project names. Whenever the form is opened the list box shows only the user's projects, which is just what I want most of the time. However, one of the buttons on the menu allows the user to open the form and just see the user's open projects. The code below is in the onmouseup event of the button on the menu: Private Sub FindOpenProjectsOpen_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim stDocName As String Dim stLinkCriteria1 As String Dim stLinkCriteria2 As String Dim stLinkCriteria As String Dim StCriteria As String Me.FindOpenProjectsOpen.Visible = True Me.FindOpenProjectsClick.Visible = False stDocName = "frmProjects" stLinkCriteria = "[UserID]=" & "'" & Me![UsersName] & "'" StCriteria = IsNull(DLookup("[ProjectID]", "tblProject", "Complete")) stLinkCriteria2 = "[Complete]=" & StCriteria stLinkCriteria1 = stLinkCriteria & " and " & stLinkCriteria2 If IsNull(DLookup("[ProjectID]", "tblProject", stLinkCriteria)) Then MsgBox "You have not recorded any projects yet." Else DoCmd.Close DoCmd.OpenForm stDocName, , , stLinkCriteria1 End If End Sub The query which populates the list box is: SELECT tblProject.ProjectID, tblProject.ProjectName, tblProject.Complete FROM tblProject WHERE (((tblProject.UserID)=Environ("username"))) ORDER BY tblProject.ProjectName; Right now the list box always opens showing all of the user's projects complete or open. I want to send a parameter to the query that tells it to populate the listbox with open user projects (isnull[complete] ) whenever the form opens showing only open user projects. Otherwise it needs to show all user projects. Any help would be greatly appreciated. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From cfoust at infostatsystems.com Thu Dec 9 11:01:38 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 09:01:38 -0800 Subject: [AccessD] Good laptop cheap Message-ID: You're correct, John. OEM versions are normally tweaked for the particular vendor's system. They might work on another system, but the EULA specifically prohibits that, since OEM versions are only licensed for sale with a new computer. Interestingly enough, I have an OEM version of Office 2000 that came from Microsoft as a replacement for a bad retail set. I've never quite figured that one out. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, December 09, 2004 8:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Good laptop cheap I have read that the OEM versions are ONLY for use on the system that the install disk is for. It is not legal to, and the manufacturers put a check in to prevent, using the install disk with any other hardware. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, December 09, 2004 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap It may be different for the versions supplied with a system, but for the retail purchased versions you certainly can transfer to another system as long as you remove from the original system. You are also allowed to install on both a desktop and a portable system as long as it is the same person using the software on both systems. See http://download.microsoft.com/download/1/2/5/12538ba0-3d24-4f00-aab1-dd9 ff4a acfc9/en_client_eula.pdf On Thu, 9 Dec 2004 09:17:46 -0600, Lawhon, Alan C Contractor/Morgan Research wrote: > John: > > Excuse me for asking this silly question, but doesn't the EULA license > agreement for Windows and Office state explicitly that you are > licensed ONLY to use your copy of Windows (and Office) on a SINGLE > COMPUTER and you may NOT install - or transfer - your copy of Windows > (and Office) to another computer? Of course, I know that [probably] > 99.9 percent of Windows and Office users do this when they buy a new > box, but strictly speaking you are in violation of a legal agreement > when you reinstall your software on a new computer. > > Is this correct, or I am just confused? > > I purposely wait at least 2-3 years between major hardware/system > upgrades because by the time two or three years have passed, CPU > speeds have [at least] doubled (if not tripled) and major new versions > of Windows and Office have been released - which are usually > preinstalled with the new box. In effect, I auto-upgrade my software > whenever I buy new hardware - and I always stay totally legal - > although it does seem like I spend an awful lot on things like > anti-virus software, firewall software, "Anonymizer" software - not to > mention all the database and developer tool software ... Now I > realize why I always have a high credit card balance! > > > > Alan C. Lawhon > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Thursday, December 09, 2004 8:15 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Good laptop cheap > > Alan, > > You are definitely too demanding. Look at the prices for notebooks. > Sure you can get a DELL, you can get it with Office installed. But > you pay a LOT for the privilege. I already own office, I purchased it > separately. I own it and I can move it from system to system as I > please. If you get a version installed on a laptop, it comes in that > laptop's install / restore disk which won't install on any other > machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the > best price possible. > > Because you refused to buy a laptop without Office installed you > missed out on the best price for a laptop of that value I have EVER > seen. So go ahead, drop an extra 350 dollars and get less of a laptop > with Office on it from Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for > $300. I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a > TON of other stuff. Why in the world would I pay for a laptop with > that stuff installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, > Alan C Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, > but, at a minimum, I expect a computer to come with the current > version of Windows - and a decent version of Microsoft Office - > irrespective of "how good" the price may be. (I read an article > several months ago on /. to the effect that mass market PC sellers > like Dell, Gateway, Toshiba and eMachines pay Microsoft something like > $49.00 for each copy of Windows; so the software IS NOT a major > component of system cost.) I figure that bundled "home editions" of > Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had > tipped us about. Once I discovered that the M5405 DID NOT have > Microsoft Office installed, (it had some puny collection of utilities > that it called "Microsoft Works"), I said "Sayonara" on that deal and > left the store. > > Alan C. Lawhon > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > curious, did either of these come with actual disks for windows and > such. seems there is a trend towards not including such... > > sorry if too OT, > > bob heygood > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no > matter what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: > > For all those who were not able to take advantage of the Emachines > > laptop (or didn't trust the brand) > > > > > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& > skuId= > > 6851267&tab=6 > > > > A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines > > but still a good deal. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 9 11:05:17 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 09:05:17 -0800 Subject: [AccessD] Event only if sending report to the printer Message-ID: You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Dec 9 11:17:23 2004 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 9 Dec 2004 11:17:23 -0600 Subject: [AccessD] Good laptop cheap In-Reply-To: <003901c4de0d$ebbfc050$e8dafea9@ColbyM6805> References: <003901c4de0d$ebbfc050$e8dafea9@ColbyM6805> Message-ID: That's part of the reason they are offered at a lower price I suppose eh? I'm an Action Pack partner too now, so no more buying OEM copies for me.. On Thu, 09 Dec 2004 11:41:24 -0500, John W. Colby wrote: > I have read that the OEM versions are ONLY for use on the system that the > install disk is for. It is not legal to, and the manufacturers put a check > in to prevent, using the install disk with any other hardware. > > > > John W. Colby -- Gary Kjos garykjos at gmail.com From jmhla at earthlink.net Thu Dec 9 11:45:09 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 9 Dec 2004 09:45:09 -0800 Subject: [AccessD] Event only if sending report to the printer In-Reply-To: Message-ID: <002e01c4de16$d7176d20$110110ac@delllaptop> Charlotte, How do I get to the printer object of the report? User normally has 3 hole paper in printer and needs to change to Print ( as opposed to preview) the report Currently this code lives in the report header print event: Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer) Dim lngRetval As Long lngRetval = MsgBox( _ "Please make sure the correct paper is the printer for printing Purchase Orders." & vbCrLf & "" & vbCrLf & "Click OK when ready.", _ vbOKOnly + vbExclamation + vbSystemModal + vbDefaultButton1, _ "Check Paper in Printer") Select Case lngRetval Case vbOK End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net Subject: RE: [AccessD] Event only if sending repo-----Original Message-----rt to the printer You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JohnSkolits at corproatedatadesign.com Thu Dec 9 14:18:23 2004 From: JohnSkolits at corproatedatadesign.com (Spam) Date: Thu, 9 Dec 2004 15:18:23 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Message-ID: <006101c4de2c$3bf75a10$6901a8c0@OFFICEXP1> Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John From ssharkins at bellsouth.net Thu Dec 9 14:44:09 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 9 Dec 2004 15:44:09 -0500 Subject: [AccessD] callback functions Message-ID: <20041209204431.ZDGT2421.imf24aec.mail.bellsouth.net@SUSANONE> Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. From jwcolby at colbyconsulting.com Thu Dec 9 15:03:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 16:03:45 -0500 Subject: [AccessD] callback functions In-Reply-To: <20041209204431.ZDGT2421.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <004201c4de32$96320c90$e8dafea9@ColbyM6805> Nope. What else are they used for? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 3:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Thu Dec 9 15:11:03 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 9 Dec 2004 16:11:03 -0500 Subject: [AccessD] callback functions In-Reply-To: <20041209204431.ZDGT2421.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <002701c4de33$996380f0$0b08a845@hargrove.internal> Yup. What do you need to know? Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 3:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Dec 9 15:21:48 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 9 Dec 2004 13:21:48 -0800 Subject: [AccessD] callback functions In-Reply-To: <20041209204431.ZDGT2421.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: Yes, I used it to aggravate myself into oblivion trying to figure it out :) D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 12:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Dec 9 15:12:21 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 9 Dec 2004 15:12:21 -0600 Subject: [AccessD] callback functions Message-ID: <123701F54509D9119A4F00D0B747349016D10F@main2.marlow.com> Yes, but it's only good in Access97, when you had to use a 'hacked' AddressOf function. Once AddressOf was available in A2k and up, Callback functions became a little unstable. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, December 09, 2004 2:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JohnSkolits at corporatedatadesign.com Thu Dec 9 15:15:14 2004 From: JohnSkolits at corporatedatadesign.com (Spam) Date: Thu, 9 Dec 2004 16:15:14 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine In-Reply-To: <004201c4de32$96320c90$e8dafea9@ColbyM6805> Message-ID: <006f01c4de34$2d446820$6901a8c0@OFFICEXP1> Sorry if this was posted twice. Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John From cfoust at infostatsystems.com Thu Dec 9 15:43:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 13:43:27 -0800 Subject: [AccessD] Event only if sending report to the printer Message-ID: Are you using AXP? If you aren't, you're out of luck. If you are, the Printer property of the report will return a pointer to the Printer object. But it sounds like you just want to tell them to change the paper, so I don't see a reason to use the Printer object. You can't print from Preview without taking some action, so I would trap that action and insert the message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, December 09, 2004 9:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Event only if sending report to the printer Charlotte, How do I get to the printer object of the report? User normally has 3 hole paper in printer and needs to change to Print ( as opposed to preview) the report Currently this code lives in the report header print event: Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer) Dim lngRetval As Long lngRetval = MsgBox( _ "Please make sure the correct paper is the printer for printing Purchase Orders." & vbCrLf & "" & vbCrLf & "Click OK when ready.", _ vbOKOnly + vbExclamation + vbSystemModal + vbDefaultButton1, _ "Check Paper in Printer") Select Case lngRetval Case vbOK End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net Subject: RE: [AccessD] Event only if sending repo-----Original Message-----rt to the printer You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 9 15:48:24 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 13:48:24 -0800 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Message-ID: Our clients run like this all the time. We assume that our users are NOT the OS administrators. Are you using Access security? In order to delete records, they have to be able to log in and create the LDB file if it doesn't already exist. If they have no permissions to create/write/delete that file, they won't be able to delete any records. Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 1:15 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Sorry if this was posted twice. Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 9 15:49:36 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 13:49:36 -0800 Subject: [AccessD] callback functions Message-ID: Not recently. What are you trying to do? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, December 09, 2004 12:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JohnSkolits at corporatedatadesign.com Thu Dec 9 16:40:31 2004 From: JohnSkolits at corporatedatadesign.com (Spam) Date: Thu, 9 Dec 2004 17:40:31 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine In-Reply-To: Message-ID: <008301c4de40$173a33a0$6901a8c0@OFFICEXP1> There is no access security and the ldb file will be created in the same folder as the app. And they should have all rights to that folder. So I'm not sure who or what is preventing the ability to add or delete data. Note that even "super user" doesn't work. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 09, 2004 4:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine Our clients run like this all the time. We assume that our users are NOT the OS administrators. Are you using Access security? In order to delete records, they have to be able to log in and create the LDB file if it doesn't already exist. If they have no permissions to create/write/delete that file, they won't be able to delete any records. Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 1:15 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Sorry if this was posted twice. Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Dec 9 16:41:53 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 9 Dec 2004 17:41:53 -0500 Subject: [AccessD] callback functions In-Reply-To: <002701c4de33$996380f0$0b08a845@hargrove.internal> Message-ID: <20041209224154.LXOK2443.imf18aec.mail.bellsouth.net@SUSANONE> I'm not trying to do anything specific myself -- I'm just looking for ways that YOU guys use them in Access. ;) I've only used them to populate list controls. Susan H. Yup. What do you need to know? From cfoust at infostatsystems.com Thu Dec 9 18:22:53 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 16:22:53 -0800 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Message-ID: If there is no Access security, then it has to be a Windows permissions issue, which is outside the scope of Access. You have checked to be sure the mdb file isn't read only, right? Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 2:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine There is no access security and the ldb file will be created in the same folder as the app. And they should have all rights to that folder. So I'm not sure who or what is preventing the ability to add or delete data. Note that even "super user" doesn't work. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 09, 2004 4:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine Our clients run like this all the time. We assume that our users are NOT the OS administrators. Are you using Access security? In order to delete records, they have to be able to log in and create the LDB file if it doesn't already exist. If they have no permissions to create/write/delete that file, they won't be able to delete any records. Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 1:15 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Sorry if this was posted twice. Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 9 18:23:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Dec 2004 16:23:50 -0800 Subject: [AccessD] callback functions Message-ID: There was a section in the ADH that dealt with them, if I remember correctly. Or maybe it was a Ken Getz article somewhere... Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, December 09, 2004 2:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] callback functions I'm not trying to do anything specific myself -- I'm just looking for ways that YOU guys use them in Access. ;) I've only used them to populate list controls. Susan H. Yup. What do you need to know? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 9 19:18:46 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 9 Dec 2004 20:18:46 -0500 Subject: [AccessD] Good laptop cheap References: <003101c4ddf9$6ddc3600$e8dafea9@ColbyM6805> Message-ID: "If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine." JC ..while I agree with most of your post JC, that part simply isn't so, at least for Dells ...both the OS and the Office suite will install on any system capable of running them ...done it way too many times ...what you have to watch for with Dell and Office is that they offer an MS Office "Basic" version preinstalled which looks like a good deal until you see its missing key pieces. William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:14 AM Subject: RE: [AccessD] Good laptop cheap > Alan, > > You are definitely too demanding. Look at the prices for notebooks. Sure > you can get a DELL, you can get it with Office installed. But you pay a > LOT > for the privilege. I already own office, I purchased it separately. I > own > it and I can move it from system to system as I please. If you get a > version installed on a laptop, it comes in that laptop's install / restore > disk which won't install on any other machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the best > price possible. > > Because you refused to buy a laptop without Office installed you missed > out > on the best price for a laptop of that value I have EVER seen. So go > ahead, > drop an extra 350 dollars and get less of a laptop with Office on it from > Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for > $300. > I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of > other stuff. Why in the world would I pay for a laptop with that stuff > installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, but, at > a > minimum, I expect a computer to come with the current version of Windows - > and a decent version of Microsoft Office - irrespective of "how good" the > price may be. (I read an article several months ago on /. to the effect > that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay > Microsoft something like $49.00 for each copy of Windows; so the software > IS > NOT a major component of system cost.) I figure that bundled "home > editions" of Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had > tipped > us about. Once I discovered that the M5405 DID NOT have Microsoft Office > installed, (it had some puny collection of utilities that it called > "Microsoft Works"), I said "Sayonara" on that deal and left the store. > > Alan C. Lawhon > > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > > curious, did either of these come with actual disks for windows and such. > seems there is a trend towards not including such... > > sorry if too OT, > > > bob heygood > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no matter > what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > > > > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: >> For all those who were not able to take advantage of the Emachines >> laptop (or didn't trust the brand) >> >> > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product&skuId= >> 6851267&tab=6 >> >> A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines >> but still a good deal. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Dec 9 19:42:47 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 20:42:47 -0500 Subject: [AccessD] Good laptop cheap In-Reply-To: Message-ID: <000601c4de59$90626680$e8dafea9@ColbyM6805> OMG, back from the dead. Where the HELL have you been? I am sure various manufacturers have various deals with Microsoft. What I do know is that I have run into cases where I tried to install a "restore" disk on a computer other than the intended target and the software refused to install. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 09, 2004 8:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Good laptop cheap "If you get a version installed on a laptop, it comes in that laptop's install / restore disk which won't install on any other machine." JC ..while I agree with most of your post JC, that part simply isn't so, at least for Dells ...both the OS and the Office suite will install on any system capable of running them ...done it way too many times ...what you have to watch for with Dell and Office is that they offer an MS Office "Basic" version preinstalled which looks like a good deal until you see its missing key pieces. William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 9:14 AM Subject: RE: [AccessD] Good laptop cheap > Alan, > > You are definitely too demanding. Look at the prices for notebooks. > Sure you can get a DELL, you can get it with Office installed. But > you pay a LOT for the privilege. I already own office, I purchased it > separately. I own > it and I can move it from system to system as I please. If you get a > version installed on a laptop, it comes in that laptop's install / restore > disk which won't install on any other machine. That's just plain silly. > > Buy a good laptop, get the best price possible. Buy Office, get the > best price possible. > > Because you refused to buy a laptop without Office installed you > missed > out > on the best price for a laptop of that value I have EVER seen. So go > ahead, > drop an extra 350 dollars and get less of a laptop with Office on it from > Dell. > > Not me! > > In fact I became a Microsoft "partner" and bought the action pack for > $300. > I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of > other stuff. Why in the world would I pay for a laptop with that stuff > installed? > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, > Alan C Contractor/Morgan Research > Sent: Wednesday, December 08, 2004 3:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > > Bob: > > You ask a good question ... I may be "too demanding" or whatever, > but, at > a > minimum, I expect a computer to come with the current version of Windows - > and a decent version of Microsoft Office - irrespective of "how good" the > price may be. (I read an article several months ago on /. to the effect > that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay > Microsoft something like $49.00 for each copy of Windows; so the software > IS > NOT a major component of system cost.) I figure that bundled "home > editions" of Windows and Office [together] probably cost the retail seller > somewhere around $125.00. > > I went down to Best Buy last Friday to check out the $750.00 (after > rebates) eMachines model M5405 notebook computer that John Colby had > tipped > us about. Once I discovered that the M5405 DID NOT have Microsoft Office > installed, (it had some puny collection of utilities that it called > "Microsoft Works"), I said "Sayonara" on that deal and left the store. > > Alan C. Lawhon > > > -----Original Message----- > From: Bob Heygood [mailto:bheygood at abestsystems.com] > Sent: Wednesday, December 08, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Good laptop cheap > > > curious, did either of these come with actual disks for windows and > such. seems there is a trend towards not including such... > > sorry if too OT, > > > bob heygood > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen > Sent: Wednesday, December 08, 2004 10:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > > Don't do it John, > > I never look at PC specs after I have purchased a PC, because no > matter what, you will see a better deal. > > I hope that you enjoy the new machine, > > Mark > > > > > > On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby > wrote: >> For all those who were not able to take advantage of the Emachines >> laptop (or didn't trust the brand) >> >> > http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& > skuId= >> 6851267&tab=6 >> >> A nice Toshiba for $650 after rebates. Not as much machine as the > Emachines >> but still a good deal. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Dec 9 19:44:12 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 09 Dec 2004 20:44:12 -0500 Subject: [AccessD] callback functions In-Reply-To: Message-ID: <000701c4de59$bff72fc0$e8dafea9@ColbyM6805> ROTFL! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Thursday, December 09, 2004 4:22 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] callback functions Yes, I used it to aggravate myself into oblivion trying to figure it out :) D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 12:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] callback functions Has anyone ever used a callback function in Access to do anything other than fill a list control? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 9 20:08:37 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 9 Dec 2004 21:08:37 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine References: <006101c4de2c$3bf75a10$6901a8c0@OFFICEXP1> Message-ID: John ..I run several client systems with Access runtimes without giving anyone admin rights ..have you looked at your group policies? ...if others are making changes there it can have unintended consequences like you describe. ..for a couple of legacy DOS apps that refused to run without admin rights no matter what I did I've resorted to using shortcuts with the "run as" command ...see: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_security_runas_shortcut.mspx ..this lets a user run a specific app with the admin rights you specify and I've had little problem with it ...but of course ANY time you've got someone logged on with admin rights there is a potential for severe problems ...so I limit it to cases where nothing else gets the job done, not just as an easy out. ..I did have some problems initially with the Win2003/XP SPS2 combo and Access runtimes after the upgrade to Win2003 ...the only answer I found was to repackage the runtime deployment in that environment ...I have no explanation for it and its more than possible there's another solution I'm not aware of. ..hth :) William Hindman ----- Original Message ----- From: "Spam" To: Sent: Thursday, December 09, 2004 3:18 PM Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JohnSkolits at corporatedatadesign.com Thu Dec 9 20:22:45 2004 From: JohnSkolits at corporatedatadesign.com (Spam) Date: Thu, 9 Dec 2004 21:22:45 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine In-Reply-To: Message-ID: <00a701c4de5f$22afea30$6901a8c0@OFFICEXP1> Thanks Charlotte and William. Charlotte: I think if the MDB was read only, then it wouldn't work when logged into the OS as administrator: William: I'll pass these ideas onto my customer. Hopefully one of them will work. Thanks a million! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 09, 2004 9:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Running Access 2002 runtime on an Windows XP machine John ..I run several client systems with Access runtimes without giving anyone admin rights ..have you looked at your group policies? ...if others are making changes there it can have unintended consequences like you describe. ..for a couple of legacy DOS apps that refused to run without admin rights no matter what I did I've resorted to using shortcuts with the "run as" command ...see: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en- us/windows_security_runas_shortcut.mspx ..this lets a user run a specific app with the admin rights you specify and I've had little problem with it ...but of course ANY time you've got someone logged on with admin rights there is a potential for severe problems ...so I limit it to cases where nothing else gets the job done, not just as an easy out. ..I did have some problems initially with the Win2003/XP SPS2 combo and Access runtimes after the upgrade to Win2003 ...the only answer I found was to repackage the runtime deployment in that environment ...I have no explanation for it and its more than possible there's another solution I'm not aware of. ..hth :) William Hindman ----- Original Message ----- From: "Spam" To: Sent: Thursday, December 09, 2004 3:18 PM Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Thu Dec 9 20:30:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 9 Dec 2004 18:30:54 -0800 Subject: [AccessD] Event only if sending report to the printer In-Reply-To: Message-ID: <001f01c4de60$49c7e400$110110ac@delllaptop> I am in XP. Where is printer event vs. preview event JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 09, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Event only if sending report to the printer Are you using AXP? If you aren't, you're out of luck. If you are, the Printer property of the report will return a pointer to the Printer object. But it sounds like you just want to tell them to change the paper, so I don't see a reason to use the Printer object. You can't print from Preview without taking some action, so I would trap that action and insert the message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, December 09, 2004 9:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Event only if sending report to the printer Charlotte, How do I get to the printer object of the report? User normally has 3 hole paper in printer and needs to change to Print ( as opposed to preview) the report Currently this code lives in the report header print event: Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer) Dim lngRetval As Long lngRetval = MsgBox( _ "Please make sure the correct paper is the printer for printing Purchase Orders." & vbCrLf & "" & vbCrLf & "Click OK when ready.", _ vbOKOnly + vbExclamation + vbSystemModal + vbDefaultButton1, _ "Check Paper in Printer") Select Case lngRetval Case vbOK End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net Subject: RE: [AccessD] Event only if sending repo-----Original Message-----rt to the printer You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 9 20:54:26 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 9 Dec 2004 21:54:26 -0500 Subject: [AccessD] Good laptop cheap References: <000601c4de59$90626680$e8dafea9@ColbyM6805> Message-ID: ..there is a difference between a "restore" disk and an OEM CD copy of the installed software, what Dell always gives you ...a true "restore" disk is mapped to a HD directory structure and almost certainly would not work if that environment isn't present ...Compaq used to be guilty of that but I've not used them in years now. William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 8:42 PM Subject: RE: [AccessD] Good laptop cheap > OMG, back from the dead. Where the HELL have you been? > > I am sure various manufacturers have various deals with Microsoft. What I > do know is that I have run into cases where I tried to install a "restore" > disk on a computer other than the intended target and the software refused > to install. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, December 09, 2004 8:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Good laptop cheap > > > "If you get a version installed on a laptop, it comes in that laptop's > install / restore disk which won't install on any other machine." JC > > ..while I agree with most of your post JC, that part simply isn't so, at > least for Dells ...both the OS and the Office suite will install on any > system capable of running them ...done it way too many times ...what you > have to watch for with Dell and Office is that they offer an MS Office > "Basic" version preinstalled which looks like a good deal until you see > its > missing key pieces. > > William Hindman > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, December 09, 2004 9:14 AM > Subject: RE: [AccessD] Good laptop cheap > > >> Alan, >> >> You are definitely too demanding. Look at the prices for notebooks. >> Sure you can get a DELL, you can get it with Office installed. But >> you pay a LOT for the privilege. I already own office, I purchased it >> separately. I own >> it and I can move it from system to system as I please. If you get a >> version installed on a laptop, it comes in that laptop's install / >> restore >> disk which won't install on any other machine. That's just plain silly. >> >> Buy a good laptop, get the best price possible. Buy Office, get the >> best price possible. >> >> Because you refused to buy a laptop without Office installed you >> missed >> out >> on the best price for a laptop of that value I have EVER seen. So go >> ahead, >> drop an extra 350 dollars and get less of a laptop with Office on it from >> Dell. >> >> Not me! >> >> In fact I became a Microsoft "partner" and bought the action pack for >> $300. >> I get TEN LICENSES for Office, Windows XP, SQL Server 2000 and a TON of >> other stuff. Why in the world would I pay for a laptop with that stuff >> installed? >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, >> Alan C Contractor/Morgan Research >> Sent: Wednesday, December 08, 2004 3:45 PM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Good laptop cheap >> >> >> Bob: >> >> You ask a good question ... I may be "too demanding" or whatever, >> but, at >> a >> minimum, I expect a computer to come with the current version of >> Windows - >> and a decent version of Microsoft Office - irrespective of "how good" the >> price may be. (I read an article several months ago on /. to the effect >> that mass market PC sellers like Dell, Gateway, Toshiba and eMachines pay >> Microsoft something like $49.00 for each copy of Windows; so the software >> IS >> NOT a major component of system cost.) I figure that bundled "home >> editions" of Windows and Office [together] probably cost the retail >> seller >> somewhere around $125.00. >> >> I went down to Best Buy last Friday to check out the $750.00 (after >> rebates) eMachines model M5405 notebook computer that John Colby had >> tipped >> us about. Once I discovered that the M5405 DID NOT have Microsoft Office >> installed, (it had some puny collection of utilities that it called >> "Microsoft Works"), I said "Sayonara" on that deal and left the store. >> >> Alan C. Lawhon >> >> >> -----Original Message----- >> From: Bob Heygood [mailto:bheygood at abestsystems.com] >> Sent: Wednesday, December 08, 2004 2:03 PM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Good laptop cheap >> >> >> curious, did either of these come with actual disks for windows and >> such. seems there is a trend towards not including such... >> >> sorry if too OT, >> >> >> bob heygood >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen >> Sent: Wednesday, December 08, 2004 10:38 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Good laptop cheap >> >> >> Don't do it John, >> >> I never look at PC specs after I have purchased a PC, because no >> matter what, you will see a better deal. >> >> I hope that you enjoy the new machine, >> >> Mark >> >> >> >> >> >> On Tue, 07 Dec 2004 17:38:59 -0500, John W. Colby >> wrote: >>> For all those who were not able to take advantage of the Emachines >>> laptop (or didn't trust the brand) >>> >>> >> http://www.bestbuy.com/site/olspage.jsp?id=1093468419744&type=product& >> skuId= >>> 6851267&tab=6 >>> >>> A nice Toshiba for $650 after rebates. Not as much machine as the >> Emachines >>> but still a good deal. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> Contribute your unused CPU cycles to a good cause: >>> http://folding.stanford.edu/ >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From d.dick at uws.edu.au Thu Dec 9 21:28:04 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 10 Dec 2004 14:28:04 +1100 Subject: [AccessD] A2003: FTP and Network Connection Gurus In-Reply-To: <41B84428.16247.A76C13B@lexacorp.com.pg> Message-ID: <200412100328.iBA3SAx7013523@cooper.uws.edu.au> Hi Stuart Can't get it to work It should be simple All I see is a constant running (Like credits at the end of a movie but really really fast) of text in a DOS window DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, 9 December 2004 1:25 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things The client's > Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the back > end of the app (About 4meg) to the FTP location he supplied with the > credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript > Secondly how do I then link a front end to this FTP'd backend? > I know the IPADRRESS of the FTP destination, but don't know the share > or what the 'true' location of the FTP'd file is > > I have relinking code that can link to all the tables in say.... > \\123.123.456.789\SomeShare\SomedB.mdb > But how to I work out a path like that from the FTP info I have so far?? > You can't. His FTP structure does not necessarily bear any resemblance to the path which Access will use. You will have to ask the recipient what UNC path the FE will access the BE through. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 9 21:28:04 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 10 Dec 2004 14:28:04 +1100 Subject: [AccessD] A2003: FTP and Network Connection Gurus In-Reply-To: Message-ID: <200412100328.iBA3SAx6013523@cooper.uws.edu.au> Hi Gustav Do you have a working example? After 5 hours - yes 5 hours - I give up DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, 9 December 2004 8:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus Hi Darren If you prefer a little more than a DOS box for the user to view, go and pick Windows Command Line FTP and the Access module to drive it: http://www.pacific.net/~ken/software/ /gustav >>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things The client's > Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the back > end of the app (About 4meg) to the FTP location he supplied with the > credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Thu Dec 9 21:44:46 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 9 Dec 2004 19:44:46 -0800 Subject: [AccessD] Access XP Printer Event x posted Message-ID: <000101c4de6a$97c27620$110110ac@delllaptop> Come out come out where ever you are. I want a message message box only if a report goes to the printer, not if I preview the report. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Thu Dec 9 21:55:48 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 9 Dec 2004 19:55:48 -0800 Subject: [AccessD] Still cant kill the cancel messgae in No Data Event Message-ID: <000401c4de6c$25fa6e60$110110ac@delllaptop> Thanks Karen, I tried your code. It did not work. I still get report action has been canceled. How do I make it go away. On Error GoTo PROC_ERR 'TVCodeTools ErrorEnablerEnd Dim lngRetval As Long lngRetval = MsgBox( "There are no products requiring a QAIP Form in for this Purcase Order.", _ vbOKOnly + vbInformation + vbSystemModal + vbDefaultButton1, _ "No QAIP for this PO") Select Case lngRetval Case vbOK pintCancel = 1 End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From artful at rogers.com Thu Dec 9 23:19:14 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 10 Dec 2004 00:19:14 -0500 Subject: [AccessD] callback functions In-Reply-To: <20041209224154.LXOK2443.imf18aec.mail.bellsouth.net@SUSANONE> References: <20041209224154.LXOK2443.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <41B931D2.2050602@rogers.com> I haven't done it, Susan, but an obvious candidate would be an itelligent progress bar. A. Susan Harkins wrote: >I'm not trying to do anything specific myself -- I'm just looking for ways >that YOU guys use them in Access. ;) I've only used them to populate list >controls. > >Susan H. > >Yup. What do you need to know? > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.8 - Release Date: 12/8/2004 From william.thompson1 at att.net Fri Dec 10 00:12:40 2004 From: william.thompson1 at att.net (William Thompson) Date: Thu, 9 Dec 2004 22:12:40 -0800 Subject: [AccessD] Row Limitations for ListBoxes In-Reply-To: <002e01c4de16$d7176d20$110110ac@delllaptop> Message-ID: <200412100612.iBA6Cal05886@databaseadvisors.com> What is the row limitation for a multi-select list box if the row source is a) a query b) a string of values separate by ";" c) a list fill using the call back function (which I assume has no limitation) I need to build a sql string that inserts records via a connection execute for all records selected. Thanks for any help, Bill Thompson From Paul.Rogers at SummitMedia.co.uk Fri Dec 10 02:50:28 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 10 Dec 2004 08:50:28 -0000 Subject: [AccessD] 2 MySql posers Message-ID: Is there a simple way to rename a Primary Key column in MySql, please? None is listed in my tutorials. One way might be to delete the column and add a replacement. But once records are introduced, it seems, I can't replace a Primary Key column. Be grateful for guidance from one of our gurus please. Is there a simple way to back-up a table in MySql? I keep getting caught out by forgetting WHERE and messing up masses of rows. Cheers paul From R.Griffiths at bury.gov.uk Fri Dec 10 05:14:18 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 10 Dec 2004 11:14:18 -0000 Subject: [AccessD] Design question Message-ID: Hi Group Design issue - how to store the title for a person record Option 1 tblPerson ------------- titleID firstname lastname Option 2 tblPerson ------------- title (contains actual value from tblTitle e.g Mr,Miss, Mrs, Ms.,Dr., Prof.) firstname lastname Issues For option 1 - every time we need person details will require a join on the table (makes sql verbose etc) - For option 2 - how to handle tblTitle changes - could use ref. integrity or even simpler.....only allow user to add new titles and not amend (can't see any reason to amend anyway - amend 'Mr' to what??) Anyone care to comment (can't believe I've 20 years programming exp. and am asking this type of question - must be my age (just hit 40 )) Thanks Richard Griffiths From dejpolsys at hotmail.com Fri Dec 10 05:37:27 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 10 Dec 2004 06:37:27 -0500 Subject: [AccessD] A2003: FTP and Network Connection Gurus References: <200412100328.iBA3SAx6013523@cooper.uws.edu.au> Message-ID: Darren ..sent you off line a working mdb that imports a file from another mdb and then ftps it to a server on a schedule ...hth :) William Hindman ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 10:28 PM Subject: RE: [AccessD] A2003: FTP and Network Connection Gurus > Hi Gustav > Do you have a working example? > > After 5 hours - yes 5 hours - I give up > > DD > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Thursday, 9 December 2004 8:14 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus > > Hi Darren > > If you prefer a little more than a DOS box for the user to view, go and > pick > Windows Command Line FTP and the Access module to drive it: > > http://www.pacific.net/~ken/software/ > > /gustav > >>>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> > On 9 Dec 2004 at 9:14, Darren DICK wrote: > >> Hi All >> I need to add an FTP upload screen to one of my APPS >> >> Firstly - lemme say I know nothing about such things The client's >> Network dude gave me... >> A Server Name >> A UserName >> And a Password >> >> So...I opened up an FTP client and successfully transferred the back >> end of the app (About 4meg) to the FTP location he supplied with the >> credentials he supplied - Phew so far so good :-)) >> >> Anyone got any code or forms or URL's they'd like to share so I can >> incorporate something like an FTP scheduler in my app, to run > nightly? >> > > You can do it by very easily by scripting a FTP session and scheduling it > using built in Windows capabilities (Look up FTP commands in WIndows > Help): > > Create a text file (c:\ftpstuff\myscript) containing the following, > substituting the appropriate info. Make sure that there are no trailing > > spaces on the lines: > > open ftp.myftpserver.com.au > myusername > mypassword > send c:\ftpstuff\myfile.mdb > disconnect > quit > > Note: This should work, depending on the FTP Server he is using. Some > > require a line like "USER myusername mypassword" in place of the two lines > with above. > > Then schedule a one line batch file containing the command: > > ftp -s:c:\ftpstuff\myscript > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Dec 10 06:25:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 10 Dec 2004 07:25:32 -0500 Subject: [AccessD] Row Limitations for ListBoxes In-Reply-To: <200412100612.iBA6Cal05886@databaseadvisors.com> Message-ID: <000d01c4deb3$5ad53150$e8dafea9@ColbyM6805> The limit in this case will be the 2000 byte length limit of the rowsource property. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Thompson Sent: Friday, December 10, 2004 1:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Row Limitations for ListBoxes What is the row limitation for a multi-select list box if the row source is a) a query b) a string of values separate by ";" c) a list fill using the call back function (which I assume has no limitation) I need to build a sql string that inserts records via a connection execute for all records selected. Thanks for any help, Bill Thompson -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Fri Dec 10 07:18:26 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Fri, 10 Dec 2004 13:18:26 -0000 Subject: [AccessD] Design question In-Reply-To: Message-ID: Hi Richard I can't get excited over tables of titles. What's the point in having one? Little if any savings or gains in space, performance, complexity, ergonomics, etc - in fact the opposite, mostly. Just let them type it in! And store it in the record with the name(s). Looking in my address book, I can see a Frau, a Mme and a Reverend Canon amongst others. And my own title, which I rarely use, almost never appears. Who cares?! Admittedly there is a narrower choice in the US, but here in the UK (just 30 miles from you, in Cheshire) + Europe the list could get quite long. This is the voice of experience speaking - programming since before you were born! (just plain) John Robinson > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Griffiths, Richard > Sent: 10 December 2004 11:14 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Design question > > Hi Group > Design issue - how to store the title for a person record > > Option 1 > > tblPerson > ------------- > titleID > firstname > lastname > > > Option 2 > > tblPerson > ------------- > title (contains actual value from tblTitle e.g Mr,Miss, Mrs, Ms.,Dr., > Prof.) > firstname > lastname > > > Issues > > For option 1 - every time we need person details will require > a join on the table (makes sql verbose etc) - > > For option 2 - how to handle tblTitle changes - could use > ref. integrity or even simpler.....only allow user to add new > titles and not amend (can't see any reason to amend > > anyway - amend 'Mr' to what??) > > Anyone care to comment (can't believe I've 20 years > programming exp. and am asking this type of question - must > be my age (just hit 40 )) > > Thanks > Richard Griffiths From JohnSkolits at corporatedatadesign.com Fri Dec 10 07:57:44 2004 From: JohnSkolits at corporatedatadesign.com (John Skolits) Date: Fri, 10 Dec 2004 08:57:44 -0500 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine In-Reply-To: <00a701c4de5f$22afea30$6901a8c0@OFFICEXP1> Message-ID: <000701c4dec0$398b8af0$800101df@OFFICEXP1> The IT person had a question. Maybe someone could answer it. John, Can you ask if there is a specific group policy setting that would allow this? I'm not sure, I may have prevented the user from doing something I shouldn't have. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Spam Sent: Thursday, December 09, 2004 9:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine Thanks Charlotte and William. Charlotte: I think if the MDB was read only, then it wouldn't work when logged into the OS as administrator: William: I'll pass these ideas onto my customer. Hopefully one of them will work. Thanks a million! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 09, 2004 9:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Running Access 2002 runtime on an Windows XP machine John ..I run several client systems with Access runtimes without giving anyone admin rights ..have you looked at your group policies? ...if others are making changes there it can have unintended consequences like you describe. ..for a couple of legacy DOS apps that refused to run without admin rights no matter what I did I've resorted to using shortcuts with the "run as" command ...see: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en- us/windows_security_runas_shortcut.mspx ..this lets a user run a specific app with the admin rights you specify and I've had little problem with it ...but of course ANY time you've got someone logged on with admin rights there is a potential for severe problems ...so I limit it to cases where nothing else gets the job done, not just as an easy out. ..I did have some problems initially with the Win2003/XP SPS2 combo and Access runtimes after the upgrade to Win2003 ...the only answer I found was to repackage the runtime deployment in that environment ...I have no explanation for it and its more than possible there's another solution I'm not aware of. ..hth :) William Hindman ----- Original Message ----- From: "Spam" To: Sent: Thursday, December 09, 2004 3:18 PM Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Dec 10 07:22:27 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 10 Dec 2004 08:22:27 -0500 Subject: [AccessD] Still cant kill the cancel messgae in No Data Event In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A5514A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBB53@ADGSERVER> You have to have the error trapping code in the location where the report is called. In the OnNoData event in the report, you need to set cancel to true. Example: Private Sub Report_NoData(Cancel As Integer) Cancel = True End Sub Function PreviewReport() On Error GoTo Proc_Err DoCmd.OpenReport "TCR", acPreview, "", "" Proc_Exit: Exit Function Proc_Err: If Err.Number = 2501 Then 'no data MsgBox "There is no data to display.", vbInformation + vbOKOnly Else 'err handling code goes here End If Resume Proc_Exit End Function Hope this helps, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, December 09, 2004 10:56 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Still cant kill the cancel messgae in No Data Event Thanks Karen, I tried your code. It did not work. I still get report action has been canceled. How do I make it go away. On Error GoTo PROC_ERR 'TVCodeTools ErrorEnablerEnd Dim lngRetval As Long lngRetval = MsgBox( "There are no products requiring a QAIP Form in for this Purcase Order.", _ vbOKOnly + vbInformation + vbSystemModal + vbDefaultButton1, _ "No QAIP for this PO") Select Case lngRetval Case vbOK pintCancel = 1 End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jimdettman at earthlink.net Fri Dec 10 08:31:35 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 10 Dec 2004 09:31:35 -0500 Subject: [AccessD] callback functions In-Reply-To: <20041209224154.LXOK2443.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: Susan, You can use them with DLL's and the Windows Common Dialog controls. I've never bothered though. Always was uncomfortable with adding the AddressOf hack to A97 and since then have not had the need to use it with A2000 and up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, December 09, 2004 5:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] callback functions I'm not trying to do anything specific myself -- I'm just looking for ways that YOU guys use them in Access. ;) I've only used them to populate list controls. Susan H. Yup. What do you need to know? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Dec 10 09:27:38 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Dec 2004 16:27:38 +0100 Subject: [AccessD] A2003: FTP and Network Connection Gurus Message-ID: Hi Darren 5 hours? Should be 5 minutes ... Of course, ftp server and admissions must work. This is best debugged using ftp.exe. /gustav >>> d.dick at uws.edu.au 10-12-2004 04:28:04 >>> Hi Gustav Do you have a working example? After 5 hours - yes 5 hours - I give up DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, 9 December 2004 8:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus Hi Darren If you prefer a little more than a DOS box for the user to view, go and pick Windows Command Line FTP and the Access module to drive it: http://www.pacific.net/~ken/software/ /gustav >>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> On 9 Dec 2004 at 9:14, Darren DICK wrote: > Hi All > I need to add an FTP upload screen to one of my APPS > > Firstly - lemme say I know nothing about such things The client's > Network dude gave me... > A Server Name > A UserName > And a Password > > So...I opened up an FTP client and successfully transferred the back > end of the app (About 4meg) to the FTP location he supplied with the > credentials he supplied - Phew so far so good :-)) > > Anyone got any code or forms or URL's they'd like to share so I can > incorporate something like an FTP scheduler in my app, to run nightly? > You can do it by very easily by scripting a FTP session and scheduling it using built in Windows capabilities (Look up FTP commands in WIndows Help): Create a text file (c:\ftpstuff\myscript) containing the following, substituting the appropriate info. Make sure that there are no trailing spaces on the lines: open ftp.myftpserver.com.au myusername mypassword send c:\ftpstuff\myfile.mdb disconnect quit Note: This should work, depending on the FTP Server he is using. Some require a line like "USER myusername mypassword" in place of the two lines with above. Then schedule a one line batch file containing the command: ftp -s:c:\ftpstuff\myscript From ssharkins at bellsouth.net Fri Dec 10 09:39:22 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 10 Dec 2004 10:39:22 -0500 Subject: [AccessD] Row Limitations for ListBoxes In-Reply-To: <000d01c4deb3$5ad53150$e8dafea9@ColbyM6805> Message-ID: <20041210153952.RQIJ1980.imf16aec.mail.bellsouth.net@SUSANONE> Unless you use a callback function, which now brings us full circle. ;) I think this limit is only an issue for value list though, isn't it? Susan H. The limit in this case will be the 2000 byte length limit of the rowsource property. From ssharkins at bellsouth.net Fri Dec 10 09:39:22 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 10 Dec 2004 10:39:22 -0500 Subject: [AccessD] Design question In-Reply-To: Message-ID: <20041210154000.RQKZ1980.imf16aec.mail.bellsouth.net@SUSANONE> I can't get excited over tables of titles. What's the point in having one? Little if any savings or gains in space, performance, complexity, ergonomics, etc - in fact the opposite, mostly. Just let them type it in! And store it in the record with the name(s). =========I think I agree, but you could make it a tad easier by offering a combo with the choices -- make the default the most often used title and be done with it. Susan H. From JHewson at karta.com Fri Dec 10 09:52:16 2004 From: JHewson at karta.com (Jim Hewson) Date: Fri, 10 Dec 2004 09:52:16 -0600 Subject: [AccessD] Design question Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068D5B@karta-exc-int.Karta.com> Using Susan's suggestion, I'd make it a tad bit different. When creating the combo box, for the Row Source use a SQL statement using a group-by to refer back to the same field that's being updated. The user can still type in anything that is needed. Do a requery on the On Enter event. This way all titles used are available and new ones can be added. Jim H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Friday, December 10, 2004 9:39 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Design question I can't get excited over tables of titles. What's the point in having one? Little if any savings or gains in space, performance, complexity, ergonomics, etc - in fact the opposite, mostly. Just let them type it in! And store it in the record with the name(s). =========I think I agree, but you could make it a tad easier by offering a combo with the choices -- make the default the most often used title and be done with it. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Dec 10 10:02:49 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 10 Dec 2004 11:02:49 -0500 Subject: [AccessD] Row Limitations for ListBoxes In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A5522A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBB5B@ADGSERVER> Isn't the limit in XP now 32K for the value list? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, December 10, 2004 10:39 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Row Limitations for ListBoxes Unless you use a callback function, which now brings us full circle. ;) I think this limit is only an issue for value list though, isn't it? Susan H. The limit in this case will be the 2000 byte length limit of the rowsource property. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joconnell at indy.rr.com Fri Dec 10 10:40:21 2004 From: joconnell at indy.rr.com (Joseph O'Connell) Date: Fri, 10 Dec 2004 11:40:21 -0500 Subject: [AccessD] Design question Message-ID: <094e01c4ded6$f1dd5b40$6701a8c0@joe> And if the combo is populated with values already in the table, you would at least "suggest" a level of uniformity. The record source would be something like "Select Distinct PersonTitle From YourTable Order By PersonTitle". Be sure the Limit To List property is set to No to allow the users to enter titles that may not be in the table. Joe O'Connell -----Original Message----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Date: Friday, December 10, 2004 10:41 AM Subject: RE: [AccessD] Design question | |I can't get excited over tables of titles. What's the point in having one? |Little if any savings or gains in space, performance, complexity, |ergonomics, etc - in fact the opposite, mostly. Just let them type it in! |And store it in the record with the name(s). | |=========I think I agree, but you could make it a tad easier by offering a |combo with the choices -- make the default the most often used title and be |done with it. | |Susan H. | |-- |AccessD mailing list |AccessD at databaseadvisors.com |http://databaseadvisors.com/mailman/listinfo/accessd |Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 10 10:42:55 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Dec 2004 08:42:55 -0800 Subject: [AccessD] Row Limitations for ListBoxes Message-ID: There is also a limit on rows, I believe. Something like 65K that can be loaded in a block? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Friday, December 10, 2004 7:39 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Row Limitations for ListBoxes Unless you use a callback function, which now brings us full circle. ;) I think this limit is only an issue for value list though, isn't it? Susan H. The limit in this case will be the 2000 byte length limit of the rowsource property. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Dec 10 10:43:42 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 10 Dec 2004 11:43:42 -0500 Subject: [AccessD] Design question In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068D5B@karta-exc-int.Karta.com> Message-ID: <20041210164410.UGLF1994.imf17aec.mail.bellsouth.net@SUSANONE> Good idea. :) Susan H. Using Susan's suggestion, I'd make it a tad bit different. When creating the combo box, for the Row Source use a SQL statement using a group-by to refer back to the same field that's being updated. The user can still type in anything that is needed. Do a requery on the On Enter event. This way all titles used are available and new ones can be added. From cfoust at infostatsystems.com Fri Dec 10 10:49:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Dec 2004 08:49:19 -0800 Subject: [AccessD] Event only if sending report to the printer Message-ID: You don't have a preview event, Joe. What I was trying to explain was that we use a print select form with a preview button and a print button. If they preview the report, then there has to be a toolbar or menu or context menu for them to use to print it from the preview. So I would put the warning in the code behind the print button on the select form and in the code called from the toolbar or menu item to print from the preview. Does that make it clearer? Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, December 09, 2004 6:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Event only if sending report to the printer I am in XP. Where is printer event vs. preview event JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 09, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Event only if sending report to the printer Are you using AXP? If you aren't, you're out of luck. If you are, the Printer property of the report will return a pointer to the Printer object. But it sounds like you just want to tell them to change the paper, so I don't see a reason to use the Printer object. You can't print from Preview without taking some action, so I would trap that action and insert the message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, December 09, 2004 9:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Event only if sending report to the printer Charlotte, How do I get to the printer object of the report? User normally has 3 hole paper in printer and needs to change to Print ( as opposed to preview) the report Currently this code lives in the report header print event: Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer) Dim lngRetval As Long lngRetval = MsgBox( _ "Please make sure the correct paper is the printer for printing Purchase Orders." & vbCrLf & "" & vbCrLf & "Click OK when ready.", _ vbOKOnly + vbExclamation + vbSystemModal + vbDefaultButton1, _ "Check Paper in Printer") Select Case lngRetval Case vbOK End Select 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Sub PROC_ERR: MsgBox Err.Description Resume PROC_EXIT 'TVCodeTools ErrorHandlerEnd End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net Subject: RE: [AccessD] Event only if sending repo-----Original Message-----rt to the printer You're going to have to directly address the printer object of the report if you want your code to intercept a paperout error, if that's what you want to do. If you just want to broadcase a general message to check the paper before printing, use a custom print function behind whatever button you're using to actually print the previewed report and add your message there. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 08, 2004 7:35 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Event only if sending report to the printer I want to open a message box only when the report is going to the printer. The print event triggers on preview also and that is not the best time for a check the paper message. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 10 10:49:59 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Dec 2004 08:49:59 -0800 Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Message-ID: You're right, I wasn't thinking. Charlotte Foust -----Original Message----- From: Spam [mailto:JohnSkolits at corporatedatadesign.com] Sent: Thursday, December 09, 2004 6:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Running Access 2002 runtime on an Windows XP machine Thanks Charlotte and William. Charlotte: I think if the MDB was read only, then it wouldn't work when logged into the OS as administrator: William: I'll pass these ideas onto my customer. Hopefully one of them will work. Thanks a million! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 09, 2004 9:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Running Access 2002 runtime on an Windows XP machine John ..I run several client systems with Access runtimes without giving anyone admin rights ..have you looked at your group policies? ...if others are making changes there it can have unintended consequences like you describe. ..for a couple of legacy DOS apps that refused to run without admin rights no matter what I did I've resorted to using shortcuts with the "run as" command ...see: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs /en- us/windows_security_runas_shortcut.mspx ..this lets a user run a specific app with the admin rights you specify and I've had little problem with it ...but of course ANY time you've got someone logged on with admin rights there is a potential for severe problems ...so I limit it to cases where nothing else gets the job done, not just as an easy out. ..I did have some problems initially with the Win2003/XP SPS2 combo and Access runtimes after the upgrade to Win2003 ...the only answer I found was to repackage the runtime deployment in that environment ...I have no explanation for it and its more than possible there's another solution I'm not aware of. ..hth :) William Hindman ----- Original Message ----- From: "Spam" To: Sent: Thursday, December 09, 2004 3:18 PM Subject: [AccessD] Running Access 2002 runtime on an Windows XP machine Anyone have a problem running a 'runtime' version of Access on a machine in which the user is not the "OS "administrator? I have tried "super user" but the user can't delete any records. Says no permissions. This is not the user logging into Access that seems to be the issue. It seems to be the user logging onto the PCs operating system when they start the PC. A user with operating system administrative rights has no problem. Also, if I log on to the OS as the user with limited rights and run the app as an administrator (can do that by right-clicking on the apps, icon and selecting :"Run As") it the app runs with no problems.. Any ideas? Any way of launching an app and specifying the administrator as the user. Maybe a command line argument? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Fri Dec 10 11:10:56 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 10 Dec 2004 17:10:56 -0000 Subject: [AccessD] Design question Message-ID: Thanks for your replies - I'll keep the table but simply present this for use in a drop down combo and store the result in a text field. I appreciate the lookup of actual values entered - varying typing skills could result in mistyped/spelled entries which then presents the user with a duff list and the task of finding the duff entries - thanks. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 10 December 2004 16:44 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Design question Good idea. :) Susan H. Using Susan's suggestion, I'd make it a tad bit different. When creating the combo box, for the Row Source use a SQL statement using a group-by to refer back to the same field that's being updated. The user can still type in anything that is needed. Do a requery on the On Enter event. This way all titles used are available and new ones can be added. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Dec 10 11:58:10 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 10 Dec 2004 17:58:10 +0000 Subject: [AccessD] Design question In-Reply-To: Message-ID: Richard, Earlier in this thread...the value of storing titles seperately was questioned. I recently did some work with a 'Process Management' software package. There was an Org Chart built in (the titles were stored seperately). This allowed control of some processes that were dependant on title. If titles were randomly typed in...you would have some difficulty if you wanted your app to do something for all 'managers' or some other title. Depending on the app...there can be some good reasons to store the title seperate...or some good reasons not to. Just thought I'd add... Thanks, Mark A. Matte >From: "Griffiths, Richard" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] Design question >Date: Fri, 10 Dec 2004 17:10:56 -0000 > >Thanks for your replies - I'll keep the table but simply present this >for use in a drop down combo and store the result in a text field. I >appreciate the lookup of actual values entered - varying typing skills >could result in mistyped/spelled entries which then presents the user >with a duff list and the task of finding the duff entries - thanks. >R > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: 10 December 2004 16:44 >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Design question > >Good idea. :) > >Susan H. > >Using Susan's suggestion, I'd make it a tad bit different. >When creating the combo box, for the Row Source use a SQL statement >using a >group-by to refer back to the same field that's being updated. The user >can >still type in anything that is needed. Do a requery on the On Enter >event. >This way all titles used are available and new ones can be added. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Dec 10 12:12:10 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 10 Dec 2004 13:12:10 -0500 Subject: [AccessD] Design question Message-ID: Letting the users type in anything that can lead to type'0s is a recipe for data disaster. Around here, titles change like underwear, one day a person is an IS Support Specialist, the next day he is an ITSO Support Specialist. Keeping the titles in a lookup table relieves so many headaches. And people can not spell. So you have have sexretary, secratery, etc. Then, how are you going to run a report with a bunch of titles that are misspelled? Grumppp. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, December 10, 2004 12:58 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Design question Richard, Earlier in this thread...the value of storing titles seperately was questioned. I recently did some work with a 'Process Management' software package. There was an Org Chart built in (the titles were stored seperately). This allowed control of some processes that were dependant on title. If titles were randomly typed in...you would have some difficulty if you wanted your app to do something for all 'managers' or some other title. Depending on the app...there can be some good reasons to store the title seperate...or some good reasons not to. Just thought I'd add... Thanks, Mark A. Matte >From: "Griffiths, Richard" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] Design question >Date: Fri, 10 Dec 2004 17:10:56 -0000 > >Thanks for your replies - I'll keep the table but simply present this >for use in a drop down combo and store the result in a text field. I >appreciate the lookup of actual values entered - varying typing skills >could result in mistyped/spelled entries which then presents the user >with a duff list and the task of finding the duff entries - thanks. >R > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: 10 December 2004 16:44 >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Design question > >Good idea. :) > >Susan H. > >Using Susan's suggestion, I'd make it a tad bit different. >When creating the combo box, for the Row Source use a SQL statement >using a >group-by to refer back to the same field that's being updated. The user >can >still type in anything that is needed. Do a requery on the On Enter >event. >This way all titles used are available and new ones can be added. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Fri Dec 10 13:04:03 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Fri, 10 Dec 2004 19:04:03 -0000 Subject: [AccessD] Design question In-Reply-To: Message-ID: Actually, the Q was about Mr, Mrs, etc, not job titles. Is Ms a 'miss'-spelling? I suppose gender re-assignment would lead to a change ... but I'd avoid the underwear allusion! John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Nicholson, Karen > Sent: 10 December 2004 18:12 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Design question > > > Letting the users type in anything that can lead to type'0s > is a recipe for data disaster. Around here, titles change > like underwear, one day a person is an IS Support Specialist, > the next day he is an ITSO Support Specialist. Keeping the > titles in a lookup table relieves so many headaches. And > people can not spell. So you have have sexretary, secratery, > etc. Then, how are you going to run a report with a bunch of > titles that are misspelled? Grumppp. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark A Matte > Sent: Friday, December 10, 2004 12:58 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Design question > > > Richard, > > Earlier in this thread...the value of storing titles seperately was > questioned. I recently did some work with a 'Process > Management' software > package. There was an Org Chart built in (the titles were stored > seperately). This allowed control of some processes that > were dependant on > title. If titles were randomly typed in...you would have > some difficulty if > you wanted your app to do something for all 'managers' or > some other title. > > Depending on the app...there can be some good reasons to > store the title > > seperate...or some good reasons not to. > > Just thought I'd add... > > Thanks, > > Mark A. Matte > > >From: "Griffiths, Richard" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] Design question > >Date: Fri, 10 Dec 2004 17:10:56 -0000 > > > >Thanks for your replies - I'll keep the table but simply > present this > >for use in a drop down combo and store the result in a text field. I > >appreciate the lookup of actual values entered - varying > typing skills > >could result in mistyped/spelled entries which then presents > the user > >with a duff list and the task of finding the duff entries - thanks. R > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > >Sent: 10 December 2004 16:44 > >To: 'Access Developers discussion and problem solving' > >Subject: RE: [AccessD] Design question > > > >Good idea. :) > > > >Susan H. > > > >Using Susan's suggestion, I'd make it a tad bit different. When > >creating the combo box, for the Row Source use a SQL > statement using a > >group-by to refer back to the same field that's being updated. The > user > >can > >still type in anything that is needed. Do a requery on the On Enter > >event. This way all titles used are available and new ones can be > >added. > > From reuben at gfconsultants.com Fri Dec 10 13:14:50 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 10 Dec 2004 14:14:50 -0500 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer 2000 Message-ID: I am trying to get another computer to burn installations from. When creating the deployment package I notice that msado21.tlb shows up where it never did. And then when running a completed CD to test the install I get an error message stating "Cannot find the Source file 'D:\\charts\\@msado21.tlb' to Install" I have tried to repair Office and Developer (both 2000). The problem occurs when I insert the Developer CD. I get a messgae stating that Developer requires VBA 6.0 and that I must install Office or something else that contains VBA 6.0 However, Office 2000 is installed. I even tried removing it and re-installing it. No Luck. Any ideas? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From pedro at plex.nl Fri Dec 10 13:44:54 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 10 Dec 2004 20:44:54 +0100 Subject: [AccessD] missing reference, converting to A2003 References: Message-ID: <006701c4def0$dc4e41d0$fbc581d5@pedro> Hello Charlotte, when unschecking the reference, the code doesn't compile. It gives a missing reference for the IsLoaded event. Anybody an idea what this refence does? Pedro Janssen ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 09, 2004 5:59 PM Subject: RE: [AccessD] missing reference, converting to A2003 > If you uncheck the reference, does the code compile? Since the > reference is to an ocx file, you should only need it if you're using the > activex control in the application, in which case, it would have to be > installed on your system. > > Charlotte Foust > > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Thursday, December 09, 2004 4:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] missing reference, converting to A2003 > > > Hello Group, > > when converting a A2k database to A2003 i get an missing reference > error. Missing is the effect library (MMEFXE.OCX). I searched the system > for this reference, but i can't find it. Also in the knowledge base i > can't find any info. Has anybody encountered this problem. > > Pedro Janssen > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Susan.Klos at fldoe.org Fri Dec 10 13:57:39 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Fri, 10 Dec 2004 14:57:39 -0500 Subject: [AccessD] Setting the row source of a listbox by code Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE739A5@doesefpeml02.eus.fldoe.int> I have narrowed my problem to this: I have a listbox and two queries. If the form is opened where txtfindProjects = "open", I want to set the row source of the listbox to qryFindOpenProjects. Otherwise I want the row source of the listbox to be qryFindAllProjects. Here is my code which I have tried in several events and it doesn't seem to work in any of them. Private Sub Form_Open(Cancel As Integer) DoCmd.Maximize If Forms!frmProjects!Text55 = "all" Then Me.List52.RowSource = "qryFindAllProjects" ElseIf Forms!frmProjects!Text55 = "open" Then Me.List52.RowSource = "qryFindOpenProjects" End Sub Any ideas? Thanks. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From CMackin at quiznos.com Fri Dec 10 13:59:19 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Fri, 10 Dec 2004 12:59:19 -0700 Subject: [AccessD] Setting the row source of a listbox by code Message-ID: Try the Load Event instead and add a Requery after setting the RowSource: Private Sub Form_Load() If Forms!frmProjects!Text55 = "open" Then Me.List52.RowSource = "qryFindOpenProjects" Else Me.List52.RowSource = "qryFindAllProjects" End If Me.List52.Requery End Sub Also, looking a little closer at the code you have, make sure that the value returned by Forms!frmProjects!Text55 is what you're expecting. If "open" or "all" is not in Text55 {here's where a naming convention would be useful} then your code would not set the RowSource. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Klos, Susan Sent: Friday, December 10, 2004 12:58 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Setting the row source of a listbox by code I have narrowed my problem to this: I have a listbox and two queries. If the form is opened where txtfindProjects = "open", I want to set the row source of the listbox to qryFindOpenProjects. Otherwise I want the row source of the listbox to be qryFindAllProjects. Here is my code which I have tried in several events and it doesn't seem to work in any of them. Private Sub Form_Open(Cancel As Integer) DoCmd.Maximize If Forms!frmProjects!Text55 = "all" Then Me.List52.RowSource = "qryFindAllProjects" ElseIf Forms!frmProjects!Text55 = "open" Then Me.List52.RowSource = "qryFindOpenProjects" End Sub Any ideas? Thanks. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Dec 10 14:02:55 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 10 Dec 2004 15:02:55 -0500 Subject: [AccessD] missing reference, converting to A2003 Message-ID: Function IsLoaded(ByVal strFormName As String) As Boolean ' Returns True if the specified form is open in Form view or Datasheet view. Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then If Forms(strFormName).CurrentView <> conDesignView Then IsLoaded = True End If End If End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Friday, December 10, 2004 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] missing reference, converting to A2003 Hello Charlotte, when unschecking the reference, the code doesn't compile. It gives a missing reference for the IsLoaded event. Anybody an idea what this refence does? Pedro Janssen ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 09, 2004 5:59 PM Subject: RE: [AccessD] missing reference, converting to A2003 > If you uncheck the reference, does the code compile? Since the > reference is to an ocx file, you should only need it if you're using the > activex control in the application, in which case, it would have to be > installed on your system. > > Charlotte Foust > > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Thursday, December 09, 2004 4:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] missing reference, converting to A2003 > > > Hello Group, > > when converting a A2k database to A2003 i get an missing reference > error. Missing is the effect library (MMEFXE.OCX). I searched the system > for this reference, but i can't find it. Also in the knowledge base i > can't find any info. Has anybody encountered this problem. > > Pedro Janssen > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Dec 10 14:17:37 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 10 Dec 2004 12:17:37 -0800 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer 2000 References: Message-ID: <41BA0461.6070408@shaw.ca> That file is from the MDAC, you might want to check which versions you have. Some MDAC's wont install on lower OS. like MDAC 2.7 wont go on Win98 Reuben Cummings wrote: >I am trying to get another computer to burn installations from. When >creating the deployment package I notice that msado21.tlb shows up where it >never did. > >And then when running a completed CD to test the install I get an error >message stating "Cannot find the Source file 'D:\\charts\\@msado21.tlb' to >Install" > >I have tried to repair Office and Developer (both 2000). The problem occurs >when I insert the Developer CD. I get a messgae stating that Developer >requires VBA 6.0 and that I must install Office or something else that >contains VBA 6.0 > >However, Office 2000 is installed. I even tried removing it and >re-installing it. No Luck. > >Any ideas? > >Thanks. > >Reuben Cummings >GFC, LLC >phone: 812.523.1017 >email: reuben at gfconsultants.com > > > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Fri Dec 10 14:53:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Dec 2004 12:53:48 -0800 Subject: [AccessD] missing reference, converting to A2003 Message-ID: I take it this is something you didn't build yourself? The ocx is the Microsoft MultiMedia Controls Effects library, and you get some information on it at http://www.e-systems.ro/download-ocx/mmefxe.ocx/. I believe it's part of IE 4.x and 5.x but I don't think it is part of IE 6. I have a copy on my machine buried in the IE4Setup folder at C:\Program Files\Microsoft Visual Studio\VSS\netsetup.x86\IE4setup\AXA.CAB, but I don't have a clue on how to use it, since I use IE6. Possibly doing a repair on IE will get it back, but do you really need that control? If not, I'd remove it and the supporting code. Charlotte Foust -----Original Message----- From: Pedro Janssen [mailto:pedro at plex.nl] Sent: Friday, December 10, 2004 11:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] missing reference, converting to A2003 Hello Charlotte, when unschecking the reference, the code doesn't compile. It gives a missing reference for the IsLoaded event. Anybody an idea what this refence does? Pedro Janssen ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 09, 2004 5:59 PM Subject: RE: [AccessD] missing reference, converting to A2003 > If you uncheck the reference, does the code compile? Since the > reference is to an ocx file, you should only need it if you're using > the activex control in the application, in which case, it would have > to be installed on your system. > > Charlotte Foust > > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Thursday, December 09, 2004 4:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] missing reference, converting to A2003 > > > Hello Group, > > when converting a A2k database to A2003 i get an missing reference > error. Missing is the effect library (MMEFXE.OCX). I searched the > system for this reference, but i can't find it. Also in the knowledge > base i can't find any info. Has anybody encountered this problem. > > Pedro Janssen > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Dec 10 15:46:01 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 10 Dec 2004 13:46:01 -0800 Subject: [AccessD] Setting the row source of a listbox by code In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51EE739A5@doesefpeml02.eus.fldoe.int> Message-ID: Hi Susan: Just a quick note; maybe the listboxes should be initialized/filled in the Form_Load event instead of the Form_Open event as the listbox objects may not exist until the Form_Load event. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Klos, Susan Sent: Friday, December 10, 2004 11:58 AM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Setting the row source of a listbox by code I have narrowed my problem to this: I have a listbox and two queries. If the form is opened where txtfindProjects = "open", I want to set the row source of the listbox to qryFindOpenProjects. Otherwise I want the row source of the listbox to be qryFindAllProjects. Here is my code which I have tried in several events and it doesn't seem to work in any of them. Private Sub Form_Open(Cancel As Integer) DoCmd.Maximize If Forms!frmProjects!Text55 = "all" Then Me.List52.RowSource = "qryFindAllProjects" ElseIf Forms!frmProjects!Text55 = "open" Then Me.List52.RowSource = "qryFindOpenProjects" End Sub Any ideas? Thanks. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Fri Dec 10 15:51:46 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 10 Dec 2004 22:51:46 +0100 Subject: [AccessD] missing reference, converting to A2003 References: Message-ID: <003e01c4df02$72d46fb0$fbc581d5@pedro> Hello Karin and Charlotte, Thanks for your help. Indeed i didn't build the database myself. I will remove the reference and see for what need the code is. Maybe i can delete or adjust it instead. Pedro Janssen ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, December 10, 2004 9:53 PM Subject: RE: [AccessD] missing reference, converting to A2003 > I take it this is something you didn't build yourself? The ocx is the > Microsoft MultiMedia Controls Effects library, and you get some > information on it at http://www.e-systems.ro/download-ocx/mmefxe.ocx/. > I believe it's part of IE 4.x and 5.x but I don't think it is part of IE > 6. I have a copy on my machine buried in the IE4Setup folder at > C:\Program Files\Microsoft Visual > Studio\VSS\netsetup.x86\IE4setup\AXA.CAB, but I don't have a clue on how > to use it, since I use IE6. Possibly doing a repair on IE will get it > back, but do you really need that control? If not, I'd remove it and > the supporting code. > > Charlotte Foust > > > -----Original Message----- > From: Pedro Janssen [mailto:pedro at plex.nl] > Sent: Friday, December 10, 2004 11:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] missing reference, converting to A2003 > > > Hello Charlotte, > > when unschecking the reference, the code doesn't compile. It gives a > missing reference for the IsLoaded event. > > Anybody an idea what this refence does? > > Pedro Janssen > > > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, December 09, 2004 5:59 PM > Subject: RE: [AccessD] missing reference, converting to A2003 > > > > If you uncheck the reference, does the code compile? Since the > > reference is to an ocx file, you should only need it if you're using > > the activex control in the application, in which case, it would have > > to be installed on your system. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: pedro at plex.nl [mailto:pedro at plex.nl] > > Sent: Thursday, December 09, 2004 4:08 AM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] missing reference, converting to A2003 > > > > > > Hello Group, > > > > when converting a A2k database to A2003 i get an missing reference > > error. Missing is the effect library (MMEFXE.OCX). I searched the > > system for this reference, but i can't find it. Also in the knowledge > > base i can't find any info. Has anybody encountered this problem. > > > > Pedro Janssen > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Fri Dec 10 16:47:26 2004 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Dec 2004 16:47:26 -0600 Subject: [AccessD] SetOption "Default File Format", 0 Message-ID: <000f01c4df0a$391f34f0$de1811d8@danwaters> I'm trying to set the Default File Format to 'Access 2000' in code during startup. The code should be: SetOption "Default File Format", 0 But - I'm getting an error which says: The numeric value for the setting argument in the SetOption method doesn't correspond to any list box or option group settings in the Options dialog box. I set many options on startup, but this is the only one that doesn't seem to work as advertised. Has anyone tried this to set this option in code? Dan Waters ProMation Systems From dejpolsys at hotmail.com Fri Dec 10 18:10:09 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 10 Dec 2004 19:10:09 -0500 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer2000 References: Message-ID: ..have you changed the server OS to Win2003? ...for some reason it seems to insist on packaging the ado 2.1 reference when creating the Access install package from an XP work station ...also true if you have A2003 installed ..its trying to enable backward compatibility with A2K on systems that don't have MDAC 2.7 installed ...hth. William Hindman ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Friday, December 10, 2004 2:14 PM Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer2000 >I am trying to get another computer to burn installations from. When > creating the deployment package I notice that msado21.tlb shows up where > it > never did. > > And then when running a completed CD to test the install I get an error > message stating "Cannot find the Source file 'D:\\charts\\@msado21.tlb' to > Install" > > I have tried to repair Office and Developer (both 2000). The problem > occurs > when I insert the Developer CD. I get a messgae stating that Developer > requires VBA 6.0 and that I must install Office or something else that > contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. > > Any ideas? > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Fri Dec 10 18:22:43 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 10 Dec 2004 19:22:43 -0500 Subject: [AccessD] missing reference, converting to A2003 References: <006701c4def0$dc4e41d0$fbc581d5@pedro> Message-ID: Pedro ..the IsLoaded is normally found in a utility code module or a library mde ..are you sure you picked up any library mdes along with the mdb? William Hindman ----- Original Message ----- From: "Pedro Janssen" To: "Access Developers discussion and problem solving" Sent: Friday, December 10, 2004 2:44 PM Subject: Re: [AccessD] missing reference, converting to A2003 > Hello Charlotte, > > when unschecking the reference, the code doesn't compile. It gives a > missing > reference for the IsLoaded event. > > Anybody an idea what this refence does? > > Pedro Janssen > > > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, December 09, 2004 5:59 PM > Subject: RE: [AccessD] missing reference, converting to A2003 > > >> If you uncheck the reference, does the code compile? Since the >> reference is to an ocx file, you should only need it if you're using the >> activex control in the application, in which case, it would have to be >> installed on your system. >> >> Charlotte Foust >> >> >> -----Original Message----- >> From: pedro at plex.nl [mailto:pedro at plex.nl] >> Sent: Thursday, December 09, 2004 4:08 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] missing reference, converting to A2003 >> >> >> Hello Group, >> >> when converting a A2k database to A2003 i get an missing reference >> error. Missing is the effect library (MMEFXE.OCX). I searched the system >> for this reference, but i can't find it. Also in the knowledge base i >> can't find any info. Has anybody encountered this problem. >> >> Pedro Janssen >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Sat Dec 11 04:15:25 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Dec 2004 11:15:25 +0100 Subject: [AccessD] SetOption "Default File Format", 0 Message-ID: Hi Dan It is not 0 but 9: SetOption "Default File Format", acFileFormatAccess2000 Browse the on-line help for "FileFormat Property" /gustav >>> dwaters at usinternet.com 10-12-2004 23:47:26 >>> I'm trying to set the Default File Format to 'Access 2000' in code during startup. The code should be: SetOption "Default File Format", 0 But - I'm getting an error which says: The numeric value for the setting argument in the SetOption method doesn't correspond to any list box or option group settings in the Options dialog box. I set many options on startup, but this is the only one that doesn't seem to work as advertised. Has anyone tried this to set this option in code? Dan Waters ProMation Systems From Gustav at cactus.dk Sat Dec 11 04:17:19 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Dec 2004 11:17:19 +0100 Subject: [AccessD] OT - VBA Required / Already installed -Office/Developer2000 Message-ID: Hi William Welcome back! /gustav >>> dejpolsys at hotmail.com 11-12-2004 01:10:09 >>> ..have you changed the server OS to Win2003? ...for some reason it seems to insist on packaging the ado 2.1 reference when creating the Access install package from an XP work station ...also true if you have A2003 installed ..its trying to enable backward compatibility with A2K on systems that don't have MDAC 2.7 installed ...hth. William Hindman From dejpolsys at hotmail.com Sat Dec 11 06:06:22 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Sat, 11 Dec 2004 07:06:22 -0500 Subject: [AccessD] OT - VBA Required / Already installed-Office/Developer2000 References: Message-ID: ..just keep the PC mob at bay, eh :)))) William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 11, 2004 5:17 AM Subject: Re: [AccessD] OT - VBA Required / Already installed-Office/Developer2000 > Hi William > > Welcome back! > > /gustav > >>>> dejpolsys at hotmail.com 11-12-2004 01:10:09 >>> > ..have you changed the server OS to Win2003? ...for some reason it > seems to > insist on packaging the ado 2.1 reference when creating the Access > install > package from an XP work station ...also true if you have A2003 > installed > ..its trying to enable backward compatibility with A2K on systems that > > don't have MDAC 2.7 installed ...hth. > > William Hindman > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Sat Dec 11 08:38:50 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 11 Dec 2004 08:38:50 -0600 Subject: [AccessD] SetOption "Default File Format", 0 In-Reply-To: <13328788.1102768551427.JavaMail.root@sniper14.securence.com> Message-ID: <000201c4df8f$21be1800$de1811d8@danwaters> Gustav, Thanks for this help! But I wonder why you say 9 not 0. I looked at help for the SetOption method and this value setting is supposed to correspond to the row number in the combobox (0 - based). Access 2000 is the first choice in that list so I was using a 0. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, December 11, 2004 4:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SetOption "Default File Format", 0 Hi Dan It is not 0 but 9: SetOption "Default File Format", acFileFormatAccess2000 Browse the on-line help for "FileFormat Property" /gustav >>> dwaters at usinternet.com 10-12-2004 23:47:26 >>> I'm trying to set the Default File Format to 'Access 2000' in code during startup. The code should be: SetOption "Default File Format", 0 But - I'm getting an error which says: The numeric value for the setting argument in the SetOption method doesn't correspond to any list box or option group settings in the Options dialog box. I set many options on startup, but this is the only one that doesn't seem to work as advertised. Has anyone tried this to set this option in code? Dan Waters ProMation Systems -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Dec 11 08:52:58 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Dec 2004 15:52:58 +0100 Subject: [AccessD] SetOption "Default File Format", 0 Message-ID: Hi Dan I have no idea. Perhaps they mixed up Value with ListIndex ... /gustav >>> dwaters at usinternet.com 11-12-2004 15:38:50 >>> Gustav, Thanks for this help! But I wonder why you say 9 not 0. I looked at help for the SetOption method and this value setting is supposed to correspond to the row number in the combobox (0 - based). Access 2000 is the first choice in that list so I was using a 0. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, December 11, 2004 4:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SetOption "Default File Format", 0 Hi Dan It is not 0 but 9: SetOption "Default File Format", acFileFormatAccess2000 Browse the on-line help for "FileFormat Property" /gustav >>> dwaters at usinternet.com 10-12-2004 23:47:26 >>> I'm trying to set the Default File Format to 'Access 2000' in code during startup. The code should be: SetOption "Default File Format", 0 But - I'm getting an error which says: The numeric value for the setting argument in the SetOption method doesn't correspond to any list box or option group settings in the Options dialog box. I set many options on startup, but this is the only one that doesn't seem to work as advertised. Has anyone tried this to set this option in code? Dan Waters ProMation Systems -- From carbonnb at sympatico.ca Sat Dec 11 10:39:29 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 11 Dec 2004 11:39:29 -0500 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer 2000 In-Reply-To: Message-ID: <41BADC71.30805.1FC650@localhost> On 10 Dec 2004 at 14:14, Reuben Cummings wrote: > I am trying to get another computer to burn installations from. When > creating the deployment package I notice that msado21.tlb shows up > where it never did. > > And then when running a completed CD to test the install I get an > error message stating "Cannot find the Source file > 'D:\\charts\\@msado21.tlb' to Install" > > I have tried to repair Office and Developer (both 2000). The problem > occurs when I insert the Developer CD. I get a messgae stating that > Developer requires VBA 6.0 and that I must install Office or something > else that contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. Can you post the exact error message. I run into this just about every time I install MOD2K, but I can never remember the fix, and it's an easy fix. Yu have to run a different exe on the MOD CD and not the main installer. I have to search the MSKB all the time for it. But it's not an obvious combination of terms that gets the right KB article. So if you post the full error message, I'll dig up the KB article for you. -- Bryan Carbonnell - carbonnb at sympatico.ca If you're too open-minded, your brains will fall out. From carbonnb at sympatico.ca Sat Dec 11 16:26:44 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 11 Dec 2004 17:26:44 -0500 Subject: [AccessD] OT - VBA Required / Already installed - Office/Developer 2000 In-Reply-To: Message-ID: <41BB2DD4.9179.15DB017@localhost> On 10 Dec 2004 at 14:14, Reuben Cummings wrote: > I have tried to repair Office and Developer (both 2000). The problem > occurs when I insert the Developer CD. I get a messgae stating that > Developer requires VBA 6.0 and that I must install Office or something > else that contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. Ignore my last e-mail. I found the KB article; http://support.microsoft.com/?KBID=322632 Here is the resolution: To resolve the issue, locate the ACMBoot.exe file on the root directory of the Microsoft Office 2000 Developer CD, and then run it. You can install Office 2000 Developer successfully when you start Setup in this manner. -- Bryan Carbonnell - carbonnb at sympatico.ca I don't suffer from stress. I am a carrier. From tdd-inc at shaw.ca Sat Dec 11 19:17:29 2004 From: tdd-inc at shaw.ca (Technical Designs) Date: Sat, 11 Dec 2004 17:17:29 -0800 Subject: [AccessD] Splitting information from One field into Two and dumping the middle Message-ID: <002601c4dfe8$5c56b6d0$7801a8c0@cadcam> Hi Group I have been reading and learning lots from this list. and even coming up with some of the same answers! .. once in a while. This is my first question to the group. I have one field [FullName] with . Name:number or Name:subname:number where there can be more than one recurrence of subnames What I would like to do is split "name" into [splitname] and "number" into [splitnumber] fields of tblTable and loose the middle subnames (if there are any) I have Me.SplitName = Trim(Left(Trim(Me.FullName), InStr(Trim(Me.FullName), ":") - 1)) '. this works fine Me.SplitNumber = Trim(Right(Trim(Me.FullName), Len(Trim(Me.FullName)) - (InStr(Trim(Me.FullName), ":") - 0))) .. SplitNumber works fine if there is only one ":" in the string.. but there might be 2 or more ":" sometimes the Name:subname:number format is from an exported file being imported into MSAccess. The only consistent thing is the ":" Thanks in advance Philip S. From stuart at lexacorp.com.pg Sat Dec 11 19:54:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 12 Dec 2004 11:54:13 +1000 Subject: [AccessD] Splitting information from One field into Two and dumping the middle In-Reply-To: <002601c4dfe8$5c56b6d0$7801a8c0@cadcam> Message-ID: <41BC3165.5558.19CD55F1@lexacorp.com.pg> On 11 Dec 2004 at 17:17, Technical Designs wrote: > I have one field [FullName] with . Name:number > or > Name:subname:number where there can be more than one recurrence > of subnames > > What I would like to do is split "name" into [splitname] and "number" into > [splitnumber] fields of tblTable and loose the middle subnames (if there are > any) > What version of Access. If it's 2K or above you can use the built in Split() Function Split Function Description Returns a zero-based, one-dimensional array containing a specified number of substrings. Syntax Split(expression[, delimiter[, limit[, compare]]]) Try This: Dim strParts() as String ...... strParts = Split(Fullname,":") 'Get First element Me.Splitname = strParts(0) 'Get last element Me.SplitNumber = strParts(UBound(strParts) -- Stuart From andy at minstersystems.co.uk Sun Dec 12 04:13:37 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 12 Dec 2004 10:13:37 -0000 Subject: [AccessD] Splitting information from One field into Two and dumpingthe middle In-Reply-To: <002601c4dfe8$5c56b6d0$7801a8c0@cadcam> Message-ID: <000f01c4e033$3f2e2840$b274d0d5@minster33c3r25> Hi Philip Here's a function which will strip any string which has separators into its individual elements and put them in an array. All you have to do is pass it your string, the name of the array which you must already have dim'd, and then on return you can take the first and last elements of the array. So Dim astrNames() as string Dim intEls as integer Call Parse(inputstring, astrNames, ":",True) then strFirstName=astrNames(1) strLlastname=astrNames(ubound(astrnames)) (add your own processing to cater for empty string, or just one element) -------------the function Function Parse(prmStr as String, prmArr, prmDelim as String, Optional prmTrim) 'Takes a string within which is a list separated by a specified delimiter (eg commas) 'Pass also an initialised string array and the delimiter 'Finally optional parameter to denote whether to trim the results (useful if string is 'comma-separated with spaces after the commas) 'Fills the array with individual elements from the string Dim intX As Integer Dim intPointer As Integer If IsMissing(prmTrim) Then prmTrim = False End If If Nz(prmStr, "") <> "" Then intX = 1 'Loop thru string looking for delimiter Do While InStr(intX, prmStr, prmDelim) > 0 intPointer = intPointer + 1 ReDim Preserve prmArr(intPointer) prmArr(intPointer) = Mid(prmStr, intX, InStr(intX, prmStr, prmDelim) - intX) If prmTrim Then prmArr(intPointer) = Trim(prmArr(intPointer)) End If intX = InStr(intX, prmStr, prmDelim) + 1 Loop 'At end do the last element when no more delimiters If Trim(Mid(prmStr, intX)) <> "" Then 'Not if delimiter at end intPointer = intPointer + 1 ReDim Preserve prmArr(intPointer) prmArr(intPointer) = Mid(prmStr, intX) If prmTrim Then prmArr(intPointer) = Trim(prmArr(intPointer)) End If End If End If End Function HTH -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Technical Designs > Sent: 12 December 2004 01:17 > To: accessd at databaseadvisors.com > Subject: [AccessD] Splitting information from One field into > Two and dumpingthe middle > > > Hi Group > > > > I have been reading and learning lots from this list. and > even coming up with some of the same answers! .. once in a while. > > This is my first question to the group. > > > > I have one field [FullName] with . Name:number > or > > > Name:subname:number where there can be more than > one recurrence > of subnames > > > > What I would like to do is split "name" into [splitname] and > "number" into [splitnumber] fields of tblTable and loose the > middle subnames (if there are > any) > > > > I have > > Me.SplitName = Trim(Left(Trim(Me.FullName), > InStr(Trim(Me.FullName), ":") - 1)) '. this works fine > > > > Me.SplitNumber = Trim(Right(Trim(Me.FullName), > Len(Trim(Me.FullName)) - (InStr(Trim(Me.FullName), ":") - 0))) > > > > .. SplitNumber works fine if there is only one ":" in the > string.. but there might be 2 or more ":" sometimes > > > > the Name:subname:number format is from an exported file being > imported into MSAccess. The only consistent thing is the ":" > > > > Thanks in advance > > > > Philip S. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Sun Dec 12 13:52:02 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 12 Dec 2004 20:52:02 +0100 Subject: [AccessD] missing reference, converting to A2003 References: <006701c4def0$dc4e41d0$fbc581d5@pedro> Message-ID: <002301c4e084$0e01f250$fbc581d5@pedro> Hello William, i am not sure what you mean by: "picked up any library mdes along with the mdb" How can i do this? Pedro ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Saturday, December 11, 2004 1:22 AM Subject: Re: [AccessD] missing reference, converting to A2003 > Pedro > > ..the IsLoaded is normally found in a utility code module or a library mde > ..are you sure you picked up any library mdes along with the mdb? > > William Hindman > > > ----- Original Message ----- > From: "Pedro Janssen" > To: "Access Developers discussion and problem solving" > > Sent: Friday, December 10, 2004 2:44 PM > Subject: Re: [AccessD] missing reference, converting to A2003 > > > > Hello Charlotte, > > > > when unschecking the reference, the code doesn't compile. It gives a > > missing > > reference for the IsLoaded event. > > > > Anybody an idea what this refence does? > > > > Pedro Janssen > > > > > > > > ----- Original Message ----- > > From: "Charlotte Foust" > > To: "Access Developers discussion and problem solving" > > > > Sent: Thursday, December 09, 2004 5:59 PM > > Subject: RE: [AccessD] missing reference, converting to A2003 > > > > > >> If you uncheck the reference, does the code compile? Since the > >> reference is to an ocx file, you should only need it if you're using the > >> activex control in the application, in which case, it would have to be > >> installed on your system. > >> > >> Charlotte Foust > >> > >> > >> -----Original Message----- > >> From: pedro at plex.nl [mailto:pedro at plex.nl] > >> Sent: Thursday, December 09, 2004 4:08 AM > >> To: accessd at databaseadvisors.com > >> Subject: [AccessD] missing reference, converting to A2003 > >> > >> > >> Hello Group, > >> > >> when converting a A2k database to A2003 i get an missing reference > >> error. Missing is the effect library (MMEFXE.OCX). I searched the system > >> for this reference, but i can't find it. Also in the knowledge base i > >> can't find any info. Has anybody encountered this problem. > >> > >> Pedro Janssen > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Sun Dec 12 13:56:15 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 12 Dec 2004 20:56:15 +0100 Subject: [AccessD] backup database Message-ID: <002e01c4e084$a44bea40$fbc581d5@pedro> Hello Group, is there a way to backup the backend as a tekstfile in columns or as excel file, with one click of a button. I don't want to open each table and save them by hand to a different folder as the default folder where the database is in. Pedro Janssen From dwaters at usinternet.com Sun Dec 12 15:27:02 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 12 Dec 2004 15:27:02 -0600 Subject: [AccessD] Library Database? Message-ID: <000001c4e091$529a9a40$de1811d8@danwaters> I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters From dwaters at usinternet.com Sun Dec 12 15:47:15 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 12 Dec 2004 15:47:15 -0600 Subject: [AccessD] Library Database? - Never Mind In-Reply-To: <4189112.1102886919247.JavaMail.root@sniper21.securence.com> Message-ID: <000501c4e094$252fd590$de1811d8@danwaters> It might help to set a reference to DAO 3.6 first. The Vikings just lost and now I can't focus! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 3:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Dec 12 15:56:05 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 12 Dec 2004 13:56:05 -0800 Subject: [AccessD] Library Database? In-Reply-To: <000001c4e091$529a9a40$de1811d8@danwaters> Message-ID: Hi Dan: Not the way you trying to do it. You can create a new MDB/MDE, with a module and in that module, a group of public variables, function and subroutines. This will be your library. The MDB/MDE database will have to be attached to your caller/main MDB before the functionality can be accessed. (file/get external data/link...) Just like classes only public object, in the module can be accessed externally. Note; that none of the modules objects can be accessed until the module is formally called (Example: if your library module is initially called from a Form open event, you will receive an error but the Form's load event works fine.) and from then on all the functions /subroutines /variables will be exposed because the whole module is then automatically loaded into memory. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 1:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Sun Dec 12 15:48:03 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Sun, 12 Dec 2004 16:48:03 -0500 Subject: [AccessD] missing reference, converting to A2003 References: <006701c4def0$dc4e41d0$fbc581d5@pedro> <002301c4e084$0e01f250$fbc581d5@pedro> Message-ID: Pedro ..some developers put common code functions in a separate mdb or mde and use it as a standard "library" for their applications ...if it is not present when calls are made to a referenced function included in it, you probably won't be able to compile the application ...when I'm given a another developer's mdb to modify one of the first things I do is check for a missing library file which usually shows up as a bad reference ...hth :) William Hindman ----- Original Message ----- From: "Pedro Janssen" To: "Access Developers discussion and problem solving" Sent: Sunday, December 12, 2004 2:52 PM Subject: Re: [AccessD] missing reference, converting to A2003 > Hello William, > > i am not sure what you mean by: "picked up any library mdes along with the > mdb" > How can i do this? > > Pedro > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, December 11, 2004 1:22 AM > Subject: Re: [AccessD] missing reference, converting to A2003 > > >> Pedro >> >> ..the IsLoaded is normally found in a utility code module or a library >> mde >> ..are you sure you picked up any library mdes along with the mdb? >> >> William Hindman >> >> >> ----- Original Message ----- >> From: "Pedro Janssen" >> To: "Access Developers discussion and problem solving" >> >> Sent: Friday, December 10, 2004 2:44 PM >> Subject: Re: [AccessD] missing reference, converting to A2003 >> >> >> > Hello Charlotte, >> > >> > when unschecking the reference, the code doesn't compile. It gives a >> > missing >> > reference for the IsLoaded event. >> > >> > Anybody an idea what this refence does? >> > >> > Pedro Janssen >> > >> > >> > >> > ----- Original Message ----- >> > From: "Charlotte Foust" >> > To: "Access Developers discussion and problem solving" >> > >> > Sent: Thursday, December 09, 2004 5:59 PM >> > Subject: RE: [AccessD] missing reference, converting to A2003 >> > >> > >> >> If you uncheck the reference, does the code compile? Since the >> >> reference is to an ocx file, you should only need it if you're using > the >> >> activex control in the application, in which case, it would have to be >> >> installed on your system. >> >> >> >> Charlotte Foust >> >> >> >> >> >> -----Original Message----- >> >> From: pedro at plex.nl [mailto:pedro at plex.nl] >> >> Sent: Thursday, December 09, 2004 4:08 AM >> >> To: accessd at databaseadvisors.com >> >> Subject: [AccessD] missing reference, converting to A2003 >> >> >> >> >> >> Hello Group, >> >> >> >> when converting a A2k database to A2003 i get an missing reference >> >> error. Missing is the effect library (MMEFXE.OCX). I searched the > system >> >> for this reference, but i can't find it. Also in the knowledge base i >> >> can't find any info. Has anybody encountered this problem. >> >> >> >> Pedro Janssen >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> > >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Sun Dec 12 17:03:06 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 12 Dec 2004 17:03:06 -0600 Subject: [AccessD] Library Database? .mda or .mdb as referenced library - pros or cons? In-Reply-To: <6270526.1102888553962.JavaMail.root@sniper21.securence.com> Message-ID: <000601c4e09e$be16db00$de1811d8@danwaters> Jim, After setting a reference to DAO 3.6, and resolving circularity among function and procedure calls, everything seemed to work correctly. I did set a reference to the Library mda. It appears that doing this allows the code in the library database to work exactly as if the code existed in the FE mdb. I did not get an initial error the first time the library code was used. I also tried changing the mda to an mdb. Everything still worked just as before. So now I'm wondering what the difference is between an mda and an mdb? Any pros/cons to one or the other when using as a library database? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Sunday, December 12, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Library Database? Hi Dan: Not the way you trying to do it. You can create a new MDB/MDE, with a module and in that module, a group of public variables, function and subroutines. This will be your library. The MDB/MDE database will have to be attached to your caller/main MDB before the functionality can be accessed. (file/get external data/link...) Just like classes only public object, in the module can be accessed externally. Note; that none of the modules objects can be accessed until the module is formally called (Example: if your library module is initially called from a Form open event, you will receive an error but the Form's load event works fine.) and from then on all the functions /subroutines /variables will be exposed because the whole module is then automatically loaded into memory. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 1:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Sun Dec 12 21:36:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 13 Dec 2004 14:36:31 +1100 Subject: [AccessD] A2003: FTP and Network Connection Gurus In-Reply-To: Message-ID: <200412130336.iBD3acRl024122@cooper.uws.edu.au> Hi William Many many thanks works like a charm Stuart and Gustav - my most sincere thanks for trying to get a luddite through this I really appreciate your patience and your efforts Have a great day Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, 10 December 2004 10:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus Darren ..sent you off line a working mdb that imports a file from another mdb and then ftps it to a server on a schedule ...hth :) William Hindman ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 09, 2004 10:28 PM Subject: RE: [AccessD] A2003: FTP and Network Connection Gurus > Hi Gustav > Do you have a working example? > > After 5 hours - yes 5 hours - I give up > > DD > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Thursday, 9 December 2004 8:14 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus > > Hi Darren > > If you prefer a little more than a DOS box for the user to view, go and > pick > Windows Command Line FTP and the Access module to drive it: > > http://www.pacific.net/~ken/software/ > > /gustav > >>>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> > On 9 Dec 2004 at 9:14, Darren DICK wrote: > >> Hi All >> I need to add an FTP upload screen to one of my APPS >> >> Firstly - lemme say I know nothing about such things The client's >> Network dude gave me... >> A Server Name >> A UserName >> And a Password >> >> So...I opened up an FTP client and successfully transferred the back >> end of the app (About 4meg) to the FTP location he supplied with the >> credentials he supplied - Phew so far so good :-)) >> >> Anyone got any code or forms or URL's they'd like to share so I can >> incorporate something like an FTP scheduler in my app, to run > nightly? >> > > You can do it by very easily by scripting a FTP session and scheduling it > using built in Windows capabilities (Look up FTP commands in WIndows > Help): > > Create a text file (c:\ftpstuff\myscript) containing the following, > substituting the appropriate info. Make sure that there are no trailing > > spaces on the lines: > > open ftp.myftpserver.com.au > myusername > mypassword > send c:\ftpstuff\myfile.mdb > disconnect > quit > > Note: This should work, depending on the FTP Server he is using. Some > > require a line like "USER myusername mypassword" in place of the two lines > with above. > > Then schedule a one line batch file containing the command: > > ftp -s:c:\ftpstuff\myscript > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Dec 12 23:11:52 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 13 Dec 2004 00:11:52 -0500 Subject: [AccessD] 2 MySql posers In-Reply-To: References: Message-ID: <41BD2498.4030504@rogers.com> There may be a dozen ways, but one obvious one is to run this statement:: SHOW CREATE TABLE mytable; and either pipe the result to a text file or just copy the result and paste it into a text editor. Then edit said file and run the SQL, creating myNewTable with the PK of your choice. Finally: INSERT INTO myNewTable SELECT * FROM mytable You probably wouldn't want to use * but you get the idea. HTH, Arthur Paul Rodgers wrote: >Is there a simple way to rename a Primary Key column in MySql, please? None >is listed in my tutorials. > >One way might be to delete the column and add a replacement. But once >records are introduced, it seems, I can't replace a Primary Key column. Be >grateful for guidance from one of our gurus please. > >Is there a simple way to back-up a table in MySql? I keep getting caught out >by forgetting WHERE and messing up masses of rows. > >Cheers > >paul > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004 From artful at rogers.com Sun Dec 12 23:32:04 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 13 Dec 2004 00:32:04 -0500 Subject: [AccessD] Design question In-Reply-To: References: Message-ID: <41BD2954.4010106@rogers.com> I would guess that it depends on how important such appellations are to the app. What is the cost of getting one wrong? The upside to using an FK table is the ability to add as many titles as you could ever want. The downside, which you identified, is the verbosity of the SQL -- which can be obviated in several ways, such as writing a function to simplify construction of the name (like Title & " " & FirstName & etc.), then using that function in all your queries. What will it gain you to lose the FK table and just allow the users to enter anything they wish? One less join, obviously. But how many times can one spell "Mr." incorrectly? Mind you, I once read a data-cleansing study that said the users of an app in Framingham managed to spell Boston 19 different ways. That boggles the mind! But allegedly it's true. Don't feel bad for programming 20 years and asking this question. I ask it every time I do an app. What is really to be gained by separating the given name from the last name? In certain apps it's important. In most apps I venture to say that it is unimportant, but most of us do it by knee-jerk reaction. If the only issue is sorting, then one can easily establish the convention that you enter the name "Fuller, Arthur" and on those few occasions when you need the given name alone, call a function that extracts the rightmost word from the name. (Yeah yeah, I know that won't always work, so let's not bother going there.) Similar issue with company names whose first word is "The". I almost always shift the "The" to the end, as in "Bank of America, The"... for sensible sorting. Arthur Griffiths, Richard wrote: >Hi Group > > > >Design issue - how to store the title for a person record > > > >Option 1 > > > >tblPerson > >------------- > >titleID > >firstname > >lastname > > > > > >Option 2 > > > >tblPerson > >------------- > >title (contains actual value from tblTitle e.g Mr,Miss, Mrs, Ms.,Dr., >Prof.) > >firstname > >lastname > > > >Issues > >For option 1 - every time we need person details will require a join on >the table (makes sql verbose etc) - > >For option 2 - how to handle tblTitle changes - could use ref. integrity >or even simpler.....only allow user to add new titles and not amend >(can't see any reason to amend > >anyway - amend 'Mr' to what??) > > > >Anyone care to comment (can't believe I've 20 years programming exp. and >am asking this type of question - must be my age (just hit 40 )) > > > >Thanks > > > >Richard Griffiths > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004 From accessd at shaw.ca Mon Dec 13 01:22:16 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 12 Dec 2004 23:22:16 -0800 Subject: [AccessD] Design question In-Reply-To: <41BD2954.4010106@rogers.com> Message-ID: Hi Arthur > But how many times can one spell "Mr." incorrectly? Mind you, I once read a data-cleansing > study that said the users of an app in Framingham managed to spell Boston 19 different ways. > That boggles the mind! But allegedly it's true. Just finished working on a database with schools...there must be a dozen ways to spell 'Saint' like in 'Saint Luke's' correctly and many more on how to spell it incorrectly or with subtle variations. Saint, Ste. Siant, St. Sant. Sant, St, Sainte, Sante, etc.... Cleaning up database can be as time-consuming as writing the original application. Observation Jim From Paul.Rogers at SummitMedia.co.uk Mon Dec 13 02:37:33 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Mon, 13 Dec 2004 08:37:33 -0000 Subject: [AccessD] 2 MySql posers Message-ID: Thanks very much, Arthur. Much obliged. Cheers paul -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: 13 December 2004 05:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 MySql posers There may be a dozen ways, but one obvious one is to run this statement:: SHOW CREATE TABLE mytable; and either pipe the result to a text file or just copy the result and paste it into a text editor. Then edit said file and run the SQL, creating myNewTable with the PK of your choice. Finally: INSERT INTO myNewTable SELECT * FROM mytable You probably wouldn't want to use * but you get the idea. HTH, Arthur Paul Rodgers wrote: >Is there a simple way to rename a Primary Key column in MySql, please? None >is listed in my tutorials. > >One way might be to delete the column and add a replacement. But once >records are introduced, it seems, I can't replace a Primary Key column. Be >grateful for guidance from one of our gurus please. > >Is there a simple way to back-up a table in MySql? I keep getting caught out >by forgetting WHERE and messing up masses of rows. > >Cheers > >paul > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 12/9/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Mon Dec 13 03:52:09 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Mon, 13 Dec 2004 09:52:09 -0000 Subject: [AccessD] Design question Message-ID: Thanks for all the replies (I only expected one or two) and varied suggestions. I am going to opt for a lookup list (to ensure 'clean' data-entry via a drop down combo) but store the actual value (e.g. Mr) in the 'person' table to overcome the verbose SQL etc. Cheers Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: 13 December 2004 07:22 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Design question Hi Arthur > But how many times can one spell "Mr." incorrectly? Mind you, I once read a data-cleansing > study that said the users of an app in Framingham managed to spell Boston 19 different ways. > That boggles the mind! But allegedly it's true. Just finished working on a database with schools...there must be a dozen ways to spell 'Saint' like in 'Saint Luke's' correctly and many more on how to spell it incorrectly or with subtle variations. Saint, Ste. Siant, St. Sant. Sant, St, Sainte, Sante, etc.... Cleaning up database can be as time-consuming as writing the original application. Observation Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Dec 13 05:42:51 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 13 Dec 2004 12:42:51 +0100 Subject: [AccessD] backup database Message-ID: Hi Pedro Yes there is. Look up in the archive "SaveAsText, LoadFromText" from 2004-07-25 and -27. /gustav >>> pedro at plex.nl 12-12-2004 20:56:15 >>> Hello Group, is there a way to backup the backend as a tekstfile in columns or as excel file, with one click of a button. I don't want to open each table and save them by hand to a different folder as the default folder where the database is in. Pedro Janssen -- From dejpolsys at hotmail.com Mon Dec 13 06:38:29 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 13 Dec 2004 07:38:29 -0500 Subject: [AccessD] A2003: FTP and Network Connection Gurus References: <200412130336.iBD3acRl024122@cooper.uws.edu.au> Message-ID: ..de nada ...glad you could make it work for you ...old hands here on AccessD helped me piece it together a few years back when it was my neck on the line, so I'm just passing the wealth along :) William Hindman ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Sunday, December 12, 2004 10:36 PM Subject: RE: [AccessD] A2003: FTP and Network Connection Gurus > Hi William > > Many many thanks works like a charm > > Stuart and Gustav - my most sincere thanks for trying to get a luddite > through this > > I really appreciate your patience and your efforts > > Have a great day > > Darren > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, 10 December 2004 10:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus > > Darren > > ..sent you off line a working mdb that imports a file from another mdb and > then ftps it to a server on a schedule ...hth :) > > William Hindman > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, December 09, 2004 10:28 PM > Subject: RE: [AccessD] A2003: FTP and Network Connection Gurus > > >> Hi Gustav >> Do you have a working example? >> >> After 5 hours - yes 5 hours - I give up >> >> DD >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Thursday, 9 December 2004 8:14 PM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] A2003: FTP and Network Connection Gurus >> >> Hi Darren >> >> If you prefer a little more than a DOS box for the user to view, go and >> pick >> Windows Command Line FTP and the Access module to drive it: >> >> http://www.pacific.net/~ken/software/ >> >> /gustav >> >>>>> stuart at lexacorp.com.pg 09-12-2004 03:25:12 >>> >> On 9 Dec 2004 at 9:14, Darren DICK wrote: >> >>> Hi All >>> I need to add an FTP upload screen to one of my APPS >>> >>> Firstly - lemme say I know nothing about such things The client's >>> Network dude gave me... >>> A Server Name >>> A UserName >>> And a Password >>> >>> So...I opened up an FTP client and successfully transferred the back >>> end of the app (About 4meg) to the FTP location he supplied with the >>> credentials he supplied - Phew so far so good :-)) >>> >>> Anyone got any code or forms or URL's they'd like to share so I can >>> incorporate something like an FTP scheduler in my app, to run >> nightly? >>> >> >> You can do it by very easily by scripting a FTP session and scheduling it >> using built in Windows capabilities (Look up FTP commands in WIndows >> Help): >> >> Create a text file (c:\ftpstuff\myscript) containing the following, >> substituting the appropriate info. Make sure that there are no trailing >> >> spaces on the lines: >> >> open ftp.myftpserver.com.au >> myusername >> mypassword >> send c:\ftpstuff\myfile.mdb >> disconnect >> quit >> >> Note: This should work, depending on the FTP Server he is using. Some >> >> require a line like "USER myusername mypassword" in place of the two >> lines >> with above. >> >> Then schedule a one line batch file containing the command: >> >> ftp -s:c:\ftpstuff\myscript >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jeff at OUTBAKTech.com Mon Dec 13 08:44:43 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Mon, 13 Dec 2004 08:44:43 -0600 Subject: [AccessD] Referencing a subform on a tab control Message-ID: <8DA8776D2F418E46A2A464AC6CE630500326E7@outbaksrv1.outbaktech.com> Morning all!! I have a situation where I need to refresh or requery the data on a subform located on in a tab control. I am adding a new record using a popup form and when I close the popup, I need to display the data in the subform with the new record. I know that I have done this (or something like this) before, but it is Monday morning and my brain is not fully engaged yet. TIA Jeff B From dwaters at usinternet.com Mon Dec 13 09:06:28 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 13 Dec 2004 09:06:28 -0600 Subject: [AccessD] Referencing a subform on a tab control In-Reply-To: <17244185.1102949256198.JavaMail.root@sniper13.securence.com> Message-ID: <000801c4e125$526a3c30$de1811d8@danwaters> Jeff - Only because I got up early! Public sub RequerySubForm() Me.[subFormControlName].Form.Requery End sub You can put this procedure into your main form and call it when your popup form closes. The phrase [subFormControlName] represents the name of the subform/subreport control, not the name of the subform itself. After you type 'Me.' intellisense will give you the name of the subform/subreport control. HTH Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Monday, December 13, 2004 8:45 AM To: AccessD Subject: [AccessD] Referencing a subform on a tab control Morning all!! I have a situation where I need to refresh or requery the data on a subform located on in a tab control. I am adding a new record using a popup form and when I close the popup, I need to display the data in the subform with the new record. I know that I have done this (or something like this) before, but it is Monday morning and my brain is not fully engaged yet. TIA Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Mon Dec 13 09:15:19 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Mon, 13 Dec 2004 10:15:19 -0500 Subject: [AccessD] Referencing a subform on a tab control Message-ID: Wild Wild Wild guess...best of luck;) [Forms]![frmMainForm]![sfrm1stSubForm]![ssfrm2ndSubForm].Requery Mark -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Monday, December 13, 2004 9:45 AM To: AccessD Subject: [AccessD] Referencing a subform on a tab control Morning all!! I have a situation where I need to refresh or requery the data on a subform located on in a tab control. I am adding a new record using a popup form and when I close the popup, I need to display the data in the subform with the new record. I know that I have done this (or something like this) before, but it is Monday morning and my brain is not fully engaged yet. TIA Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 13 10:01:34 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Dec 2004 08:01:34 -0800 Subject: [AccessD] Library Database? .mda or .mdb as referenced library -pros or cons? Message-ID: MDA normally designates an add-in library. To function as an add-in, there is a specific table required. To function as a library, not. We compile several mdbs into mdes and reference them as libraries, including the one with all our Redemption code in it. Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, December 12, 2004 3:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library -pros or cons? Jim, After setting a reference to DAO 3.6, and resolving circularity among function and procedure calls, everything seemed to work correctly. I did set a reference to the Library mda. It appears that doing this allows the code in the library database to work exactly as if the code existed in the FE mdb. I did not get an initial error the first time the library code was used. I also tried changing the mda to an mdb. Everything still worked just as before. So now I'm wondering what the difference is between an mda and an mdb? Any pros/cons to one or the other when using as a library database? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Sunday, December 12, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Library Database? Hi Dan: Not the way you trying to do it. You can create a new MDB/MDE, with a module and in that module, a group of public variables, function and subroutines. This will be your library. The MDB/MDE database will have to be attached to your caller/main MDB before the functionality can be accessed. (file/get external data/link...) Just like classes only public object, in the module can be accessed externally. Note; that none of the modules objects can be accessed until the module is formally called (Example: if your library module is initially called from a Form open event, you will receive an error but the Form's load event works fine.) and from then on all the functions /subroutines /variables will be exposed because the whole module is then automatically loaded into memory. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 1:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tdd-inc at shaw.ca Mon Dec 13 10:26:43 2004 From: tdd-inc at shaw.ca (Technical Designs) Date: Mon, 13 Dec 2004 08:26:43 -0800 Subject: [AccessD] Splitting information from One field into Two anddumpingthe middle In-Reply-To: <000f01c4e033$3f2e2840$b274d0d5@minster33c3r25> Message-ID: <006301c4e130$8b69e7f0$7801a8c0@cadcam> Thanks Stuart and Andy Lacey for the answer! They both work great... Philip :) -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Sunday, December 12, 2004 2:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Splitting information from One field into Two anddumpingthe middle Hi Philip Here's a function which will strip any string which has separators into its individual elements and put them in an array. All you have to do is pass it your string, the name of the array which you must already have dim'd, and then on return you can take the first and last elements of the array. So Dim astrNames() as string Dim intEls as integer Call Parse(inputstring, astrNames, ":",True) then strFirstName=astrNames(1) strLlastname=astrNames(ubound(astrnames)) (add your own processing to cater for empty string, or just one element) -------------the function Function Parse(prmStr as String, prmArr, prmDelim as String, Optional prmTrim) 'Takes a string within which is a list separated by a specified delimiter (eg commas) 'Pass also an initialised string array and the delimiter 'Finally optional parameter to denote whether to trim the results (useful if string is 'comma-separated with spaces after the commas) 'Fills the array with individual elements from the string Dim intX As Integer Dim intPointer As Integer If IsMissing(prmTrim) Then prmTrim = False End If If Nz(prmStr, "") <> "" Then intX = 1 'Loop thru string looking for delimiter Do While InStr(intX, prmStr, prmDelim) > 0 intPointer = intPointer + 1 ReDim Preserve prmArr(intPointer) prmArr(intPointer) = Mid(prmStr, intX, InStr(intX, prmStr, prmDelim) - intX) If prmTrim Then prmArr(intPointer) = Trim(prmArr(intPointer)) End If intX = InStr(intX, prmStr, prmDelim) + 1 Loop 'At end do the last element when no more delimiters If Trim(Mid(prmStr, intX)) <> "" Then 'Not if delimiter at end intPointer = intPointer + 1 ReDim Preserve prmArr(intPointer) prmArr(intPointer) = Mid(prmStr, intX) If prmTrim Then prmArr(intPointer) = Trim(prmArr(intPointer)) End If End If End If End Function HTH -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Technical Designs > Sent: 12 December 2004 01:17 > To: accessd at databaseadvisors.com > Subject: [AccessD] Splitting information from One field into > Two and dumpingthe middle > > > Hi Group > > > > I have been reading and learning lots from this list. and > even coming up with some of the same answers! .. once in a while. > > This is my first question to the group. > > > > I have one field [FullName] with . Name:number > or > > > Name:subname:number where there can be more than > one recurrence > of subnames > > > > What I would like to do is split "name" into [splitname] and > "number" into [splitnumber] fields of tblTable and loose the > middle subnames (if there are > any) > > > > I have > > Me.SplitName = Trim(Left(Trim(Me.FullName), > InStr(Trim(Me.FullName), ":") - 1)) '. this works fine > > > > Me.SplitNumber = Trim(Right(Trim(Me.FullName), > Len(Trim(Me.FullName)) - (InStr(Trim(Me.FullName), ":") - 0))) > > > > .. SplitNumber works fine if there is only one ":" in the > string.. but there might be 2 or more ":" sometimes > > > > the Name:subname:number format is from an exported file being > imported into MSAccess. The only consistent thing is the ":" > > > > Thanks in advance > > > > Philip S. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From dwaters at usinternet.com Mon Dec 13 10:35:00 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 13 Dec 2004 10:35:00 -0600 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? In-Reply-To: <23524880.1102953835316.JavaMail.root@sniper22.securence.com> Message-ID: <001001c4e131$b0f0e180$de1811d8@danwaters> Thanks Charlotte! I don't need an add-in, just a library, so I'll just use an mdb or mde. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 13, 2004 10:02 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? MDA normally designates an add-in library. To function as an add-in, there is a specific table required. To function as a library, not. We compile several mdbs into mdes and reference them as libraries, including the one with all our Redemption code in it. Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, December 12, 2004 3:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library -pros or cons? Jim, After setting a reference to DAO 3.6, and resolving circularity among function and procedure calls, everything seemed to work correctly. I did set a reference to the Library mda. It appears that doing this allows the code in the library database to work exactly as if the code existed in the FE mdb. I did not get an initial error the first time the library code was used. I also tried changing the mda to an mdb. Everything still worked just as before. So now I'm wondering what the difference is between an mda and an mdb? Any pros/cons to one or the other when using as a library database? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Sunday, December 12, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Library Database? Hi Dan: Not the way you trying to do it. You can create a new MDB/MDE, with a module and in that module, a group of public variables, function and subroutines. This will be your library. The MDB/MDE database will have to be attached to your caller/main MDB before the functionality can be accessed. (file/get external data/link...) Just like classes only public object, in the module can be accessed externally. Note; that none of the modules objects can be accessed until the module is formally called (Example: if your library module is initially called from a Form open event, you will receive an error but the Form's load event works fine.) and from then on all the functions /subroutines /variables will be exposed because the whole module is then automatically loaded into memory. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Sunday, December 12, 2004 1:27 PM To: Database Advisors Subject: [AccessD] Library Database? I would like to create a separate file (library?) to contain many procedures and functions which are used by all my customers. However, most of these either read or write information to the BE using recordsets. I tried to set up a library database (.mda), but this errored out when I tried to dim a recordset variable. The .mda file appears to not recognized the DAO prefix. dim rst as DAO.Recordset Is there a way to create a database file to contain procedures and functions, called from the FE mdb, that can be used read/write to tables in the BE mdb? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Mon Dec 13 10:48:49 2004 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 13 Dec 2004 11:48:49 -0500 Subject: [AccessD] SQL Server compact and repair - Equivalent to Access Message-ID: How can I perform a compact and repair in SQL Server? The same type of compact and repair that exists in Access? Can it be scheduled to run once per week? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 108 Franklin Street Watertown, NY 13601 (315) 785-0319 www.pro-soft.net From jwcolby at colbyconsulting.com Mon Dec 13 10:52:00 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 13 Dec 2004 11:52:00 -0500 Subject: [AccessD] Referencing a subform on a tab control In-Reply-To: Message-ID: <002301c4e134$10c68090$e8dafea9@ColbyM6805> Jeff, It turns out that the form's control collection contains a pointer to the subform so you don't need the tab in there. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Monday, December 13, 2004 10:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Referencing a subform on a tab control Wild Wild Wild guess...best of luck;) [Forms]![frmMainForm]![sfrm1stSubForm]![ssfrm2ndSubForm].Requery Mark -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Monday, December 13, 2004 9:45 AM To: AccessD Subject: [AccessD] Referencing a subform on a tab control Morning all!! I have a situation where I need to refresh or requery the data on a subform located on in a tab control. I am adding a new record using a popup form and when I close the popup, I need to display the data in the subform with the new record. I know that I have done this (or something like this) before, but it is Monday morning and my brain is not fully engaged yet. TIA Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Dec 13 14:37:32 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 13 Dec 2004 15:37:32 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2967@xlivmbx21.aig.com> Just a little heads-up regarding using 'library' files. If you make a change to the library (such as you add a new handy dandy routine to it, or make some alteration to an existing routine) then any and all the applications which are using the library will need to be recompiled. Otherwise you will get a Dr. Watson error when you try to run an application that has a reference to the (now changed) library. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2004 11:35 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Thanks Charlotte! > > I don't need an add-in, just a library, so I'll just use an mdb or mde. > > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, December 13, 2004 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > MDA normally designates an add-in library. To function as an add-in, > there is a specific table required. To function as a library, not. We > compile several mdbs into mdes and reference them as libraries, > including the one with all our Redemption code in it. > > Charlotte Foust > > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Sunday, December 12, 2004 3:03 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library -pros or cons? > > > Jim, > > After setting a reference to DAO 3.6, and resolving circularity among > function and procedure calls, everything seemed to work correctly. > > I did set a reference to the Library mda. It appears that doing this > allows the code in the library database to work exactly as if the code > existed in the FE mdb. I did not get an initial error the first time > the library code was used. > > I also tried changing the mda to an mdb. Everything still worked just > as before. So now I'm wondering what the difference is between an mda > and an mdb? Any pros/cons to one or the other when using as a library > database? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > (AccessD) > Sent: Sunday, December 12, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? > > Hi Dan: > > Not the way you trying to do it. You can create a new MDB/MDE, with a > module and in that module, a group of public variables, function and > subroutines. This will be your library. The MDB/MDE database will have > to be attached to your caller/main MDB before the functionality can be > accessed. (file/get external data/link...) Just like classes only public > object, in the module can be accessed externally. Note; that none of the > modules objects can be accessed until the module is formally called > (Example: if your library module is initially called from a Form open > event, you will receive an error but the Form's load event works fine.) > and from then on all the functions /subroutines /variables will be > exposed because the whole module is then automatically loaded into > memory. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Sunday, December 12, 2004 1:27 PM > To: Database Advisors > Subject: [AccessD] Library Database? > > > I would like to create a separate file (library?) to contain many > procedures and functions which are used by all my customers. > > > > However, most of these either read or write information to the BE using > recordsets. I tried to set up a library database (.mda), but this > errored out when I tried to dim a recordset variable. The .mda file > appears to not recognized the DAO prefix. > > > > dim rst as DAO.Recordset > > > > Is there a way to create a database file to contain procedures and > functions, called from the FE mdb, that can be used read/write to tables > in the BE mdb? > > > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 13 14:55:02 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Dec 2004 12:55:02 -0800 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Message-ID: Yes, you would only put stable code in a library. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, December 13, 2004 12:38 PM To: 'Access Developers discussion and problem solving'; 'Dan Waters' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Just a little heads-up regarding using 'library' files. If you make a change to the library (such as you add a new handy dandy routine to it, or make some alteration to an existing routine) then any and all the applications which are using the library will need to be recompiled. Otherwise you will get a Dr. Watson error when you try to run an application that has a reference to the (now changed) library. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2004 11:35 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Thanks Charlotte! > > I don't need an add-in, just a library, so I'll just use an mdb or > mde. > > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, December 13, 2004 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > MDA normally designates an add-in library. To function as an add-in, > there is a specific table required. To function as a library, not. > We compile several mdbs into mdes and reference them as libraries, > including the one with all our Redemption code in it. > > Charlotte Foust > > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Sunday, December 12, 2004 3:03 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library -pros or cons? > > > Jim, > > After setting a reference to DAO 3.6, and resolving circularity among > function and procedure calls, everything seemed to work correctly. > > I did set a reference to the Library mda. It appears that doing this > allows the code in the library database to work exactly as if the code > existed in the FE mdb. I did not get an initial error the first time > the library code was used. > > I also tried changing the mda to an mdb. Everything still worked just > as before. So now I'm wondering what the difference is between an mda > and an mdb? Any pros/cons to one or the other when using as a library > database? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > (AccessD) > Sent: Sunday, December 12, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? > > Hi Dan: > > Not the way you trying to do it. You can create a new MDB/MDE, with a > module and in that module, a group of public variables, function and > subroutines. This will be your library. The MDB/MDE database will have > to be attached to your caller/main MDB before the functionality can be > accessed. (file/get external data/link...) Just like classes only > public object, in the module can be accessed externally. Note; that > none of the modules objects can be accessed until the module is > formally called > (Example: if your library module is initially called from a Form open > event, you will receive an error but the Form's load event works fine.) > and from then on all the functions /subroutines /variables will be > exposed because the whole module is then automatically loaded into > memory. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Sunday, December 12, 2004 1:27 PM > To: Database Advisors > Subject: [AccessD] Library Database? > > > I would like to create a separate file (library?) to contain many > procedures and functions which are used by all my customers. > > > > However, most of these either read or write information to the BE > using recordsets. I tried to set up a library database (.mda), but > this errored out when I tried to dim a recordset variable. The .mda > file appears to not recognized the DAO prefix. > > > > dim rst as DAO.Recordset > > > > Is there a way to create a database file to contain procedures and > functions, called from the FE mdb, that can be used read/write to > tables in the BE mdb? > > > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Dec 13 15:06:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 13 Dec 2004 16:06:40 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A2967@xlivmbx21.aig.com> Message-ID: <001c01c4e157$a8829130$e8dafea9@ColbyM6805> That might be true for an MDE but I don't think that is true for an MDA. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, December 13, 2004 3:38 PM To: 'Access Developers discussion and problem solving'; 'Dan Waters' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Just a little heads-up regarding using 'library' files. If you make a change to the library (such as you add a new handy dandy routine to it, or make some alteration to an existing routine) then any and all the applications which are using the library will need to be recompiled. Otherwise you will get a Dr. Watson error when you try to run an application that has a reference to the (now changed) library. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2004 11:35 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Thanks Charlotte! > > I don't need an add-in, just a library, so I'll just use an mdb or > mde. > > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, December 13, 2004 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > MDA normally designates an add-in library. To function as an add-in, > there is a specific table required. To function as a library, not. > We compile several mdbs into mdes and reference them as libraries, > including the one with all our Redemption code in it. > > Charlotte Foust > > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Sunday, December 12, 2004 3:03 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library -pros or cons? > > > Jim, > > After setting a reference to DAO 3.6, and resolving circularity among > function and procedure calls, everything seemed to work correctly. > > I did set a reference to the Library mda. It appears that doing this > allows the code in the library database to work exactly as if the code > existed in the FE mdb. I did not get an initial error the first time > the library code was used. > > I also tried changing the mda to an mdb. Everything still worked just > as before. So now I'm wondering what the difference is between an mda > and an mdb? Any pros/cons to one or the other when using as a library > database? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > (AccessD) > Sent: Sunday, December 12, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Library Database? > > Hi Dan: > > Not the way you trying to do it. You can create a new MDB/MDE, with a > module and in that module, a group of public variables, function and > subroutines. This will be your library. The MDB/MDE database will have > to be attached to your caller/main MDB before the functionality can be > accessed. (file/get external data/link...) Just like classes only > public object, in the module can be accessed externally. Note; that > none of the modules objects can be accessed until the module is > formally called > (Example: if your library module is initially called from a Form open > event, you will receive an error but the Form's load event works fine.) > and from then on all the functions /subroutines /variables will be > exposed because the whole module is then automatically loaded into > memory. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Sunday, December 12, 2004 1:27 PM > To: Database Advisors > Subject: [AccessD] Library Database? > > > I would like to create a separate file (library?) to contain many > procedures and functions which are used by all my customers. > > > > However, most of these either read or write information to the BE > using recordsets. I tried to set up a library database (.mda), but > this errored out when I tried to dim a recordset variable. The .mda > file appears to not recognized the DAO prefix. > > > > dim rst as DAO.Recordset > > > > Is there a way to create a database file to contain procedures and > functions, called from the FE mdb, that can be used read/write to > tables in the BE mdb? > > > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Mon Dec 13 15:49:20 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 13 Dec 2004 16:49:20 -0500 Subject: [AccessD] References to Outlook and version problems In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51EE739A5@doesefpeml02.eus.fldoe.int> References: <01B619CB8F6C8C478EDAC39191AEC51EE739A5@doesefpeml02.eus.fldoe.int> Message-ID: <41BE0E60.80505@rogers.com> I know this has been covered before, but I never had need for it until now. Problem: the app gets installed on some boxes running Office 2K and some running Office XP. The app reaches out to Outlook and when I compile it, version-specific references get embedded. Then it doesn't work on the "other" OS. I recall reading here that this has to do with early v. late binding and that one can code around this, using late binding. But I've never done this before. I think that this may not be the only issue involved. I make extensive use of the MS treeview control in the app, and there are several versions of same. Is the solution to this the same as the Outlook issue? I seem to get busted on the line that dims N as Node. Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.1 - Release Date: 12/13/2004 From Lambert.Heenan at AIG.com Mon Dec 13 16:06:21 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 13 Dec 2004 17:06:21 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A296F@xlivmbx21.aig.com> Thus far I've not had to create any MDA's, but I see little reason to think that this same problem would not also show up with them. After all it all boils down to the entry point of functions/subs getting changes when the library is modified. Why would that not happen with an MDA? Have you done an empirical test? Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Monday, December 13, 2004 4:07 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > That might be true for an MDE but I don't think that is true for an MDA. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Monday, December 13, 2004 3:38 PM > To: 'Access Developers discussion and problem solving'; 'Dan Waters' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > Just a little heads-up regarding using 'library' files. > > If you make a change to the library (such as you add a new handy dandy > routine to it, or make some alteration to an existing routine) then any > and > all the applications which are using the library will need to be > recompiled. > Otherwise you will get a Dr. Watson error when you try to run an > application > that has a reference to the (now changed) library. > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Monday, December 13, 2004 11:35 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > > library-pros or cons? > > > > Thanks Charlotte! > > > > I don't need an add-in, just a library, so I'll just use an mdb or > > mde. > > > > Dan Waters > > ProMation Systems > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > > Sent: Monday, December 13, 2004 10:02 AM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > > library-pros or cons? > > > > MDA normally designates an add-in library. To function as an add-in, > > there is a specific table required. To function as a library, not. > > We compile several mdbs into mdes and reference them as libraries, > > including the one with all our Redemption code in it. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: Dan Waters [mailto:dwaters at usinternet.com] > > Sent: Sunday, December 12, 2004 3:03 PM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > > library -pros or cons? > > > > > > Jim, > > > > After setting a reference to DAO 3.6, and resolving circularity among > > function and procedure calls, everything seemed to work correctly. > > > > I did set a reference to the Library mda. It appears that doing this > > allows the code in the library database to work exactly as if the code > > existed in the FE mdb. I did not get an initial error the first time > > the library code was used. > > > > I also tried changing the mda to an mdb. Everything still worked just > > as before. So now I'm wondering what the difference is between an mda > > and an mdb? Any pros/cons to one or the other when using as a library > > database? > > > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > > Lawrence > > (AccessD) > > Sent: Sunday, December 12, 2004 3:56 PM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Library Database? > > > > Hi Dan: > > > > Not the way you trying to do it. You can create a new MDB/MDE, with a > > module and in that module, a group of public variables, function and > > subroutines. This will be your library. The MDB/MDE database will have > > to be attached to your caller/main MDB before the functionality can be > > accessed. (file/get external data/link...) Just like classes only > > public object, in the module can be accessed externally. Note; that > > none of the modules objects can be accessed until the module is > > formally called > > (Example: if your library module is initially called from a Form open > > event, you will receive an error but the Form's load event works fine.) > > and from then on all the functions /subroutines /variables will be > > exposed because the whole module is then automatically loaded into > > memory. > > > > HTH > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > > Sent: Sunday, December 12, 2004 1:27 PM > > To: Database Advisors > > Subject: [AccessD] Library Database? > > > > > > I would like to create a separate file (library?) to contain many > > procedures and functions which are used by all my customers. > > > > > > > > However, most of these either read or write information to the BE > > using recordsets. I tried to set up a library database (.mda), but > > this errored out when I tried to dim a recordset variable. The .mda > > file appears to not recognized the DAO prefix. > > > > > > > > dim rst as DAO.Recordset > > > > > > > > Is there a way to create a database file to contain procedures and > > functions, called from the FE mdb, that can be used read/write to > > tables in the BE mdb? > > > > > > > > Thanks! > > > > Dan Waters > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Mon Dec 13 16:19:57 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Mon, 13 Dec 2004 17:19:57 -0500 Subject: [AccessD] References to Outlook and version problems In-Reply-To: <41BE0E60.80505@rogers.com> Message-ID: <001301c4e161$e41b2cc0$640fa8c0@COA3> Yes, Late binding is the way around this ... Dim everything as Object. Something like: Dim appOut as Object Set appOut= CreateObject("Outlook.Application"). You will lose the constants and have to use the actual numbers, such as olMailItem - need to use the 0 (or 1 - I don't remember). Works for TreeView and Node as well, dim them as objects. Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, December 13, 2004 4:49 PM To: Access Developers discussion and problem solving Subject: [AccessD] References to Outlook and version problems I know this has been covered before, but I never had need for it until now. Problem: the app gets installed on some boxes running Office 2K and some running Office XP. The app reaches out to Outlook and when I compile it, version-specific references get embedded. Then it doesn't work on the "other" OS. I recall reading here that this has to do with early v. late binding and that one can code around this, using late binding. But I've never done this before. I think that this may not be the only issue involved. I make extensive use of the MS treeview control in the app, and there are several versions of same. Is the solution to this the same as the Outlook issue? I seem to get busted on the line that dims N as Node. Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.1 - Release Date: 12/13/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Mon Dec 13 15:45:09 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 13 Dec 2004 22:45:09 +0100 Subject: [AccessD] backup database References: Message-ID: <009c01c4e162$2690b980$f8c581d5@pedro> Thanks Gustav, i will search the archive. Pedro ----- Original Message ----- From: "Gustav Brock" To: Sent: Monday, December 13, 2004 12:42 PM Subject: Re: [AccessD] backup database > Hi Pedro > > Yes there is. > Look up in the archive "SaveAsText, LoadFromText" from 2004-07-25 and > -27. > > /gustav > > >>> pedro at plex.nl 12-12-2004 20:56:15 >>> > Hello Group, > > is there a way to backup the backend as a tekstfile in columns or as > excel file, with one click of a button. > > I don't want to open each table and save them by hand to a different > folder as the default folder where the database is in. > > Pedro Janssen > -- > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Mon Dec 13 15:43:50 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 13 Dec 2004 22:43:50 +0100 Subject: [AccessD] missing reference, converting to A2003 References: <006701c4def0$dc4e41d0$fbc581d5@pedro><002301c4e084$0e01f250$fbc581d5@pedro> Message-ID: <009b01c4e162$26180710$f8c581d5@pedro> Thanks William for the explanation. Pedro ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Sunday, December 12, 2004 10:48 PM Subject: Re: [AccessD] missing reference, converting to A2003 > Pedro > > ..some developers put common code functions in a separate mdb or mde and > use it as a standard "library" for their applications ...if it is not > present when calls are made to a referenced function included in it, you > probably won't be able to compile the application ...when I'm given a > another developer's mdb to modify one of the first things I do is check for > a missing library file which usually shows up as a bad reference ...hth :) > > William Hindman > > ----- Original Message ----- > From: "Pedro Janssen" > To: "Access Developers discussion and problem solving" > > Sent: Sunday, December 12, 2004 2:52 PM > Subject: Re: [AccessD] missing reference, converting to A2003 > > > > Hello William, > > > > i am not sure what you mean by: "picked up any library mdes along with the > > mdb" > > How can i do this? > > > > Pedro > > > > > > ----- Original Message ----- > > From: "William Hindman" > > To: "Access Developers discussion and problem solving" > > > > Sent: Saturday, December 11, 2004 1:22 AM > > Subject: Re: [AccessD] missing reference, converting to A2003 > > > > > >> Pedro > >> > >> ..the IsLoaded is normally found in a utility code module or a library > >> mde > >> ..are you sure you picked up any library mdes along with the mdb? > >> > >> William Hindman > >> > >> > >> ----- Original Message ----- > >> From: "Pedro Janssen" > >> To: "Access Developers discussion and problem solving" > >> > >> Sent: Friday, December 10, 2004 2:44 PM > >> Subject: Re: [AccessD] missing reference, converting to A2003 > >> > >> > >> > Hello Charlotte, > >> > > >> > when unschecking the reference, the code doesn't compile. It gives a > >> > missing > >> > reference for the IsLoaded event. > >> > > >> > Anybody an idea what this refence does? > >> > > >> > Pedro Janssen > >> > > >> > > >> > > >> > ----- Original Message ----- > >> > From: "Charlotte Foust" > >> > To: "Access Developers discussion and problem solving" > >> > > >> > Sent: Thursday, December 09, 2004 5:59 PM > >> > Subject: RE: [AccessD] missing reference, converting to A2003 > >> > > >> > > >> >> If you uncheck the reference, does the code compile? Since the > >> >> reference is to an ocx file, you should only need it if you're using > > the > >> >> activex control in the application, in which case, it would have to be > >> >> installed on your system. > >> >> > >> >> Charlotte Foust > >> >> > >> >> > >> >> -----Original Message----- > >> >> From: pedro at plex.nl [mailto:pedro at plex.nl] > >> >> Sent: Thursday, December 09, 2004 4:08 AM > >> >> To: accessd at databaseadvisors.com > >> >> Subject: [AccessD] missing reference, converting to A2003 > >> >> > >> >> > >> >> Hello Group, > >> >> > >> >> when converting a A2k database to A2003 i get an missing reference > >> >> error. Missing is the effect library (MMEFXE.OCX). I searched the > > system > >> >> for this reference, but i can't find it. Also in the knowledge base i > >> >> can't find any info. Has anybody encountered this problem. > >> >> > >> >> Pedro Janssen > >> >> -- > >> >> AccessD mailing list > >> >> AccessD at databaseadvisors.com > >> >> http://databaseadvisors.com/mailman/listinfo/accessd > >> >> Website: http://www.databaseadvisors.com > >> >> -- > >> >> AccessD mailing list > >> >> AccessD at databaseadvisors.com > >> >> http://databaseadvisors.com/mailman/listinfo/accessd > >> >> Website: http://www.databaseadvisors.com > >> >> > >> > > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Mon Dec 13 16:52:59 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 13 Dec 2004 14:52:59 -0800 Subject: [AccessD] backup database References: Message-ID: <41BE1D4B.6060101@shaw.ca> This will work in Access 97 and up and saveand restore all tables,daps's,referential integrity,db diagrams, and menu bars. SavesAsText 6,"", "C:\mydata\mymdbtablesave.txt" then to reload in a fresh mdb LoadFromText 6,"", "C:\mydata\mymdbtablesave.txt" This can be a big text file probably 1/3 larger than all your tables combined.. The magic number 6 is the constant acDataAccessPage which doesn't exist in Access97 Gustav Brock wrote: >Hi Pedro > >Yes there is. >Look up in the archive "SaveAsText, LoadFromText" from 2004-07-25 and >-27. > >/gustav > > > >>>>pedro at plex.nl 12-12-2004 20:56:15 >>> >>>> >>>> >Hello Group, > >is there a way to backup the backend as a tekstfile in columns or as >excel file, with one click of a button. > >I don't want to open each table and save them by hand to a different >folder as the default folder where the database is in. > >Pedro Janssen >-- > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Dec 13 16:57:55 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 13 Dec 2004 14:57:55 -0800 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? References: <001c01c4e157$a8829130$e8dafea9@ColbyM6805> Message-ID: <41BE1E73.4020309@shaw.ca> Helen Feddema has a write up on this explaining the UsysRegInfo table and the various types of addins http://www.helenfeddema.com/access.htm Writing Access Add-ins accarch108.zip Don't forget to use CodeDB instead of CurrentDB if using tables etc. in your addin. John W. Colby wrote: >That might be true for an MDE but I don't think that is true for an MDA. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert >Sent: Monday, December 13, 2004 3:38 PM >To: 'Access Developers discussion and problem solving'; 'Dan Waters' >Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >library-pros or cons? > > >Just a little heads-up regarding using 'library' files. > >If you make a change to the library (such as you add a new handy dandy >routine to it, or make some alteration to an existing routine) then any and >all the applications which are using the library will need to be recompiled. >Otherwise you will get a Dr. Watson error when you try to run an application >that has a reference to the (now changed) library. > >Lambert > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >>Sent: Monday, December 13, 2004 11:35 AM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >>library-pros or cons? >> >>Thanks Charlotte! >> >>I don't need an add-in, just a library, so I'll just use an mdb or >>mde. >> >>Dan Waters >>ProMation Systems >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >>Foust >>Sent: Monday, December 13, 2004 10:02 AM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >>library-pros or cons? >> >>MDA normally designates an add-in library. To function as an add-in, >>there is a specific table required. To function as a library, not. >>We compile several mdbs into mdes and reference them as libraries, >>including the one with all our Redemption code in it. >> >>Charlotte Foust >> >> >>-----Original Message----- >>From: Dan Waters [mailto:dwaters at usinternet.com] >>Sent: Sunday, December 12, 2004 3:03 PM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >>library -pros or cons? >> >> >>Jim, >> >>After setting a reference to DAO 3.6, and resolving circularity among >>function and procedure calls, everything seemed to work correctly. >> >>I did set a reference to the Library mda. It appears that doing this >>allows the code in the library database to work exactly as if the code >>existed in the FE mdb. I did not get an initial error the first time >>the library code was used. >> >>I also tried changing the mda to an mdb. Everything still worked just >>as before. So now I'm wondering what the difference is between an mda >>and an mdb? Any pros/cons to one or the other when using as a library >>database? >> >>Dan >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>Lawrence >>(AccessD) >>Sent: Sunday, December 12, 2004 3:56 PM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Library Database? >> >>Hi Dan: >> >>Not the way you trying to do it. You can create a new MDB/MDE, with a >>module and in that module, a group of public variables, function and >>subroutines. This will be your library. The MDB/MDE database will have >>to be attached to your caller/main MDB before the functionality can be >>accessed. (file/get external data/link...) Just like classes only >>public object, in the module can be accessed externally. Note; that >>none of the modules objects can be accessed until the module is >>formally called >>(Example: if your library module is initially called from a Form open >>event, you will receive an error but the Form's load event works fine.) >>and from then on all the functions /subroutines /variables will be >>exposed because the whole module is then automatically loaded into >>memory. >> >>HTH >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters >>Sent: Sunday, December 12, 2004 1:27 PM >>To: Database Advisors >>Subject: [AccessD] Library Database? >> >> >>I would like to create a separate file (library?) to contain many >>procedures and functions which are used by all my customers. >> >> >> >>However, most of these either read or write information to the BE >>using recordsets. I tried to set up a library database (.mda), but >>this errored out when I tried to dim a recordset variable. The .mda >>file appears to not recognized the DAO prefix. >> >> >> >> dim rst as DAO.Recordset >> >> >> >>Is there a way to create a database file to contain procedures and >>functions, called from the FE mdb, that can be used read/write to >>tables in the BE mdb? >> >> >> >>Thanks! >> >>Dan Waters >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> -- Marty Connelly Victoria, B.C. Canada From dejpolsys at hotmail.com Mon Dec 13 19:31:42 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 13 Dec 2004 20:31:42 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? References: <1D7828CDB8350747AFE9D69E0E90DA1F073A296F@xlivmbx21.aig.com> Message-ID: ..not specifically but I do note that when I install updates to 3rd party libraries I use, I don't recall ever having to recompile the apps referencing them. William Hindman ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" ; "'John W. Colby'" Sent: Monday, December 13, 2004 5:06 PM Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? > Thus far I've not had to create any MDA's, but I see little reason to > think > that this same problem would not also show up with them. After all it all > boils down to the entry point of functions/subs getting changes when the > library is modified. Why would that not happen with an MDA? Have you done > an empirical test? > > Lambert > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >> Sent: Monday, December 13, 2004 4:07 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> library-pros or cons? >> >> That might be true for an MDE but I don't think that is true for an MDA. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> Sent: Monday, December 13, 2004 3:38 PM >> To: 'Access Developers discussion and problem solving'; 'Dan Waters' >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> library-pros or cons? >> >> >> Just a little heads-up regarding using 'library' files. >> >> If you make a change to the library (such as you add a new handy dandy >> routine to it, or make some alteration to an existing routine) then any >> and >> all the applications which are using the library will need to be >> recompiled. >> Otherwise you will get a Dr. Watson error when you try to run an >> application >> that has a reference to the (now changed) library. >> >> Lambert >> >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> > Sent: Monday, December 13, 2004 11:35 AM >> > To: 'Access Developers discussion and problem solving' >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> > library-pros or cons? >> > >> > Thanks Charlotte! >> > >> > I don't need an add-in, just a library, so I'll just use an mdb or >> > mde. >> > >> > Dan Waters >> > ProMation Systems >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >> > Foust >> > Sent: Monday, December 13, 2004 10:02 AM >> > To: Access Developers discussion and problem solving >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> > library-pros or cons? >> > >> > MDA normally designates an add-in library. To function as an add-in, >> > there is a specific table required. To function as a library, not. >> > We compile several mdbs into mdes and reference them as libraries, >> > including the one with all our Redemption code in it. >> > >> > Charlotte Foust >> > >> > >> > -----Original Message----- >> > From: Dan Waters [mailto:dwaters at usinternet.com] >> > Sent: Sunday, December 12, 2004 3:03 PM >> > To: 'Access Developers discussion and problem solving' >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced >> > library -pros or cons? >> > >> > >> > Jim, >> > >> > After setting a reference to DAO 3.6, and resolving circularity among >> > function and procedure calls, everything seemed to work correctly. >> > >> > I did set a reference to the Library mda. It appears that doing this >> > allows the code in the library database to work exactly as if the code >> > existed in the FE mdb. I did not get an initial error the first time >> > the library code was used. >> > >> > I also tried changing the mda to an mdb. Everything still worked just >> > as before. So now I'm wondering what the difference is between an mda >> > and an mdb? Any pros/cons to one or the other when using as a library >> > database? >> > >> > Dan >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> > Lawrence >> > (AccessD) >> > Sent: Sunday, December 12, 2004 3:56 PM >> > To: Access Developers discussion and problem solving >> > Subject: RE: [AccessD] Library Database? >> > >> > Hi Dan: >> > >> > Not the way you trying to do it. You can create a new MDB/MDE, with a >> > module and in that module, a group of public variables, function and >> > subroutines. This will be your library. The MDB/MDE database will have >> > to be attached to your caller/main MDB before the functionality can be >> > accessed. (file/get external data/link...) Just like classes only >> > public object, in the module can be accessed externally. Note; that >> > none of the modules objects can be accessed until the module is >> > formally called >> > (Example: if your library module is initially called from a Form open >> > event, you will receive an error but the Form's load event works fine.) >> > and from then on all the functions /subroutines /variables will be >> > exposed because the whole module is then automatically loaded into >> > memory. >> > >> > HTH >> > Jim >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters >> > Sent: Sunday, December 12, 2004 1:27 PM >> > To: Database Advisors >> > Subject: [AccessD] Library Database? >> > >> > >> > I would like to create a separate file (library?) to contain many >> > procedures and functions which are used by all my customers. >> > >> > >> > >> > However, most of these either read or write information to the BE >> > using recordsets. I tried to set up a library database (.mda), but >> > this errored out when I tried to dim a recordset variable. The .mda >> > file appears to not recognized the DAO prefix. >> > >> > >> > >> > dim rst as DAO.Recordset >> > >> > >> > >> > Is there a way to create a database file to contain procedures and >> > functions, called from the FE mdb, that can be used read/write to >> > tables in the BE mdb? >> > >> > >> > >> > Thanks! >> > >> > Dan Waters >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Tue Dec 14 10:29:11 2004 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 14 Dec 2004 17:29:11 +0100 Subject: [AccessD] backup database References: <41BE1D4B.6060101@shaw.ca> Message-ID: <004101c4e1fa$0ba3e320$f2c581d5@pedro> Hello Marty, thanks for the help. Pedro ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Monday, December 13, 2004 11:52 PM Subject: Re: [AccessD] backup database > This will work in Access 97 and up and saveand restore all > tables,daps's,referential integrity,db diagrams, and menu bars. > > SavesAsText 6,"", "C:\mydata\mymdbtablesave.txt" > > then to reload in a fresh mdb > > LoadFromText 6,"", "C:\mydata\mymdbtablesave.txt" > > This can be a big text file probably 1/3 larger than all your tables > combined.. > The magic number 6 is the constant acDataAccessPage which doesn't exist > in Access97 > > Gustav Brock wrote: > > >Hi Pedro > > > >Yes there is. > >Look up in the archive "SaveAsText, LoadFromText" from 2004-07-25 and > >-27. > > > >/gustav > > > > > > > >>>>pedro at plex.nl 12-12-2004 20:56:15 >>> > >>>> > >>>> > >Hello Group, > > > >is there a way to backup the backend as a tekstfile in columns or as > >excel file, with one click of a button. > > > >I don't want to open each table and save them by hand to a different > >folder as the default folder where the database is in. > > > >Pedro Janssen > >-- > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at AIG.com Tue Dec 14 11:12:53 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 14 Dec 2004 12:12:53 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2977@xlivmbx21.aig.com> Interesting. I'm going to go off and do some more testing. I thought I'd put this problem to bed years ago as 'just one of those things you have to deal with', but now I'm wondering. I'm talking about plain vanilla code routines stored in an MDE file which is then added as a reference in another application, which in turn is compiled to an MDE file. This is in an Access 97 environment, but I think it also happens with Access 2002 - something else to test. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, December 13, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > ..not specifically but I do note that when I install updates to 3rd party > libraries I use, I don't recall ever having to recompile the apps > referencing them. > > William Hindman > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'John W. Colby'" > > Sent: Monday, December 13, 2004 5:06 PM > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > > Thus far I've not had to create any MDA's, but I see little reason to > > think > > that this same problem would not also show up with them. After all it > all > > boils down to the entry point of functions/subs getting changes when the > > library is modified. Why would that not happen with an MDA? Have you > done > > an empirical test? > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > >> Sent: Monday, December 13, 2004 4:07 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> library-pros or cons? > >> > >> That might be true for an MDE but I don't think that is true for an > MDA. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> Contribute your unused CPU cycles to a good cause: > >> http://folding.stanford.edu/ > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > >> Lambert > >> Sent: Monday, December 13, 2004 3:38 PM > >> To: 'Access Developers discussion and problem solving'; 'Dan Waters' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> library-pros or cons? > >> > >> > >> Just a little heads-up regarding using 'library' files. > >> > >> If you make a change to the library (such as you add a new handy dandy > >> routine to it, or make some alteration to an existing routine) then any > >> and > >> all the applications which are using the library will need to be > >> recompiled. > >> Otherwise you will get a Dr. Watson error when you try to run an > >> application > >> that has a reference to the (now changed) library. > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > >> > Sent: Monday, December 13, 2004 11:35 AM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> > library-pros or cons? > >> > > >> > Thanks Charlotte! > >> > > >> > I don't need an add-in, just a library, so I'll just use an mdb or > >> > mde. > >> > > >> > Dan Waters > >> > ProMation Systems > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > >> > Foust > >> > Sent: Monday, December 13, 2004 10:02 AM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> > library-pros or cons? > >> > > >> > MDA normally designates an add-in library. To function as an add-in, > >> > there is a specific table required. To function as a library, not. > >> > We compile several mdbs into mdes and reference them as libraries, > >> > including the one with all our Redemption code in it. > >> > > >> > Charlotte Foust > >> > > >> > > >> > -----Original Message----- > >> > From: Dan Waters [mailto:dwaters at usinternet.com] > >> > Sent: Sunday, December 12, 2004 3:03 PM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> > library -pros or cons? > >> > > >> > > >> > Jim, > >> > > >> > After setting a reference to DAO 3.6, and resolving circularity among > >> > function and procedure calls, everything seemed to work correctly. > >> > > >> > I did set a reference to the Library mda. It appears that doing this > >> > allows the code in the library database to work exactly as if the > code > >> > existed in the FE mdb. I did not get an initial error the first time > >> > the library code was used. > >> > > >> > I also tried changing the mda to an mdb. Everything still worked > just > >> > as before. So now I'm wondering what the difference is between an > mda > >> > and an mdb? Any pros/cons to one or the other when using as a > library > >> > database? > >> > > >> > Dan > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >> > Lawrence > >> > (AccessD) > >> > Sent: Sunday, December 12, 2004 3:56 PM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? > >> > > >> > Hi Dan: > >> > > >> > Not the way you trying to do it. You can create a new MDB/MDE, with a > >> > module and in that module, a group of public variables, function and > >> > subroutines. This will be your library. The MDB/MDE database will > have > >> > to be attached to your caller/main MDB before the functionality can > be > >> > accessed. (file/get external data/link...) Just like classes only > >> > public object, in the module can be accessed externally. Note; that > >> > none of the modules objects can be accessed until the module is > >> > formally called > >> > (Example: if your library module is initially called from a Form open > >> > event, you will receive an error but the Form's load event works > fine.) > >> > and from then on all the functions /subroutines /variables will be > >> > exposed because the whole module is then automatically loaded into > >> > memory. > >> > > >> > HTH > >> > Jim > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > >> > Sent: Sunday, December 12, 2004 1:27 PM > >> > To: Database Advisors > >> > Subject: [AccessD] Library Database? > >> > > >> > > >> > I would like to create a separate file (library?) to contain many > >> > procedures and functions which are used by all my customers. > >> > > >> > > >> > > >> > However, most of these either read or write information to the BE > >> > using recordsets. I tried to set up a library database (.mda), but > >> > this errored out when I tried to dim a recordset variable. The .mda > >> > file appears to not recognized the DAO prefix. > >> > > >> > > >> > > >> > dim rst as DAO.Recordset > >> > > >> > > >> > > >> > Is there a way to create a database file to contain procedures and > >> > functions, called from the FE mdb, that can be used read/write to > >> > tables in the BE mdb? > >> > > >> > > >> > > >> > Thanks! > >> > > >> > Dan Waters > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Dec 14 12:45:07 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 14 Dec 2004 13:45:07 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2979@xlivmbx21.aig.com> Ok. I've done some testing in both Access 97 and Access 2002. 1/ Created an MDB file with a single module. The module has a single function that returns as string. The string consists of the value of CurrentDb.Name, a new line and the value of CodeDb.Name 2/ Compiled the MDB file to an MDE file. 3/ Create another MDB file, and set a reference in it to the MDE file created in step 2. Added a module to the second MDB with a function ("WhatGives()") which calls the function in the library MDE and displays the returned string in a MsgBox. Call the function WhatGives() from the autoexec macro. 4/ Compile the second MDB to an MDE file. Then I open the second MDE, autoexec runs and I see the correct CurrentDb and CodeDb information displayed, as expected. 5/ Open the first, 'library' MDB and added another function to the existing module. Then compile it to an MDE once more. 6/ Open the second MDE again. This time Access displays the message "The expression you entered has a function that Microsoft Access can't find." 7 Open the second MDB file and AutoExec runs without complaint, and I see the two file paths displayed. Recompile the second MDB to an MDE again, and now I can open the MDE and it runs the library function just fine. This behavior is repeated exactly when using Access 2002 (on a different computer than the one with Access 97). So it seems like MDB applications will happily update themselves when they are using a reference to a changed MDE library, but MDE applications will not. This gels with the notion that MDA files do on exhibit this problem as they contain the VBA source code (do they really?). I'm assuming that the very simple setup I created was robust enough to display an error message, but in a more complex, "real world" example with a large library file and similarly large client application I get Dr. Watson errors when I try running an application which is referencing a library that got changed (if the client is not first recompiled). FWIW Lambert > -----Original Message----- > From: Heenan, Lambert > Sent: Tuesday, December 14, 2004 12:13 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Interesting. I'm going to go off and do some more testing. I thought I'd > put this problem to bed years ago as 'just one of those things you have to > deal with', but now I'm wondering. > > I'm talking about plain vanilla code routines stored in an MDE file which > is then added as a reference in another application, which in turn is > compiled to an MDE file. This is in an Access 97 environment, but I think > it also happens with Access 2002 - something else to test. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, December 13, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Library Database? .mda or .mdb as > referenced library-pros or cons? > > ..not specifically but I do note that when I install updates to 3rd > party > libraries I use, I don't recall ever having to recompile the apps > referencing them. > > William Hindman > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'John W. Colby'" > > Sent: Monday, December 13, 2004 5:06 PM > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > > Thus far I've not had to create any MDA's, but I see little reason > to > > think > > that this same problem would not also show up with them. After all > it all > > boils down to the entry point of functions/subs getting changes > when the > > library is modified. Why would that not happen with an MDA? Have > you done > > an empirical test? > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > >> Sent: Monday, December 13, 2004 4:07 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> library-pros or cons? > >> > >> That might be true for an MDE but I don't think that is true for > an MDA. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> Contribute your unused CPU cycles to a good cause: > >> http://folding.stanford.edu/ > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Heenan, > >> Lambert > >> Sent: Monday, December 13, 2004 3:38 PM > >> To: 'Access Developers discussion and problem solving'; 'Dan > Waters' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> library-pros or cons? > >> > >> > >> Just a little heads-up regarding using 'library' files. > >> > >> If you make a change to the library (such as you add a new handy > dandy > >> routine to it, or make some alteration to an existing routine) > then any > >> and > >> all the applications which are using the library will need to be > >> recompiled. > >> Otherwise you will get a Dr. Watson error when you try to run an > >> application > >> that has a reference to the (now changed) library. > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > Waters > >> > Sent: Monday, December 13, 2004 11:35 AM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library-pros or cons? > >> > > >> > Thanks Charlotte! > >> > > >> > I don't need an add-in, just a library, so I'll just use an mdb > or > >> > mde. > >> > > >> > Dan Waters > >> > ProMation Systems > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte > >> > Foust > >> > Sent: Monday, December 13, 2004 10:02 AM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library-pros or cons? > >> > > >> > MDA normally designates an add-in library. To function as an > add-in, > >> > there is a specific table required. To function as a library, > not. > >> > We compile several mdbs into mdes and reference them as > libraries, > >> > including the one with all our Redemption code in it. > >> > > >> > Charlotte Foust > >> > > >> > > >> > -----Original Message----- > >> > From: Dan Waters [mailto:dwaters at usinternet.com] > >> > Sent: Sunday, December 12, 2004 3:03 PM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library -pros or cons? > >> > > >> > > >> > Jim, > >> > > >> > After setting a reference to DAO 3.6, and resolving circularity > among > >> > function and procedure calls, everything seemed to work > correctly. > >> > > >> > I did set a reference to the Library mda. It appears that > doing this > >> > allows the code in the library database to work exactly as if > the code > >> > existed in the FE mdb. I did not get an initial error the > first time > >> > the library code was used. > >> > > >> > I also tried changing the mda to an mdb. Everything still > worked just > >> > as before. So now I'm wondering what the difference is between > an mda > >> > and an mdb? Any pros/cons to one or the other when using as a > library > >> > database? > >> > > >> > Dan > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >> > Lawrence > >> > (AccessD) > >> > Sent: Sunday, December 12, 2004 3:56 PM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? > >> > > >> > Hi Dan: > >> > > >> > Not the way you trying to do it. You can create a new MDB/MDE, > with a > >> > module and in that module, a group of public variables, > function and > >> > subroutines. This will be your library. The MDB/MDE database > will have > >> > to be attached to your caller/main MDB before the functionality > can be > >> > accessed. (file/get external data/link...) Just like classes > only > >> > public object, in the module can be accessed externally. Note; > that > >> > none of the modules objects can be accessed until the module is > >> > formally called > >> > (Example: if your library module is initially called from a > Form open > >> > event, you will receive an error but the Form's load event > works fine.) > >> > and from then on all the functions /subroutines /variables will > be > >> > exposed because the whole module is then automatically loaded > into > >> > memory. > >> > > >> > HTH > >> > Jim > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan > Waters > >> > Sent: Sunday, December 12, 2004 1:27 PM > >> > To: Database Advisors > >> > Subject: [AccessD] Library Database? > >> > > >> > > >> > I would like to create a separate file (library?) to contain > many > >> > procedures and functions which are used by all my customers. > >> > > >> > > >> > > >> > However, most of these either read or write information to the > BE > >> > using recordsets. I tried to set up a library database (.mda), > but > >> > this errored out when I tried to dim a recordset variable. The > .mda > >> > file appears to not recognized the DAO prefix. > >> > > >> > > >> > > >> > dim rst as DAO.Recordset > >> > > >> > > >> > > >> > Is there a way to create a database file to contain procedures > and > >> > functions, called from the FE mdb, that can be used read/write > to > >> > tables in the BE mdb? > >> > > >> > > >> > > >> > Thanks! > >> > > >> > Dan Waters > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Tue Dec 14 13:17:25 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 14 Dec 2004 14:17:25 -0500 Subject: [AccessD] OT - VBA Required / Already installed -Office/Developer 2000 In-Reply-To: <41BB2DD4.9179.15DB017@localhost> Message-ID: Thanks, guys. However, I got Developer to re-install, but there is still the problem with msado21.tlb. This computer (running Win2000 and A2K) insists on including msado21.tlb as a line item in the selection screen in the Package and Deployment Wizard. My other laptop (also with Win2000 and A2K) does not try to include msado21.tlb. Now for really the bigger problem. My new laptop runs WinXP SP2 and A2K (A2K3 was installed and removed). It produces installation packages that will not run on other computers. I get the "Some files are out of date..." crap. Say OK to update files, it seems to, restarts, and then you get into an endless loop of "Some files out of date..." and restarting - it will never get beyond that point. The desktop (the one with the msado21.tlb issue) has MDAC 2.52.6019.0 The old laptop has MDAC 2.70.7713.4 The new laptop has MDAC 2.81.1117.0 What now? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Saturday, December 11, 2004 5:27 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT - VBA Required / Already installed -Office/Developer 2000 On 10 Dec 2004 at 14:14, Reuben Cummings wrote: > I have tried to repair Office and Developer (both 2000). The problem > occurs when I insert the Developer CD. I get a messgae stating that > Developer requires VBA 6.0 and that I must install Office or something > else that contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. Ignore my last e-mail. I found the KB article; http://support.microsoft.com/?KBID=322632 Here is the resolution: To resolve the issue, locate the ACMBoot.exe file on the root directory of the Microsoft Office 2000 Developer CD, and then run it. You can install Office 2000 Developer successfully when you start Setup in this manner. -- Bryan Carbonnell - carbonnb at sympatico.ca I don't suffer from stress. I am a carrier. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Tue Dec 14 13:21:58 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 14 Dec 2004 14:21:58 -0500 Subject: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9BD@DISABILITYINS01> Lambert, Thanks for that, definitely a "need to know" item if working with MDEs. John W. Colby The DIS Database Guy -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, December 14, 2004 1:45 PM To: Access-D Email (E-mail) Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced librar y-pros or cons? Ok. I've done some testing in both Access 97 and Access 2002. 1/ Created an MDB file with a single module. The module has a single function that returns as string. The string consists of the value of CurrentDb.Name, a new line and the value of CodeDb.Name 2/ Compiled the MDB file to an MDE file. 3/ Create another MDB file, and set a reference in it to the MDE file created in step 2. Added a module to the second MDB with a function ("WhatGives()") which calls the function in the library MDE and displays the returned string in a MsgBox. Call the function WhatGives() from the autoexec macro. 4/ Compile the second MDB to an MDE file. Then I open the second MDE, autoexec runs and I see the correct CurrentDb and CodeDb information displayed, as expected. 5/ Open the first, 'library' MDB and added another function to the existing module. Then compile it to an MDE once more. 6/ Open the second MDE again. This time Access displays the message "The expression you entered has a function that Microsoft Access can't find." 7 Open the second MDB file and AutoExec runs without complaint, and I see the two file paths displayed. Recompile the second MDB to an MDE again, and now I can open the MDE and it runs the library function just fine. This behavior is repeated exactly when using Access 2002 (on a different computer than the one with Access 97). So it seems like MDB applications will happily update themselves when they are using a reference to a changed MDE library, but MDE applications will not. This gels with the notion that MDA files do on exhibit this problem as they contain the VBA source code (do they really?). I'm assuming that the very simple setup I created was robust enough to display an error message, but in a more complex, "real world" example with a large library file and similarly large client application I get Dr. Watson errors when I try running an application which is referencing a library that got changed (if the client is not first recompiled). FWIW Lambert > -----Original Message----- > From: Heenan, Lambert > Sent: Tuesday, December 14, 2004 12:13 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > Interesting. I'm going to go off and do some more testing. I thought I'd > put this problem to bed years ago as 'just one of those things you have to > deal with', but now I'm wondering. > > I'm talking about plain vanilla code routines stored in an MDE file which > is then added as a reference in another application, which in turn is > compiled to an MDE file. This is in an Access 97 environment, but I think > it also happens with Access 2002 - something else to test. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, December 13, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Library Database? .mda or .mdb as > referenced library-pros or cons? > > ..not specifically but I do note that when I install updates to 3rd > party > libraries I use, I don't recall ever having to recompile the apps > referencing them. > > William Hindman > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'John W. Colby'" > > Sent: Monday, December 13, 2004 5:06 PM > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > > Thus far I've not had to create any MDA's, but I see little reason > to > > think > > that this same problem would not also show up with them. After all > it all > > boils down to the entry point of functions/subs getting changes > when the > > library is modified. Why would that not happen with an MDA? Have > you done > > an empirical test? > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > >> Sent: Monday, December 13, 2004 4:07 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> library-pros or cons? > >> > >> That might be true for an MDE but I don't think that is true for > an MDA. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> Contribute your unused CPU cycles to a good cause: > >> http://folding.stanford.edu/ > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Heenan, > >> Lambert > >> Sent: Monday, December 13, 2004 3:38 PM > >> To: 'Access Developers discussion and problem solving'; 'Dan > Waters' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> library-pros or cons? > >> > >> > >> Just a little heads-up regarding using 'library' files. > >> > >> If you make a change to the library (such as you add a new handy > dandy > >> routine to it, or make some alteration to an existing routine) > then any > >> and > >> all the applications which are using the library will need to be > >> recompiled. > >> Otherwise you will get a Dr. Watson error when you try to run an > >> application > >> that has a reference to the (now changed) library. > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > Waters > >> > Sent: Monday, December 13, 2004 11:35 AM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library-pros or cons? > >> > > >> > Thanks Charlotte! > >> > > >> > I don't need an add-in, just a library, so I'll just use an mdb > or > >> > mde. > >> > > >> > Dan Waters > >> > ProMation Systems > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte > >> > Foust > >> > Sent: Monday, December 13, 2004 10:02 AM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library-pros or cons? > >> > > >> > MDA normally designates an add-in library. To function as an > add-in, > >> > there is a specific table required. To function as a library, > not. > >> > We compile several mdbs into mdes and reference them as > libraries, > >> > including the one with all our Redemption code in it. > >> > > >> > Charlotte Foust > >> > > >> > > >> > -----Original Message----- > >> > From: Dan Waters [mailto:dwaters at usinternet.com] > >> > Sent: Sunday, December 12, 2004 3:03 PM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > referenced > >> > library -pros or cons? > >> > > >> > > >> > Jim, > >> > > >> > After setting a reference to DAO 3.6, and resolving circularity > among > >> > function and procedure calls, everything seemed to work > correctly. > >> > > >> > I did set a reference to the Library mda. It appears that > doing this > >> > allows the code in the library database to work exactly as if > the code > >> > existed in the FE mdb. I did not get an initial error the > first time > >> > the library code was used. > >> > > >> > I also tried changing the mda to an mdb. Everything still > worked just > >> > as before. So now I'm wondering what the difference is between > an mda > >> > and an mdb? Any pros/cons to one or the other when using as a > library > >> > database? > >> > > >> > Dan > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >> > Lawrence > >> > (AccessD) > >> > Sent: Sunday, December 12, 2004 3:56 PM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? > >> > > >> > Hi Dan: > >> > > >> > Not the way you trying to do it. You can create a new MDB/MDE, > with a > >> > module and in that module, a group of public variables, > function and > >> > subroutines. This will be your library. The MDB/MDE database > will have > >> > to be attached to your caller/main MDB before the functionality > can be > >> > accessed. (file/get external data/link...) Just like classes > only > >> > public object, in the module can be accessed externally. Note; > that > >> > none of the modules objects can be accessed until the module is > >> > formally called > >> > (Example: if your library module is initially called from a > Form open > >> > event, you will receive an error but the Form's load event > works fine.) > >> > and from then on all the functions /subroutines /variables will > be > >> > exposed because the whole module is then automatically loaded > into > >> > memory. > >> > > >> > HTH > >> > Jim > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan > Waters > >> > Sent: Sunday, December 12, 2004 1:27 PM > >> > To: Database Advisors > >> > Subject: [AccessD] Library Database? > >> > > >> > > >> > I would like to create a separate file (library?) to contain > many > >> > procedures and functions which are used by all my customers. > >> > > >> > > >> > > >> > However, most of these either read or write information to the > BE > >> > using recordsets. I tried to set up a library database (.mda), > but > >> > this errored out when I tried to dim a recordset variable. The > .mda > >> > file appears to not recognized the DAO prefix. > >> > > >> > > >> > > >> > dim rst as DAO.Recordset > >> > > >> > > >> > > >> > Is there a way to create a database file to contain procedures > and > >> > functions, called from the FE mdb, that can be used read/write > to > >> > tables in the BE mdb? > >> > > >> > > >> > > >> > Thanks! > >> > > >> > Dan Waters > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 14 13:21:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 14 Dec 2004 11:21:48 -0800 Subject: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Message-ID: MDE files add an additional layer of complications, Lambert. Changing them out does require a recompile of the database that references them. If they're not MDEs, it shouldn't. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, December 14, 2004 9:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced library-pros or cons? Interesting. I'm going to go off and do some more testing. I thought I'd put this problem to bed years ago as 'just one of those things you have to deal with', but now I'm wondering. I'm talking about plain vanilla code routines stored in an MDE file which is then added as a reference in another application, which in turn is compiled to an MDE file. This is in an Access 97 environment, but I think it also happens with Access 2002 - something else to test. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, December 13, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > ..not specifically but I do note that when I install updates to 3rd > party > libraries I use, I don't recall ever having to recompile the apps > referencing them. > > William Hindman > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'John W. Colby'" > > Sent: Monday, December 13, 2004 5:06 PM > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > library-pros or cons? > > > > Thus far I've not had to create any MDA's, but I see little reason > > to > > think > > that this same problem would not also show up with them. After all it > all > > boils down to the entry point of functions/subs getting changes when > > the library is modified. Why would that not happen with an MDA? > > Have you > done > > an empirical test? > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > >> Colby > >> Sent: Monday, December 13, 2004 4:07 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> library-pros or cons? > >> > >> That might be true for an MDE but I don't think that is true for an > MDA. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> Contribute your unused CPU cycles to a good cause: > >> http://folding.stanford.edu/ > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > >> Lambert > >> Sent: Monday, December 13, 2004 3:38 PM > >> To: 'Access Developers discussion and problem solving'; 'Dan Waters' > >> Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> library-pros or cons? > >> > >> > >> Just a little heads-up regarding using 'library' files. > >> > >> If you make a change to the library (such as you add a new handy > >> dandy routine to it, or make some alteration to an existing > >> routine) then any and all the applications which are using the > >> library will need to be recompiled. > >> Otherwise you will get a Dr. Watson error when you try to run an > >> application > >> that has a reference to the (now changed) library. > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > >> > Waters > >> > Sent: Monday, December 13, 2004 11:35 AM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as referenced > >> > library-pros or cons? > >> > > >> > Thanks Charlotte! > >> > > >> > I don't need an add-in, just a library, so I'll just use an mdb > >> > or mde. > >> > > >> > Dan Waters > >> > ProMation Systems > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >> > Charlotte Foust > >> > Sent: Monday, December 13, 2004 10:02 AM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > >> > referenced library-pros or cons? > >> > > >> > MDA normally designates an add-in library. To function as an > >> > add-in, there is a specific table required. To function as a > >> > library, not. We compile several mdbs into mdes and reference > >> > them as libraries, including the one with all our Redemption code > >> > in it. > >> > > >> > Charlotte Foust > >> > > >> > > >> > -----Original Message----- > >> > From: Dan Waters [mailto:dwaters at usinternet.com] > >> > Sent: Sunday, December 12, 2004 3:03 PM > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Library Database? .mda or .mdb as > >> > referenced library -pros or cons? > >> > > >> > > >> > Jim, > >> > > >> > After setting a reference to DAO 3.6, and resolving circularity > >> > among function and procedure calls, everything seemed to work > >> > correctly. > >> > > >> > I did set a reference to the Library mda. It appears that doing > >> > this allows the code in the library database to work exactly as > >> > if the > code > >> > existed in the FE mdb. I did not get an initial error the first > >> > time the library code was used. > >> > > >> > I also tried changing the mda to an mdb. Everything still worked > just > >> > as before. So now I'm wondering what the difference is between > >> > an > mda > >> > and an mdb? Any pros/cons to one or the other when using as a > library > >> > database? > >> > > >> > Dan > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >> > Lawrence > >> > (AccessD) > >> > Sent: Sunday, December 12, 2004 3:56 PM > >> > To: Access Developers discussion and problem solving > >> > Subject: RE: [AccessD] Library Database? > >> > > >> > Hi Dan: > >> > > >> > Not the way you trying to do it. You can create a new MDB/MDE, > >> > with a module and in that module, a group of public variables, > >> > function and subroutines. This will be your library. The MDB/MDE > >> > database will > have > >> > to be attached to your caller/main MDB before the functionality > >> > can > be > >> > accessed. (file/get external data/link...) Just like classes only > >> > public object, in the module can be accessed externally. Note; > >> > that none of the modules objects can be accessed until the module > >> > is formally called > >> > (Example: if your library module is initially called from a Form > >> > open event, you will receive an error but the Form's load event > >> > works > fine.) > >> > and from then on all the functions /subroutines /variables will > >> > be exposed because the whole module is then automatically loaded > >> > into memory. > >> > > >> > HTH > >> > Jim > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan > >> > Waters > >> > Sent: Sunday, December 12, 2004 1:27 PM > >> > To: Database Advisors > >> > Subject: [AccessD] Library Database? > >> > > >> > > >> > I would like to create a separate file (library?) to contain many > >> > procedures and functions which are used by all my customers. > >> > > >> > > >> > > >> > However, most of these either read or write information to the BE > >> > using recordsets. I tried to set up a library database (.mda), > >> > but this errored out when I tried to dim a recordset variable. > >> > The .mda file appears to not recognized the DAO prefix. > >> > > >> > > >> > > >> > dim rst as DAO.Recordset > >> > > >> > > >> > > >> > Is there a way to create a database file to contain procedures > >> > and functions, called from the FE mdb, that can be used > >> > read/write to tables in the BE mdb? > >> > > >> > > >> > > >> > Thanks! > >> > > >> > Dan Waters > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Tue Dec 14 13:36:36 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 14 Dec 2004 14:36:36 -0500 Subject: [AccessD] OT - VBA Required / Already installed -Office/Developer 2000 In-Reply-To: <41BB2DD4.9179.15DB017@localhost> Message-ID: I need to add a little to the story. I created a Deployment Package on the Desktop (computer with the msado21 problem). When prompted what files to include in the package I de-selected msado21.tlb. This time it installed completely. However, it is on the old laptop so I can't test whether the app is working. I currently have no computers without Access for testing. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Saturday, December 11, 2004 5:27 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT - VBA Required / Already installed -Office/Developer 2000 On 10 Dec 2004 at 14:14, Reuben Cummings wrote: > I have tried to repair Office and Developer (both 2000). The problem > occurs when I insert the Developer CD. I get a messgae stating that > Developer requires VBA 6.0 and that I must install Office or something > else that contains VBA 6.0 > > However, Office 2000 is installed. I even tried removing it and > re-installing it. No Luck. Ignore my last e-mail. I found the KB article; http://support.microsoft.com/?KBID=322632 Here is the resolution: To resolve the issue, locate the ACMBoot.exe file on the root directory of the Microsoft Office 2000 Developer CD, and then run it. You can install Office 2000 Developer successfully when you start Setup in this manner. -- Bryan Carbonnell - carbonnb at sympatico.ca I don't suffer from stress. I am a carrier. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Dec 15 08:39:16 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 15 Dec 2004 15:39:16 +0100 Subject: [AccessD] Testing (slow list or no list) Message-ID: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> Just checking. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Wed Dec 15 09:49:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 15 Dec 2004 10:49:17 -0500 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> Message-ID: <000301c4e2bd$a28a1070$e8dafea9@ColbyM6805> I'm here. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 15, 2004 9:39 AM To: Dba Subject: [AccessD] Testing (slow list or no list) Just checking. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Wed Dec 15 10:06:25 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 15 Dec 2004 11:06:25 -0500 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> References: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> Message-ID: On Wed, 15 Dec 2004 15:39:16 +0100, Andy Lacey wrote: > Just checking. Just answering. Just quiet today. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From andy at minstersystems.co.uk Wed Dec 15 09:09:52 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 15 Dec 2004 16:09:52 +0100 Subject: [AccessD] Testing (slow list or no list) Message-ID: <20041215160948.E9D51260744@smtp.nildram.co.uk> Just slow then. Nice to know you're out there JC :-) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) Date: 15/12/04 15:57 > > I'm here. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 15, 2004 9:39 AM > To: Dba > Subject: [AccessD] Testing (slow list or no list) > > > Just checking. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From john at winhaven.net Wed Dec 15 10:11:21 2004 From: john at winhaven.net (John Bartow) Date: Wed, 15 Dec 2004 10:11:21 -0600 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <000301c4e2bd$a28a1070$e8dafea9@ColbyM6805> Message-ID: ditto -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, December 15, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) I'm here. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 15, 2004 9:39 AM To: Dba Subject: [AccessD] Testing (slow list or no list) Just checking. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Wed Dec 15 10:34:44 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 15 Dec 2004 11:34:44 -0500 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <20041215153913.57C1925FC5C@smtp.nildram.co.uk> Message-ID: <000101c4e2c3$fdbd53c0$0b08a845@hargrove.internal> I'm here too. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From jmhla at earthlink.net Wed Dec 15 10:37:28 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 08:37:28 -0800 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: <20041215160948.E9D51260744@smtp.nildram.co.uk> Message-ID: <200412151637.iBFGbRl05204@databaseadvisors.com> Los Angeles Checking in to say Good Morning Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, December 15, 2004 7:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Testing (slow list or no list) Just slow then. Nice to know you're out there JC :-) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) Date: 15/12/04 15:57 > > I'm here. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 15, 2004 9:39 AM > To: Dba > Subject: [AccessD] Testing (slow list or no list) > > > Just checking. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 15 11:19:45 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 09:19:45 -0800 Subject: [AccessD] Need a fast answer 9:17 Pacific time Message-ID: <200412151719.iBFHJhl11522@databaseadvisors.com> I have an xp mdb. I have all options available in the start up menu. When I try to open the same MDB in A2k3 I cant get the full menus to open like AXP. I need to relink to the back end at client using terminal services. All thoughts appreciated. Joe Hecht jmhla at earthlink.net 28g From cfoust at infostatsystems.com Wed Dec 15 11:55:04 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 09:55:04 -0800 Subject: [AccessD] Testing (slow list or no list) Message-ID: Not me. I'm never all here. Charlotte Foust From jmhla at earthlink.net Wed Dec 15 12:05:02 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 10:05:02 -0800 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: Message-ID: <200412151805.iBFI51l22864@databaseadvisors.com> You are never all here because you are there Joe Hecht jmhla at earthlink.net 28g Not me. I'm never all here. Charlotte Foust -- From jmhla at earthlink.net Wed Dec 15 12:05:31 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 10:05:31 -0800 Subject: [AccessD] Need a fast answer 9:17 Pacific time In-Reply-To: <200412151719.iBFHJhl11522@databaseadvisors.com> Message-ID: <200412151805.iBFI5Sl23854@databaseadvisors.com> OK, It is a there machine, NOT a my program bit. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 15, 2004 9:20 AM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Need a fast answer 9:17 Pacific time I have an xp mdb. I have all options available in the start up menu. When I try to open the same MDB in A2k3 I cant get the full menus to open like AXP. I need to relink to the back end at client using terminal services. All thoughts appreciated. Joe Hecht jmhla at earthlink.net 28g -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Wed Dec 15 12:21:42 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 15 Dec 2004 12:21:42 -0600 Subject: [AccessD] Testing (slow list or no list) Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723372CA@corp-es01.fleetpride.com> Does this make you the Ghost of Access Past? Jim Hale -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, December 15, 2004 11:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Testing (slow list or no list) Not me. I'm never all here. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From dejpolsys at hotmail.com Wed Dec 15 12:28:55 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 15 Dec 2004 13:28:55 -0500 Subject: [AccessD] Testing (slow list or no list) References: <000301c4e2bd$a28a1070$e8dafea9@ColbyM6805> Message-ID: ..Joy To The World! William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 15, 2004 10:49 AM Subject: RE: [AccessD] Testing (slow list or no list) > I'm here. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 15, 2004 9:39 AM > To: Dba > Subject: [AccessD] Testing (slow list or no list) > > > Just checking. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From fhtapia at gmail.com Wed Dec 15 12:40:27 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 10:40:27 -0800 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: So I have the following code in a public module.. the purpose is to have more than one instance of the form where end users can start "multiple calls" and then keep starting newer calls. the following code works really well and in fact I can do what I need with it, except passing openargs... I figure I can use a workaround unless someone here knows of a better way? thanks, ---CODE SNIP------------ Option Compare Database Option Explicit 'Author: Allen J Browne, January 2000 'Email: abrowne at odyssey.apana.org.au Public clnClient As New Collection 'Instances of frmClient. Function OpenAClient() 'Purpose: Open an independent instance of form frmClient. Dim frm As Form 'Open a new instance, show it, and set a caption. Set frm = New Form_frmClient frm.Visible = True frm.Caption = frm.Hwnd & ", opened " & Now() 'Append it to our collection. clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) Set frm = Nothing End Function Function CloseAllClients() 'Purpose: Close all instances in the clnClient collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = clnClient.Count For lngI = 1 To lngKt clnClient.Remove 1 Next End Function ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From jwcolby at colbyconsulting.com Wed Dec 15 12:40:02 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 15 Dec 2004 13:40:02 -0500 Subject: [AccessD] Testing (slow list or no list) In-Reply-To: Message-ID: <000c01c4e2d5$7d102ce0$e8dafea9@ColbyM6805> LOL. I am, therefore the list exists (and William is allowed to post to it). ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, December 15, 2004 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Testing (slow list or no list) ..Joy To The World! William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 15, 2004 10:49 AM Subject: RE: [AccessD] Testing (slow list or no list) > I'm here. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, December 15, 2004 9:39 AM > To: Dba > Subject: [AccessD] Testing (slow list or no list) > > > Just checking. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Dec 15 12:51:50 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 15 Dec 2004 13:51:50 -0500 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: Message-ID: <000d01c4e2d7$22e31550$e8dafea9@ColbyM6805> There are many workarounds. What kind of open args do you need passed? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 1:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] Multi-Instance Forms re-visited So I have the following code in a public module.. the purpose is to have more than one instance of the form where end users can start "multiple calls" and then keep starting newer calls. the following code works really well and in fact I can do what I need with it, except passing openargs... I figure I can use a workaround unless someone here knows of a better way? thanks, ---CODE SNIP------------ Option Compare Database Option Explicit 'Author: Allen J Browne, January 2000 'Email: abrowne at odyssey.apana.org.au Public clnClient As New Collection 'Instances of frmClient. Function OpenAClient() 'Purpose: Open an independent instance of form frmClient. Dim frm As Form 'Open a new instance, show it, and set a caption. Set frm = New Form_frmClient frm.Visible = True frm.Caption = frm.Hwnd & ", opened " & Now() 'Append it to our collection. clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) Set frm = Nothing End Function Function CloseAllClients() 'Purpose: Close all instances in the clnClient collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = clnClient.Count For lngI = 1 To lngKt clnClient.Remove 1 Next End Function ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 15 12:57:01 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 10:57:01 -0800 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: You could give your form a public property to hold the equivalent of OpenArgs and then set it in the code after you instantiated the new form instance. Try reading it in the Load event of the form. Or set the form's filter property if you need to. Charlotte Foust -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Wednesday, December 15, 2004 10:40 AM To: Access Developers discussion and problem solving Subject: [AccessD] Multi-Instance Forms re-visited So I have the following code in a public module.. the purpose is to have more than one instance of the form where end users can start "multiple calls" and then keep starting newer calls. the following code works really well and in fact I can do what I need with it, except passing openargs... I figure I can use a workaround unless someone here knows of a better way? thanks, ---CODE SNIP------------ Option Compare Database Option Explicit 'Author: Allen J Browne, January 2000 'Email: abrowne at odyssey.apana.org.au Public clnClient As New Collection 'Instances of frmClient. Function OpenAClient() 'Purpose: Open an independent instance of form frmClient. Dim frm As Form 'Open a new instance, show it, and set a caption. Set frm = New Form_frmClient frm.Visible = True frm.Caption = frm.Hwnd & ", opened " & Now() 'Append it to our collection. clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) Set frm = Nothing End Function Function CloseAllClients() 'Purpose: Close all instances in the clnClient collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = clnClient.Count For lngI = 1 To lngKt clnClient.Remove 1 Next End Function ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 15 12:57:42 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 10:57:42 -0800 Subject: [AccessD] Testing (slow list or no list) Message-ID: LOL Yep! Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Wednesday, December 15, 2004 10:22 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) Does this make you the Ghost of Access Past? Jim Hale -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, December 15, 2004 11:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Testing (slow list or no list) Not me. I'm never all here. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Wed Dec 15 12:58:44 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 10:58:44 -0800 Subject: [AccessD] Testing (slow list or no list) Message-ID: Hmmn. I think I was just insulted ... Or not. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, December 15, 2004 10:05 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Testing (slow list or no list) You are never all here because you are there Joe Hecht jmhla at earthlink.net 28g Not me. I'm never all here. Charlotte Foust -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Dec 15 13:18:03 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 15 Dec 2004 11:18:03 -0800 Subject: [AccessD] Need a fast answer 9:17 Pacific time References: <200412151719.iBFHJhl11522@databaseadvisors.com> Message-ID: <41C08DEB.2010201@shaw.ca> Right click on empty space on toolbar; the one with file edit view etc Then select customize, in the tabs that popup, there are two reset methods for menus under toolbars and options I don't know which ones you need or if it will work. Joe Hecht wrote: >I have an xp mdb. I have all options available in the start up menu. > > > >When I try to open the same MDB in A2k3 I cant get the full menus to open >like AXP. I need to relink to the back end at client using terminal >services. > > > >All thoughts appreciated. > > > > > > > >Joe Hecht > >jmhla at earthlink.net > >28g > > > > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Wed Dec 15 13:39:20 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 15 Dec 2004 11:39:20 -0800 Subject: [AccessD] network VS VPN VS Terminal Services Message-ID: <200412151939.iBFJdJl17898@databaseadvisors.com> I just learned that that the client I am sub contracting for uses VPN and Terminal services to connect to my database. I already have it split. One user has the front end on her local machine and connects VPN to the server. The other user at a different location connects to the front end on the server with terminal services. Are there any considerations to VPN and Terminal services different from regular network design I should be concerned about in finishing and deploying the MDB? Joe Hecht jmhla at earthlink.net 28g From Jdemarco at hudsonhealthplan.org Wed Dec 15 14:40:05 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 15 Dec 2004 15:40:05 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2945@TTNEXCHCL2.hshhp.com> Francisco, What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. First a class to hold the data you're trying to use: 'MyClass Public Property Let Form(frm as Access.Form)... Public Property Let hWnd(hWnd as String)... Public Property Let OpenArgs(Args As String)... dim m_col as Collection 'MyCollectionClass Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) dim x as MyClass Sex x = new MyClass x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs m_col.add(x,hWnd) End Sub Function Item(index As Variant) As MyClass Set Item = m_col.Item(index) End Function Now you've got access in your collection to all the info you need for your form. To store the values Dim MyCol as MyCollectionClass MyCol.Add(frm, frm.Hwnd, "value1;value2)) To retrieve them: Dim MyStringArg As String MyStringArg = MyCol.Item(frm.hwnd).OpenArgs 'do something with MyStringArg It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 1:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] Multi-Instance Forms re-visited So I have the following code in a public module.. the purpose is to have more than one instance of the form where end users can start "multiple calls" and then keep starting newer calls. the following code works really well and in fact I can do what I need with it, except passing openargs... I figure I can use a workaround unless someone here knows of a better way? thanks, ---CODE SNIP------------ Option Compare Database Option Explicit 'Author: Allen J Browne, January 2000 'Email: abrowne at odyssey.apana.org.au Public clnClient As New Collection 'Instances of frmClient. Function OpenAClient() 'Purpose: Open an independent instance of form frmClient. Dim frm As Form 'Open a new instance, show it, and set a caption. Set frm = New Form_frmClient frm.Visible = True frm.Caption = frm.Hwnd & ", opened " & Now() 'Append it to our collection. clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) Set frm = Nothing End Function Function CloseAllClients() 'Purpose: Close all instances in the clnClient collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = clnClient.Count For lngI = 1 To lngKt clnClient.Remove 1 Next End Function ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From rjhjr at cox.net Wed Dec 15 14:45:26 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 15 Dec 2004 15:45:26 -0500 Subject: [AccessD] test Message-ID: <20041215204526.GA55943@kongemord.krig.net> Testing a maildrop script. Went to the website, but didn't see a test list. From fhtapia at gmail.com Wed Dec 15 15:02:57 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 13:02:57 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2945@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2945@TTNEXCHCL2.hshhp.com> Message-ID: Jim that sounds great (re: more code :D), I was wondering on this line: m_col.add(x,hWnd) access complains about an '=' so I re-wrote it as m_col.add x, hWnd On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco wrote: > Francisco, > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > First a class to hold the data you're trying to use: > > 'MyClass > > Public Property Let Form(frm as Access.Form)... > Public Property Let hWnd(hWnd as String)... > Public Property Let OpenArgs(Args As String)... > > > > dim m_col as Collection > > 'MyCollectionClass > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > dim x as MyClass > Sex x = new MyClass > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > m_col.add(x,hWnd) > End Sub > > Function Item(index As Variant) As MyClass > Set Item = m_col.Item(index) > End Function > > > Now you've got access in your collection to all the info you need for your form. > To store the values > > Dim MyCol as MyCollectionClass > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > To retrieve them: > > Dim MyStringArg As String > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > 'do something with MyStringArg > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > HTH, > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 1:40 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Multi-Instance Forms re-visited > > So I have the following code in a public module.. > > the purpose is to have more than one instance of the form where end > users can start "multiple calls" and then keep starting newer calls. > > the following code works really well and in fact I can do what I need > with it, except passing openargs... I figure I can use a workaround > unless someone here knows of a better way? > > thanks, > > ---CODE SNIP------------ > Option Compare Database > Option Explicit > 'Author: Allen J Browne, January 2000 > 'Email: abrowne at odyssey.apana.org.au > > Public clnClient As New Collection 'Instances of frmClient. > > Function OpenAClient() > 'Purpose: Open an independent instance of form frmClient. > Dim frm As Form > > 'Open a new instance, show it, and set a caption. > Set frm = New Form_frmClient > frm.Visible = True > frm.Caption = frm.Hwnd & ", opened " & Now() > > 'Append it to our collection. > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > Set frm = Nothing > End Function > > Function CloseAllClients() > 'Purpose: Close all instances in the clnClient collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = clnClient.Count > For lngI = 1 To lngKt > clnClient.Remove 1 > Next > End Function > ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From Jdemarco at hudsonhealthplan.org Wed Dec 15 15:09:15 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 15 Dec 2004 16:09:15 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2948@TTNEXCHCL2.hshhp.com> Makes sense. I was typing from (lack of) memory!! Hope it works out. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 4:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited Jim that sounds great (re: more code :D), I was wondering on this line: m_col.add(x,hWnd) access complains about an '=' so I re-wrote it as m_col.add x, hWnd On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco wrote: > Francisco, > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > First a class to hold the data you're trying to use: > > 'MyClass > > Public Property Let Form(frm as Access.Form)... > Public Property Let hWnd(hWnd as String)... > Public Property Let OpenArgs(Args As String)... > > > > dim m_col as Collection > > 'MyCollectionClass > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > dim x as MyClass > Sex x = new MyClass > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > m_col.add(x,hWnd) > End Sub > > Function Item(index As Variant) As MyClass > Set Item = m_col.Item(index) > End Function > > > Now you've got access in your collection to all the info you need for your form. > To store the values > > Dim MyCol as MyCollectionClass > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > To retrieve them: > > Dim MyStringArg As String > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > 'do something with MyStringArg > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > HTH, > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 1:40 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Multi-Instance Forms re-visited > > So I have the following code in a public module.. > > the purpose is to have more than one instance of the form where end > users can start "multiple calls" and then keep starting newer calls. > > the following code works really well and in fact I can do what I need > with it, except passing openargs... I figure I can use a workaround > unless someone here knows of a better way? > > thanks, > > ---CODE SNIP------------ > Option Compare Database > Option Explicit > 'Author: Allen J Browne, January 2000 > 'Email: abrowne at odyssey.apana.org.au > > Public clnClient As New Collection 'Instances of frmClient. > > Function OpenAClient() > 'Purpose: Open an independent instance of form frmClient. > Dim frm As Form > > 'Open a new instance, show it, and set a caption. > Set frm = New Form_frmClient > frm.Visible = True > frm.Caption = frm.Hwnd & ", opened " & Now() > > 'Append it to our collection. > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > Set frm = Nothing > End Function > > Function CloseAllClients() > 'Purpose: Close all instances in the clnClient collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = clnClient.Count > For lngI = 1 To lngKt > clnClient.Remove 1 > Next > End Function > ---END CODE SNIP----------------- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From john at winhaven.net Wed Dec 15 15:47:22 2004 From: john at winhaven.net (John Bartow) Date: Wed, 15 Dec 2004 15:47:22 -0600 Subject: [AccessD] test In-Reply-To: <20041215204526.GA55943@kongemord.krig.net> Message-ID: That would be OT :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bob Hall Sent: Wednesday, December 15, 2004 2:45 PM To: accessd at databaseadvisors.com Subject: [AccessD] test Testing a maildrop script. Went to the website, but didn't see a test list. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rjhjr at cox.net Wed Dec 15 16:07:49 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 15 Dec 2004 17:07:49 -0500 Subject: [AccessD] test In-Reply-To: References: <20041215204526.GA55943@kongemord.krig.net> Message-ID: <20041215220749.GA56406@kongemord.krig.net> On Wed, Dec 15, 2004 at 03:47:22PM -0600, John Bartow wrote: > That would be OT :o) <:-P~~ <- dunce cap, drooling. From dejpolsys at hotmail.com Wed Dec 15 16:23:57 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 15 Dec 2004 17:23:57 -0500 Subject: [AccessD] test References: <20041215204526.GA55943@kongemord.krig.net> <20041215220749.GA56406@kongemord.krig.net> Message-ID: "<:-P~~ <- dunce cap, drooling." Bob ..my, my, my ...you'll fit right in on OT! :)))))) William Hindman ----- Original Message ----- From: "Bob Hall" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 15, 2004 5:07 PM Subject: Re: [AccessD] test > On Wed, Dec 15, 2004 at 03:47:22PM -0600, John Bartow wrote: >> That would be OT :o) > > <:-P~~ <- dunce cap, drooling. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rjhjr at cox.net Wed Dec 15 16:35:42 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 15 Dec 2004 17:35:42 -0500 Subject: [AccessD] test In-Reply-To: References: <20041215220749.GA56406@kongemord.krig.net> Message-ID: <20041215223542.GA56495@kongemord.krig.net> On Wed, Dec 15, 2004 at 05:23:57PM -0500, William Hindman wrote: > "<:-P~~ <- dunce cap, drooling." Bob > > ..my, my, my ...you'll fit right in on OT! :)))))) Outermost Twilight? Orangatang Territory? From fhtapia at gmail.com Wed Dec 15 16:47:12 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 14:47:12 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2948@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2948@TTNEXCHCL2.hshhp.com> Message-ID: This code works for displaying "one" form... but it does not give me a tolorance to opening a 2nd Form... :(, the original code worked fine for many forms... Ideas? it could be the way that I'm calling it, (such as Dim MultiForms As clsMultiInstance If MultiForms Is Nothing Then Set MultiForms = New clsMultiInstance End If MultiForms.Add frm, frm.hWnd, OpenArgs ------------------------------ VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsMultiInstance" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database 'Multi Instance Multiple Forms Dim mForms As Collection Private colForm As Access.Form Private colhWnd As String Private colOpenArgs As String Public Property Let Form(frm As Access.Form) Set colForm = frm End Property Public Property Get Form() As Access.Form Set Form = colForm End Property Public Property Let hWnd(hWnd As String) colhWnd = hWnd End Property Public Property Get strhWnd() As String hWnd = colhWnd End Property Public Property Let OpenArgs(Args As String) colOpenArgs = Args End Property Public Property Get OpenArgs() As String OpenArgs = colOpenArgs End Property Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional Key As Variant) Dim x As clsMultiInstance Set x = New clsMultiInstance x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs x.Form.Visible = True 'On a 2nd call it errors out from here... ----> mForms.Add Item:=x, Key:=CStr(hWnd) End Sub Sub Remove(hWnd As String) 'Purpose: Remove this instance from the collection. Dim obj As Object 'Object in Collection Dim blnRemove As Boolean 'Flag to remove it. 'Check if this instance is in the collection. ' (It won't be if form was opened directly, or code was reset.) For Each obj In mForms If obj.hWnd = hWnd Then blnRemove = True Exit For End If Next 'Deassign the object before removing from collection. Set obj = Nothing If blnRemove Then mForms.Remove CStr(hWnd) End If End Sub Function Count() As Integer mForms.Count End Function Function Item(index As Variant) As clsMultiInstance Set Item = mForms.Item(index) End Function Public Function Term() 'Purpose: Close all instances in the collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = mForms.Count For lngI = 1 To lngKt mForms.Remove 1 Next Set mForms = Nothing End Function Private Sub Class_Initialize() Set mForms = New Collection End Sub ---------------END CLASS---------- On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco wrote: > Makes sense. I was typing from (lack of) memory!! > > Hope it works out. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 4:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Jim that sounds great (re: more code :D), > > I was wondering on this line: > > m_col.add(x,hWnd) > > access complains about an '=' > so I re-wrote it as m_col.add x, hWnd > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > wrote: > > Francisco, > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > First a class to hold the data you're trying to use: > > > > 'MyClass > > > > Public Property Let Form(frm as Access.Form)... > > Public Property Let hWnd(hWnd as String)... > > Public Property Let OpenArgs(Args As String)... > > > > > > > > dim m_col as Collection > > > > 'MyCollectionClass > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > dim x as MyClass > > Sex x = new MyClass > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > m_col.add(x,hWnd) > > End Sub > > > > Function Item(index As Variant) As MyClass > > Set Item = m_col.Item(index) > > End Function > > > > > > Now you've got access in your collection to all the info you need for your form. > > To store the values > > > > Dim MyCol as MyCollectionClass > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > To retrieve them: > > > > Dim MyStringArg As String > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > 'do something with MyStringArg > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > HTH, > > > > Jim DeMarco > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 1:40 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > So I have the following code in a public module.. > > > > the purpose is to have more than one instance of the form where end > > users can start "multiple calls" and then keep starting newer calls. > > > > the following code works really well and in fact I can do what I need > > with it, except passing openargs... I figure I can use a workaround > > unless someone here knows of a better way? > > > > thanks, > > > > ---CODE SNIP------------ > > Option Compare Database > > Option Explicit > > 'Author: Allen J Browne, January 2000 > > 'Email: abrowne at odyssey.apana.org.au > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > Function OpenAClient() > > 'Purpose: Open an independent instance of form frmClient. > > Dim frm As Form > > > > 'Open a new instance, show it, and set a caption. > > Set frm = New Form_frmClient > > frm.Visible = True > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > 'Append it to our collection. > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > Set frm = Nothing > > End Function > > > > Function CloseAllClients() > > 'Purpose: Close all instances in the clnClient collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = clnClient.Count > > For lngI = 1 To lngKt > > clnClient.Remove 1 > > Next > > End Function > > ---END CODE SNIP----------------- > -- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From garykjos at gmail.com Wed Dec 15 16:48:43 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 15 Dec 2004 16:48:43 -0600 Subject: [AccessD] test In-Reply-To: <20041215223542.GA56495@kongemord.krig.net> References: <20041215220749.GA56406@kongemord.krig.net> <20041215223542.GA56495@kongemord.krig.net> Message-ID: Technically it means Off Topic. But it could mean Other Topics as we really HAVE NO SET TOPICS and anything goes over there. Come on in and have a look. We are a chatty bunch over there sometimes. On Wed, 15 Dec 2004 17:35:42 -0500, Bob Hall wrote: > On Wed, Dec 15, 2004 at 05:23:57PM -0500, William Hindman wrote: > > "<:-P~~ <- dunce cap, drooling." Bob > > > > ..my, my, my ...you'll fit right in on OT! :)))))) > > Outermost Twilight? Orangatang Territory? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From michael.mattys at adelphia.net Wed Dec 15 16:56:32 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Wed, 15 Dec 2004 17:56:32 -0500 Subject: [AccessD] Multi-Instance Forms re-visited References: <08F823FD83787D4BA0B99CA580AD3C749D2948@TTNEXCHCL2.hshhp.com> Message-ID: <025901c4e2f9$52fd1bb0$6401a8c0@default> Francisco, You definately should provide hWnd as a long and also should declare colForm as WithEvents. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "Francisco Tapia" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 15, 2004 5:47 PM Subject: Re: [AccessD] Multi-Instance Forms re-visited > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) > Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > dim x as MyClass > > > Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > To store the values > > > > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where end > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > the following code works really well and in fact I can do what I need > > > with it, except passing openargs... I figure I can use a workaround > > > unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 15 17:02:42 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 15:02:42 -0800 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: You could try setting Attribute VB_Creatable = True. Charlotte Foust -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Wednesday, December 15, 2004 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited This code works for displaying "one" form... but it does not give me a tolorance to opening a 2nd Form... :(, the original code worked fine for many forms... Ideas? it could be the way that I'm calling it, (such as Dim MultiForms As clsMultiInstance If MultiForms Is Nothing Then Set MultiForms = New clsMultiInstance End If MultiForms.Add frm, frm.hWnd, OpenArgs ------------------------------ VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsMultiInstance" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database 'Multi Instance Multiple Forms Dim mForms As Collection Private colForm As Access.Form Private colhWnd As String Private colOpenArgs As String Public Property Let Form(frm As Access.Form) Set colForm = frm End Property Public Property Get Form() As Access.Form Set Form = colForm End Property Public Property Let hWnd(hWnd As String) colhWnd = hWnd End Property Public Property Get strhWnd() As String hWnd = colhWnd End Property Public Property Let OpenArgs(Args As String) colOpenArgs = Args End Property Public Property Get OpenArgs() As String OpenArgs = colOpenArgs End Property Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional Key As Variant) Dim x As clsMultiInstance Set x = New clsMultiInstance x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs x.Form.Visible = True 'On a 2nd call it errors out from here... ----> mForms.Add Item:=x, Key:=CStr(hWnd) End Sub Sub Remove(hWnd As String) 'Purpose: Remove this instance from the collection. Dim obj As Object 'Object in Collection Dim blnRemove As Boolean 'Flag to remove it. 'Check if this instance is in the collection. ' (It won't be if form was opened directly, or code was reset.) For Each obj In mForms If obj.hWnd = hWnd Then blnRemove = True Exit For End If Next 'Deassign the object before removing from collection. Set obj = Nothing If blnRemove Then mForms.Remove CStr(hWnd) End If End Sub Function Count() As Integer mForms.Count End Function Function Item(index As Variant) As clsMultiInstance Set Item = mForms.Item(index) End Function Public Function Term() 'Purpose: Close all instances in the collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = mForms.Count For lngI = 1 To lngKt mForms.Remove 1 Next Set mForms = Nothing End Function Private Sub Class_Initialize() Set mForms = New Collection End Sub ---------------END CLASS---------- On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco wrote: > Makes sense. I was typing from (lack of) memory!! > > Hope it works out. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 4:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Jim that sounds great (re: more code :D), > > I was wondering on this line: > > m_col.add(x,hWnd) > > access complains about an '=' > so I re-wrote it as m_col.add x, hWnd > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > wrote: > > Francisco, > > > > What about writing the value you want to use as openargs to an xml > > file and reading it in after the form is open? > > > > Or instead of a standard collection use a custom collection class > > that is similar to the one you have here but it would hold the form > > refernce, the form's hwind, and the openarg value. > > > > First a class to hold the data you're trying to use: > > > > 'MyClass > > > > Public Property Let Form(frm as Access.Form)... > > Public Property Let hWnd(hWnd as String)... > > Public Property Let OpenArgs(Args As String)... > > > > > > dim m_col as Collection > > > > 'MyCollectionClass > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > m_col.add(x,hWnd) > > End Sub > > > > Function Item(index As Variant) As MyClass > > Set Item = m_col.Item(index) > > End Function > > > > > > Now you've got access in your collection to all the info you need > > for your form. To store the values > > Dim MyCol as MyCollectionClass > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > To retrieve them: > > > > Dim MyStringArg As String > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > 'do something with MyStringArg > > > > > > > > It's really not as complicated as it might look. If you need more > > info or my complete custom collection class stub (VB) let me know. > > > > HTH, > > > > Jim DeMarco > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 1:40 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > So I have the following code in a public module.. > > > > the purpose is to have more than one instance of the form where end > > users can start "multiple calls" and then keep starting newer calls. > > > > the following code works really well and in fact I can do what I > > need with it, except passing openargs... I figure I can use a > > workaround unless someone here knows of a better way? > > > > thanks, > > > > ---CODE SNIP------------ > > Option Compare Database > > Option Explicit > > 'Author: Allen J Browne, January 2000 > > 'Email: abrowne at odyssey.apana.org.au > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > Function OpenAClient() > > 'Purpose: Open an independent instance of form frmClient. > > Dim frm As Form > > > > 'Open a new instance, show it, and set a caption. > > Set frm = New Form_frmClient > > frm.Visible = True > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > 'Append it to our collection. > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > Set frm = Nothing > > End Function > > > > Function CloseAllClients() > > 'Purpose: Close all instances in the clnClient collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = clnClient.Count > > For lngI = 1 To lngKt > > clnClient.Remove 1 > > Next > > End Function > > ---END CODE SNIP----------------- > -- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Wed Dec 15 17:34:01 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 15:34:01 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: References: Message-ID: can't change the VB_Creatable setting in Access... the 2 choices given is Private and PublicNotCreatable... :( On Wed, 15 Dec 2004 15:02:42 -0800, Charlotte Foust wrote: > You could try setting Attribute VB_Creatable = True. > > Charlotte Foust > > > -----Original Message----- > From: Francisco Tapia [mailto:fhtapia at gmail.com] > Sent: Wednesday, December 15, 2004 2:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine for > many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional > Key As Variant) Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml > > > file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class > > > that is similar to the one you have here but it would hold the form > > > refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need > > > for your form. To store the values > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more > > > info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where end > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > the following code works really well and in fact I can do what I > > > need with it, except passing openargs... I figure I can use a > > > workaround unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From d.dick at uws.edu.au Wed Dec 15 17:42:38 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 10:42:38 +1100 Subject: [AccessD] A2003: Calling all Back End Updater Legends Message-ID: <200412152342.iBFNgoRl009991@cooper.uws.edu.au> Hi Guys Can't get the BEU to work I even had a very happy user at my place trying to show me how to get it to work (Hi Deano) - no joy - It works fine on his db's though Clearly I have omitted some step or not done something right So.can I start a dialogue offlist with a BEU guru please?? Many thanks Darren From cfoust at infostatsystems.com Wed Dec 15 17:47:02 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Dec 2004 15:47:02 -0800 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: As far as I know, you've never been able to change it in Access. Export the module to text, edit the text and then bring the file back in. Charlotte Foust -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Wednesday, December 15, 2004 3:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited can't change the VB_Creatable setting in Access... the 2 choices given is Private and PublicNotCreatable... :( On Wed, 15 Dec 2004 15:02:42 -0800, Charlotte Foust wrote: > You could try setting Attribute VB_Creatable = True. > > Charlotte Foust > > > -----Original Message----- > From: Francisco Tapia [mailto:fhtapia at gmail.com] > Sent: Wednesday, December 15, 2004 2:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml > > > file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class > > > that is similar to the one you have here but it would hold the > > > form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need > > > for your form. To store the values Dim MyCol as > > > MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more > > > info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > Francisco Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where > > > end users can start "multiple calls" and then keep starting newer > > > calls. > > > > > > the following code works really well and in fact I can do what I > > > need with it, except passing openargs... I figure I can use a > > > workaround unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Wed Dec 15 17:58:20 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Dec 2004 15:58:20 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: References: Message-ID: I tried this but it reverted it back to Private... On Wed, 15 Dec 2004 15:47:02 -0800, Charlotte Foust wrote: > As far as I know, you've never been able to change it in Access. Export > the module to text, edit the text and then bring the file back in. > > Charlotte Foust > > -----Original Message----- > From: Francisco Tapia [mailto:fhtapia at gmail.com] > Sent: Wednesday, December 15, 2004 3:34 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > can't change the VB_Creatable setting in Access... the 2 choices given > is Private and PublicNotCreatable... :( > > On Wed, 15 Dec 2004 15:02:42 -0800, Charlotte Foust > wrote: > > You could try setting Attribute VB_Creatable = True. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: Francisco Tapia [mailto:fhtapia at gmail.com] > > Sent: Wednesday, December 15, 2004 2:47 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > This code works for displaying "one" form... but it does not give me a > > > tolorance to opening a 2nd Form... :(, the original code worked fine > > for many forms... Ideas? > > > > it could be the way that I'm calling it, (such as > > > > Dim MultiForms As clsMultiInstance > > > > If MultiForms Is Nothing Then > > Set MultiForms = New clsMultiInstance > > End If > > MultiForms.Add frm, frm.hWnd, OpenArgs > > > > ------------------------------ > > VERSION 1.0 CLASS > > BEGIN > > MultiUse = -1 'True > > END > > Attribute VB_Name = "clsMultiInstance" > > Attribute VB_GlobalNameSpace = False > > Attribute VB_Creatable = False > > Attribute VB_PredeclaredId = False > > Attribute VB_Exposed = False > > Option Compare Database > > 'Multi Instance Multiple Forms > > > > Dim mForms As Collection > > Private colForm As Access.Form > > Private colhWnd As String > > Private colOpenArgs As String > > Public Property Let Form(frm As Access.Form) > > Set colForm = frm > > End Property > > Public Property Get Form() As Access.Form > > Set Form = colForm > > End Property > > Public Property Let hWnd(hWnd As String) > > colhWnd = hWnd > > End Property > > Public Property Get strhWnd() As String > > hWnd = colhWnd > > End Property > > Public Property Let OpenArgs(Args As String) > > colOpenArgs = Args > > End Property > > Public Property Get OpenArgs() As String > > OpenArgs = colOpenArgs > > End Property > > > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > > Optional Key As Variant) Dim x As clsMultiInstance > > Set x = New clsMultiInstance > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > x.Form.Visible = True > > > > 'On a 2nd call it errors out from here... > > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > > > End Sub > > Sub Remove(hWnd As String) > > 'Purpose: Remove this instance from the collection. > > Dim obj As Object 'Object in Collection > > Dim blnRemove As Boolean 'Flag to remove it. > > > > 'Check if this instance is in the collection. > > ' (It won't be if form was opened directly, or code was reset.) > > For Each obj In mForms > > If obj.hWnd = hWnd Then > > blnRemove = True > > Exit For > > End If > > Next > > 'Deassign the object before removing from collection. > > Set obj = Nothing > > If blnRemove Then > > mForms.Remove CStr(hWnd) > > End If > > End Sub > > Function Count() As Integer > > mForms.Count > > End Function > > Function Item(index As Variant) As clsMultiInstance > > Set Item = mForms.Item(index) > > End Function > > Public Function Term() > > 'Purpose: Close all instances in the collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = mForms.Count > > For lngI = 1 To lngKt > > mForms.Remove 1 > > Next > > Set mForms = Nothing > > End Function > > > > Private Sub Class_Initialize() > > Set mForms = New Collection > > End Sub > > > > ---------------END CLASS---------- > > > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > > wrote: > > > Makes sense. I was typing from (lack of) memory!! > > > > > > Hope it works out. > > > > > > Jim > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 4:03 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > > > Jim that sounds great (re: more code :D), > > > > > > I was wondering on this line: > > > > > > m_col.add(x,hWnd) > > > > > > access complains about an '=' > > > so I re-wrote it as m_col.add x, hWnd > > > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > > wrote: > > > > Francisco, > > > > > > > > What about writing the value you want to use as openargs to an xml > > > > > file and reading it in after the form is open? > > > > > > > > Or instead of a standard collection use a custom collection class > > > > that is similar to the one you have here but it would hold the > > > > form refernce, the form's hwind, and the openarg value. > > > > > > > > First a class to hold the data you're trying to use: > > > > > > > > 'MyClass > > > > > > > > Public Property Let Form(frm as Access.Form)... > > > > Public Property Let hWnd(hWnd as String)... > > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > dim m_col as Collection > > > > > > > > 'MyCollectionClass > > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > > > x.Form = frm > > > > x.hWnd = hWnd > > > > x.OpenArgs = OpenArgs > > > > m_col.add(x,hWnd) > > > > End Sub > > > > > > > > Function Item(index As Variant) As MyClass > > > > Set Item = m_col.Item(index) > > > > End Function > > > > > > > > > > > > Now you've got access in your collection to all the info you need > > > > for your form. To store the values Dim MyCol as > > > > MyCollectionClass > > > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > > > > To retrieve them: > > > > > > > > Dim MyStringArg As String > > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > > 'do something with MyStringArg > > > > > > > > > > > > > > > > It's really not as complicated as it might look. If you need more > > > > info or my complete custom collection class stub (VB) let me know. > > > > > > > > HTH, > > > > > > > > Jim DeMarco > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > > Francisco Tapia > > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > > To: Access Developers discussion and problem solving > > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > > > So I have the following code in a public module.. > > > > > > > > the purpose is to have more than one instance of the form where > > > > end users can start "multiple calls" and then keep starting newer > > > > calls. > > > > > > > > the following code works really well and in fact I can do what I > > > > need with it, except passing openargs... I figure I can use a > > > > workaround unless someone here knows of a better way? > > > > > > > > thanks, > > > > > > > > ---CODE SNIP------------ > > > > Option Compare Database > > > > Option Explicit > > > > 'Author: Allen J Browne, January 2000 > > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > > > Function OpenAClient() > > > > 'Purpose: Open an independent instance of form frmClient. > > > > Dim frm As Form > > > > > > > > 'Open a new instance, show it, and set a caption. > > > > Set frm = New Form_frmClient > > > > frm.Visible = True > > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > > > 'Append it to our collection. > > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > > Set frm = Nothing > > > > End Function > > > > > > > > Function CloseAllClients() > > > > 'Purpose: Close all instances in the clnClient collection. > > > > 'Note: Leaves the copy opened directly from database window. > > > > Dim lngKt As Long > > > > Dim lngI As Long > > > > > > > > lngKt = clnClient.Count > > > > For lngI = 1 To lngKt > > > > clnClient.Remove 1 > > > > Next > > > > End Function > > > > ---END CODE SNIP----------------- > > > -- > > -- > > -Francisco > > http://pcthis.blogspot.com | PC news with out the jargon! > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From KIsmert at TexasSystems.com Wed Dec 15 17:58:27 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 15 Dec 2004 17:58:27 -0600 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: Message-ID: <006c01c4e301$f8c9be60$2a3ca8c0@TEXASSYSTEMS.COM> Francisco, One caution: in A2K Help, under "hWnd Property", it says: >> Caution: Because the value of this property can change while a program is running, don't store the hWnd property value in a public variable. So, it is probably not a good idea to key your form collection with hWnd, as it could potentially change over the life of the form. Better to generate your own unique index within clsMultiInstance, and pass that to the form via a property. Upon reading your code, I noticed three issues: (1) >Public Property Let Form(frm As Access.Form) Object properties should use 'Property Set'. (2) > Sub Add(frm As Access.Form, hWnd As String, > . . . > x.Form = frm Should read: Set x.Form = frm (3) The easiest way to get your form collection to persist is to declare a public variable: Public MultiForms As New clsMultiInstance The Public scope will keep the MultiForms reference, and the forms it manages, alive until the user exits (or the Interpreter gets reset). The New keyword guarantees that MultiForms will auto-initialize on first reference. Although others in this forum may not prefer this approach, I have used it for years, with no discernable downside. The upside is you can use the MultiForms reference directly when adding a new form, without having to put calls to a setup routine throughout your code. -Ken >From: Francisco Tapia [mailto:fhtapia at gmail.com] >Sent: Wednesday, December 15, 2004 4:47 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Multi-Instance Forms re-visited >This code works for displaying "one" form... but it does not give >me a tolorance to opening a 2nd Form... :(, the original code >worked fine for many forms... Ideas? From d.dick at uws.edu.au Wed Dec 15 18:35:48 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 11:35:48 +1100 Subject: [AccessD] A2003: MYOB Message-ID: <200412160036.iBG0a0Rl029320@cooper.uws.edu.au> Hi Guys Anyone had any success in 'speaking' to or interacting with MYOB business and accounting software?? Many thanks Darren From stuart at lexacorp.com.pg Wed Dec 15 19:27:53 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Dec 2004 11:27:53 +1000 Subject: [AccessD] A2003: MYOB In-Reply-To: <200412160036.iBG0a0Rl029320@cooper.uws.edu.au> Message-ID: <41C17139.12102.2E4E891B@lexacorp.com.pg> On 16 Dec 2004 at 11:35, Darren DICK wrote: > Hi Guys > Anyone had any success in 'speaking' to or interacting with MYOB business > and accounting software?? > Only thing I've done with it is Extract data to text files and then build import routines to drag them into Access for analysis. If you can build f I've given up on trying to keep up with MYOB since they introduced their idiotic periodic re-activation scheme. (I just stick with MYOB 10) but apparently the latest versions have OBDC support (at least Read). See http://www.myob.com.au/about_myob/developer_datafile.shtml -- Stuart From KIsmert at TexasSystems.com Wed Dec 15 19:37:59 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 15 Dec 2004 19:37:59 -0600 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <025901c4e2f9$52fd1bb0$6401a8c0@default> Message-ID: <006d01c4e30f$e09dd070$2a3ca8c0@TEXASSYSTEMS.COM> Francisco, >You definately should provide hWnd as a long >and also should declare colForm as WithEvents. > >Michael R. Mattys To expand on what Micheal said about WithEvents, you will need some way to remove the colForm object reference you have stored in your MultiForms collection when the form closes. As you know a form created using the Set colForm = New Form_FormModule syntax will live as long as the colForm reference is in scope. This means that when the user closes that form, it will never be truly closed until colForm is set to Nothing. So, the easiest way to shutdown properly is to trap the Form_Close event: Private WithEvents colForm As Access.Form ' This assumes that MultiForms is your ' public clsMultiInstance instance, and ' that colhWnd is your key to the ' Form collection Private Sub colFrm_Close() MultiForms.Remove colhWnd End Sub -Ken From carbonnb at sympatico.ca Wed Dec 15 19:40:06 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 15 Dec 2004 20:40:06 -0500 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: <200412152342.iBFNgoRl009991@cooper.uws.edu.au> Message-ID: <41C0A126.24253.73E0B9@localhost> On 16 Dec 2004 at 10:42, Darren DICK wrote: > Hi Guys > Can't get the BEU to work > I even had a very happy user at my place trying to show me how to get > it to work (Hi Deano) - no joy - It works fine on his db's though > > Clearly I have omitted some step or not done something right > > So.can I start a dialogue offlist with a BEU guru please?? I'm not a BEU guru. I can just break it in so many weird and wonderful ways :)) What is the problem? -- Bryan Carbonnell - carbonnb at sympatico.ca On the keyboard of life, always keep one finger on the escape key. From jwcolby at colbyconsulting.com Wed Dec 15 19:46:01 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 15 Dec 2004 20:46:01 -0500 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: Message-ID: <002201c4e311$03a487c0$e8dafea9@ColbyM6805> Need help? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 5:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited This code works for displaying "one" form... but it does not give me a tolorance to opening a 2nd Form... :(, the original code worked fine for many forms... Ideas? it could be the way that I'm calling it, (such as Dim MultiForms As clsMultiInstance If MultiForms Is Nothing Then Set MultiForms = New clsMultiInstance End If MultiForms.Add frm, frm.hWnd, OpenArgs ------------------------------ VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsMultiInstance" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database 'Multi Instance Multiple Forms Dim mForms As Collection Private colForm As Access.Form Private colhWnd As String Private colOpenArgs As String Public Property Let Form(frm As Access.Form) Set colForm = frm End Property Public Property Get Form() As Access.Form Set Form = colForm End Property Public Property Let hWnd(hWnd As String) colhWnd = hWnd End Property Public Property Get strhWnd() As String hWnd = colhWnd End Property Public Property Let OpenArgs(Args As String) colOpenArgs = Args End Property Public Property Get OpenArgs() As String OpenArgs = colOpenArgs End Property Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional Key As Variant) Dim x As clsMultiInstance Set x = New clsMultiInstance x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs x.Form.Visible = True 'On a 2nd call it errors out from here... ----> mForms.Add Item:=x, Key:=CStr(hWnd) End Sub Sub Remove(hWnd As String) 'Purpose: Remove this instance from the collection. Dim obj As Object 'Object in Collection Dim blnRemove As Boolean 'Flag to remove it. 'Check if this instance is in the collection. ' (It won't be if form was opened directly, or code was reset.) For Each obj In mForms If obj.hWnd = hWnd Then blnRemove = True Exit For End If Next 'Deassign the object before removing from collection. Set obj = Nothing If blnRemove Then mForms.Remove CStr(hWnd) End If End Sub Function Count() As Integer mForms.Count End Function Function Item(index As Variant) As clsMultiInstance Set Item = mForms.Item(index) End Function Public Function Term() 'Purpose: Close all instances in the collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = mForms.Count For lngI = 1 To lngKt mForms.Remove 1 Next Set mForms = Nothing End Function Private Sub Class_Initialize() Set mForms = New Collection End Sub ---------------END CLASS---------- On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco wrote: > Makes sense. I was typing from (lack of) memory!! > > Hope it works out. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 4:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Jim that sounds great (re: more code :D), > > I was wondering on this line: > > m_col.add(x,hWnd) > > access complains about an '=' > so I re-wrote it as m_col.add x, hWnd > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > wrote: > > Francisco, > > > > What about writing the value you want to use as openargs to an xml > > file and reading it in after the form is open? > > > > Or instead of a standard collection use a custom collection class > > that is similar to the one you have here but it would hold the form > > refernce, the form's hwind, and the openarg value. > > > > First a class to hold the data you're trying to use: > > > > 'MyClass > > > > Public Property Let Form(frm as Access.Form)... > > Public Property Let hWnd(hWnd as String)... > > Public Property Let OpenArgs(Args As String)... > > > > > > dim m_col as Collection > > > > 'MyCollectionClass > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > m_col.add(x,hWnd) > > End Sub > > > > Function Item(index As Variant) As MyClass > > Set Item = m_col.Item(index) > > End Function > > > > > > Now you've got access in your collection to all the info you need > > for your form. To store the values > > Dim MyCol as MyCollectionClass > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > To retrieve them: > > > > Dim MyStringArg As String > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > 'do something with MyStringArg > > > > > > > > It's really not as complicated as it might look. If you need more > > info or my complete custom collection class stub (VB) let me know. > > > > HTH, > > > > Jim DeMarco > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 1:40 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > So I have the following code in a public module.. > > > > the purpose is to have more than one instance of the form where end > > users can start "multiple calls" and then keep starting newer calls. > > > > the following code works really well and in fact I can do what I > > need with it, except passing openargs... I figure I can use a > > workaround unless someone here knows of a better way? > > > > thanks, > > > > ---CODE SNIP------------ > > Option Compare Database > > Option Explicit > > 'Author: Allen J Browne, January 2000 > > 'Email: abrowne at odyssey.apana.org.au > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > Function OpenAClient() > > 'Purpose: Open an independent instance of form frmClient. > > Dim frm As Form > > > > 'Open a new instance, show it, and set a caption. > > Set frm = New Form_frmClient > > frm.Visible = True > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > 'Append it to our collection. > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > Set frm = Nothing > > End Function > > > > Function CloseAllClients() > > 'Purpose: Close all instances in the clnClient collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = clnClient.Count > > For lngI = 1 To lngKt > > clnClient.Remove 1 > > Next > > End Function > > ---END CODE SNIP----------------- > -- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Wed Dec 15 20:38:02 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 15 Dec 2004 21:38:02 -0500 Subject: [AccessD] A2003: Calling all Back End Updater Legends References: <200412152342.iBFNgoRl009991@cooper.uws.edu.au> Message-ID: ..why not keep it on list ...others (including myself) may learn something from your mistakes :) William Hindman ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 15, 2004 6:42 PM Subject: [AccessD] A2003: Calling all Back End Updater Legends > Hi Guys > Can't get the BEU to work > I even had a very happy user at my place trying to show me how to get it > to > work > (Hi Deano) - no joy - It works fine on his db's though > > Clearly I have omitted some step or not done something right > > So.can I start a dialogue offlist with a BEU guru please?? > > Many thanks > > Darren > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Wed Dec 15 20:46:22 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 15 Dec 2004 21:46:22 -0500 Subject: [AccessD] A2003: MYOB References: <41C17139.12102.2E4E891B@lexacorp.com.pg> Message-ID: ..a side note ...MS just put out a beta of their new Small Business Accounting which looks like they're seriously going after the QB market ..pretty nice integration with Outlook/Office 2003 ...I'm going to give it a spin ...others might want to get in on the beta. William Hindman ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, December 15, 2004 8:27 PM Subject: Re: [AccessD] A2003: MYOB > On 16 Dec 2004 at 11:35, Darren DICK wrote: > >> Hi Guys >> Anyone had any success in 'speaking' to or interacting with MYOB business >> and accounting software?? >> > > Only thing I've done with it is Extract data to text files and then build > import routines to drag them into Access for analysis. If you can build f > > I've given up on trying to keep up with MYOB since they introduced their > idiotic periodic re-activation scheme. (I just stick with MYOB 10) but > apparently the latest versions have OBDC support (at least Read). See > http://www.myob.com.au/about_myob/developer_datafile.shtml > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jeff at OUTBAKTech.com Wed Dec 15 22:18:19 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 15 Dec 2004 22:18:19 -0600 Subject: [AccessD] A2003: MYOB Message-ID: <8DA8776D2F418E46A2A464AC6CE6305012E913@outbaksrv1.outbaktech.com> How do we get in on the Beta test? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com -----Original Message----- From: William Hindman [mailto:dejpolsys at hotmail.com] Sent: Wednesday, December 15, 2004 8:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: MYOB ..a side note ...MS just put out a beta of their new Small Business Accounting which looks like they're seriously going after the QB market ..pretty nice integration with Outlook/Office 2003 ...I'm going to give it a spin ...others might want to get in on the beta. William Hindman ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, December 15, 2004 8:27 PM Subject: Re: [AccessD] A2003: MYOB > On 16 Dec 2004 at 11:35, Darren DICK wrote: > >> Hi Guys >> Anyone had any success in 'speaking' to or interacting with MYOB business >> and accounting software?? >> > > Only thing I've done with it is Extract data to text files and then build > import routines to drag them into Access for analysis. If you can build f > > I've given up on trying to keep up with MYOB since they introduced their > idiotic periodic re-activation scheme. (I just stick with MYOB 10) but > apparently the latest versions have OBDC support (at least Read). See > http://www.myob.com.au/about_myob/developer_datafile.shtml > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Wed Dec 15 22:43:28 2004 From: pcs at azizaz.com (Borge Hansen) Date: Thu, 16 Dec 2004 14:43:28 +1000 Subject: [AccessD] A2003: MYOB References: <8DA8776D2F418E46A2A464AC6CE6305012E913@outbaksrv1.outbaktech.com> Message-ID: <047501c4e329$c975a070$fa10a8c0@Albatross> Go to : http://www.microsoft.com/office/editions/prodinfo/smallbusiness/accounting/beta.mspx Borge ----- Original Message ----- From: "Jeff Barrows" To: "Access Developers discussion and problem solving" Sent: Thursday, December 16, 2004 2:18 PM Subject: RE: [AccessD] A2003: MYOB > How do we get in on the Beta test? > > Jeff Barrows > MCP, MCAD, MCSD > > Outbak Technologies, LLC > Racine, WI > jeff at outbaktech.com > -----Original Message----- > From: William Hindman [mailto:dejpolsys at hotmail.com] > Sent: Wednesday, December 15, 2004 8:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003: MYOB > > ..a side note ...MS just put out a beta of their new Small Business > Accounting which looks like they're seriously going after the QB market > ..pretty nice integration with Outlook/Office 2003 ...I'm going to give > it > a spin ...others might want to get in on the beta. > > William Hindman > > > ----- Original Message ----- > From: "Stuart McLachlan" > To: "Access Developers discussion and problemsolving" > > Sent: Wednesday, December 15, 2004 8:27 PM > Subject: Re: [AccessD] A2003: MYOB > > > > On 16 Dec 2004 at 11:35, Darren DICK wrote: > > > >> Hi Guys > >> Anyone had any success in 'speaking' to or interacting with MYOB > business > >> and accounting software?? > >> > > > > Only thing I've done with it is Extract data to text files and then > build > > import routines to drag them into Access for analysis. If you can > build f > > > > I've given up on trying to keep up with MYOB since they introduced > their > > idiotic periodic re-activation scheme. (I just stick with MYOB 10) but > > apparently the latest versions have OBDC support (at least Read). See > > http://www.myob.com.au/about_myob/developer_datafile.shtml > > > > > > > > -- > > Stuart > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 24/11/2004 From andy at minstersystems.co.uk Thu Dec 16 01:39:49 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 16 Dec 2004 07:39:49 -0000 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: Message-ID: <000f01c4e342$6c44a040$b274d0d5@minster33c3r25> On or off-list fire away Darren. Describe where you've got to and what's happening. And were you a good boy and downloaded the manual and followed it? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > William Hindman > Sent: 16 December 2004 02:38 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > > ..why not keep it on list ...others (including myself) may > learn something > from your mistakes :) > > William Hindman > > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Wednesday, December 15, 2004 6:42 PM > Subject: [AccessD] A2003: Calling all Back End Updater Legends > > > > Hi Guys > > Can't get the BEU to work > > I even had a very happy user at my place trying to show me > how to get > > it > > to > > work > > (Hi Deano) - no joy - It works fine on his db's though > > > > Clearly I have omitted some step or not done something right > > > > So.can I start a dialogue offlist with a BEU guru please?? > > > > Many thanks > > > > Darren > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Paul.Rogers at SummitMedia.co.uk Thu Dec 16 02:34:21 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 16 Dec 2004 08:34:21 -0000 Subject: [AccessD] A2003: MYOB Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F439@s003.wolds.summitmedia.co.uk> I did with an early version. It lost all my files and consequentially landed me in a lot of trouble. (Foolishly, I hadn't remembered to back-up first.) I didn't ever discover the fault - I never used it again. But I'm sure recent versions are very different. All the best, Darren. paul -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: 16 December 2004 00:36 To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: MYOB Hi Guys Anyone had any success in 'speaking' to or interacting with MYOB business and accounting software?? Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 06:05:05 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 23:05:05 +1100 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: <000f01c4e342$6c44a040$b274d0d5@minster33c3r25> Message-ID: Hi Guys OK - I have no problem keeping it on list I imported all the objects from the BEU I downloaded from DBA Cool In the BEU main screen I started a 'new version'. Just wanted to add a new field called XX to a table called tblTitles Added the stuff to make it a Number field no decimal places etc etc Then clicked on Accept So now I have pending BE Updates - cool I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the Autoexec Macro Close and reload the dB and I expected to see the form frmDBAupgrading flash up and perform the mod So I went to tblTitles - no new field called XX I went to the table tblDBAModifyDatabaseMods there is an entry in there I went to the table tblDBAModifyDatabase there is an entry in there too But the mods don't actually take place I had a fellow lister at my place the other day and he was raving how good the BEU was and showed me how to use it on one of his dB's. No prob it all went well So I imported all the necessary bits and bobs and he couldn't get it to work on my dB. We even imported HIS BEU objects from one of his dB's and we ran it but still no joy So... Where to from here?? many many thanks in advance Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, 16 December 2004 6:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends On or off-list fire away Darren. Describe where you've got to and what's happening. And were you a good boy and downloaded the manual and followed it? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > William Hindman > Sent: 16 December 2004 02:38 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > > ..why not keep it on list ...others (including myself) may > learn something > from your mistakes :) > > William Hindman > > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Wednesday, December 15, 2004 6:42 PM > Subject: [AccessD] A2003: Calling all Back End Updater Legends > > > > Hi Guys > > Can't get the BEU to work > > I even had a very happy user at my place trying to show me > how to get > > it > > to > > work > > (Hi Deano) - no joy - It works fine on his db's though > > > > Clearly I have omitted some step or not done something right > > > > So.can I start a dialogue offlist with a BEU guru please?? > > > > Many thanks > > > > Darren > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 06:05:12 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 23:05:12 +1100 Subject: [AccessD] A2003: MYOB In-Reply-To: <41C17139.12102.2E4E891B@lexacorp.com.pg> Message-ID: Hmmmm - not looking good -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, 16 December 2004 12:28 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: MYOB On 16 Dec 2004 at 11:35, Darren DICK wrote: > Hi Guys > Anyone had any success in 'speaking' to or interacting with MYOB business > and accounting software?? > Only thing I've done with it is Extract data to text files and then build import routines to drag them into Access for analysis. If you can build f I've given up on trying to keep up with MYOB since they introduced their idiotic periodic re-activation scheme. (I just stick with MYOB 10) but apparently the latest versions have OBDC support (at least Read). See http://www.myob.com.au/about_myob/developer_datafile.shtml -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 06:27:38 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 16 Dec 2004 23:27:38 +1100 Subject: [AccessD] Can someone email me a copy of file vba332.dll please? Message-ID: Email it to d.dick at uws.edu.au Many Many thanks From Chris.Foote at uk.thalesgroup.com Thu Dec 16 06:37:45 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 16 Dec 2004 12:37:45 -0000 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C511@ntscxch1.int.rdel.co.uk> Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From d.dick at uws.edu.au Thu Dec 16 07:12:54 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 00:12:54 +1100 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C511@ntscxch1.int.rdel.co.uk> Message-ID: Hi Chris Can you change the extension from dll to cf for eg? many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris Sent: Thursday, 16 December 2004 11:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From conny at qad.se Thu Dec 16 07:20:20 2004 From: conny at qad.se (Conny Johansson) Date: Thu, 16 Dec 2004 14:20:20 +0100 Subject: SV: [AccessD] Can someone email me a copy of file vba332.dll please? In-Reply-To: Message-ID: <20041216132018.A1DD038015@smtp1-2-sn3.vrr.skanova.net> On its way in zip-format Conny Johansson -----Ursprungligt meddelande----- Fr?n: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] F?r Darren DICK Skickat: den 16 december 2004 13:28 Till: AccessD List ?mne: [AccessD] Can someone email me a copy of file vba332.dll please? Email it to d.dick at uws.edu.au Many Many thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Outbound message clean. Virus Database (VPS): 0451-1, 2004-12-14 Tested on: 2004-12-16 14:20:20 avast! is copyright (c) 2000-2003 ALWIL Software. From andy at minstersystems.co.uk Thu Dec 16 06:22:45 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 16 Dec 2004 13:22:45 +0100 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? Message-ID: <20041216132243.50C3D2746F1@smtp.nildram.co.uk> On its way. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Date: 16/12/04 13:17 > > Hi Chris > Can you change the extension from dll to cf for eg? > many thanks > DD > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris > Sent: Thursday, 16 December 2004 11:38 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll > plea se? > > > Sorry Darren! > > I tried to send it to you but our firewall stopped it getting out. > > Chris Foote > (Expecting a 'phone call from IT Dept. any moment now ;-( > > > > > -----Original Message----- > > From: Darren DICK [mailto:d.dick at uws.edu.au] > > Sent: Thursday, December 16, 2004 12:28 PM > > To: AccessD List > > Subject: [AccessD] Can someone email me a copy of file vba332.dll > > please? > > > > > > Email it to d.dick at uws.edu.au > > > > Many Many thanks > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From cyx5 at cdc.gov Thu Dec 16 07:25:15 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 16 Dec 2004 08:25:15 -0500 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? Message-ID: http://www.dll-files.com/dllindex/dll-files.shtml?vba332 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 8:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Hi Chris Can you change the extension from dll to cf for eg? many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris Sent: Thursday, 16 December 2004 11:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu Dec 16 07:29:01 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 16 Dec 2004 08:29:01 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D294C@TTNEXCHCL2.hshhp.com> I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: Function Exists(strKey As String) As Boolean 'returns true if the key value (not index) exists in the collection Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object On Error GoTo Exists_Err Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object Exists = True Exit_Function: Set objTemp = Nothing Exit Function Exists_Err: If Err.Number = 5 Then Exists = False Else 'further error handling here for other error types MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" End If Resume Exit_Function End Function Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Wednesday, December 15, 2004 5:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited This code works for displaying "one" form... but it does not give me a tolorance to opening a 2nd Form... :(, the original code worked fine for many forms... Ideas? it could be the way that I'm calling it, (such as Dim MultiForms As clsMultiInstance If MultiForms Is Nothing Then Set MultiForms = New clsMultiInstance End If MultiForms.Add frm, frm.hWnd, OpenArgs ------------------------------ VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsMultiInstance" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database 'Multi Instance Multiple Forms Dim mForms As Collection Private colForm As Access.Form Private colhWnd As String Private colOpenArgs As String Public Property Let Form(frm As Access.Form) Set colForm = frm End Property Public Property Get Form() As Access.Form Set Form = colForm End Property Public Property Let hWnd(hWnd As String) colhWnd = hWnd End Property Public Property Get strhWnd() As String hWnd = colhWnd End Property Public Property Let OpenArgs(Args As String) colOpenArgs = Args End Property Public Property Get OpenArgs() As String OpenArgs = colOpenArgs End Property Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, Optional Key As Variant) Dim x As clsMultiInstance Set x = New clsMultiInstance x.Form = frm x.hWnd = hWnd x.OpenArgs = OpenArgs x.Form.Visible = True 'On a 2nd call it errors out from here... ----> mForms.Add Item:=x, Key:=CStr(hWnd) End Sub Sub Remove(hWnd As String) 'Purpose: Remove this instance from the collection. Dim obj As Object 'Object in Collection Dim blnRemove As Boolean 'Flag to remove it. 'Check if this instance is in the collection. ' (It won't be if form was opened directly, or code was reset.) For Each obj In mForms If obj.hWnd = hWnd Then blnRemove = True Exit For End If Next 'Deassign the object before removing from collection. Set obj = Nothing If blnRemove Then mForms.Remove CStr(hWnd) End If End Sub Function Count() As Integer mForms.Count End Function Function Item(index As Variant) As clsMultiInstance Set Item = mForms.Item(index) End Function Public Function Term() 'Purpose: Close all instances in the collection. 'Note: Leaves the copy opened directly from database window. Dim lngKt As Long Dim lngI As Long lngKt = mForms.Count For lngI = 1 To lngKt mForms.Remove 1 Next Set mForms = Nothing End Function Private Sub Class_Initialize() Set mForms = New Collection End Sub ---------------END CLASS---------- On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco wrote: > Makes sense. I was typing from (lack of) memory!! > > Hope it works out. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 4:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Jim that sounds great (re: more code :D), > > I was wondering on this line: > > m_col.add(x,hWnd) > > access complains about an '=' > so I re-wrote it as m_col.add x, hWnd > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > wrote: > > Francisco, > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > First a class to hold the data you're trying to use: > > > > 'MyClass > > > > Public Property Let Form(frm as Access.Form)... > > Public Property Let hWnd(hWnd as String)... > > Public Property Let OpenArgs(Args As String)... > > > > > > > > dim m_col as Collection > > > > 'MyCollectionClass > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > dim x as MyClass > > Sex x = new MyClass > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > m_col.add(x,hWnd) > > End Sub > > > > Function Item(index As Variant) As MyClass > > Set Item = m_col.Item(index) > > End Function > > > > > > Now you've got access in your collection to all the info you need for your form. > > To store the values > > > > Dim MyCol as MyCollectionClass > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > To retrieve them: > > > > Dim MyStringArg As String > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > 'do something with MyStringArg > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > HTH, > > > > Jim DeMarco > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 1:40 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > So I have the following code in a public module.. > > > > the purpose is to have more than one instance of the form where end > > users can start "multiple calls" and then keep starting newer calls. > > > > the following code works really well and in fact I can do what I need > > with it, except passing openargs... I figure I can use a workaround > > unless someone here knows of a better way? > > > > thanks, > > > > ---CODE SNIP------------ > > Option Compare Database > > Option Explicit > > 'Author: Allen J Browne, January 2000 > > 'Email: abrowne at odyssey.apana.org.au > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > Function OpenAClient() > > 'Purpose: Open an independent instance of form frmClient. > > Dim frm As Form > > > > 'Open a new instance, show it, and set a caption. > > Set frm = New Form_frmClient > > frm.Visible = True > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > 'Append it to our collection. > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > Set frm = Nothing > > End Function > > > > Function CloseAllClients() > > 'Purpose: Close all instances in the clnClient collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = clnClient.Count > > For lngI = 1 To lngKt > > clnClient.Remove 1 > > Next > > End Function > > ---END CODE SNIP----------------- > -- -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From andy at minstersystems.co.uk Thu Dec 16 06:31:54 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 16 Dec 2004 13:31:54 +0100 Subject: [AccessD] A2003: Calling all Back End Updater Legends Message-ID: <20041216133152.5DD72250F4B@smtp.nildram.co.uk> Hi Dazzler, how ya doin? Have you got tblDBAVersion in your BE? If so, open it and see waht version it's set to. This needs to be less than the new version you're creating. If not the BEU thinks it is up-to-date. Don't know why it wouldn't be right, but have a look. Another thought. The BEU modules, forms etc need to be in an FE (can be in it sown FE like I do, or in with other stuff). The tables it then operates on should be in a linked BE. Is that how you have it? The tblDBAVersion should have been added to the BE. Another thing, BEU (at the mo) only works on a single BE MDB. It looks at the first linked table and takes its lead from that as to what MDB all of your tables are in. Any of that any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Date: 16/12/04 12:09 > > Hi Guys > OK - I have no problem keeping it on list > > I imported all the objects from the BEU I downloaded from DBA > > Cool > In the BEU main screen I started a 'new version'. > Just wanted to add a new field called XX to a table called tblTitles > Added the stuff to make it a Number field no decimal places etc etc > Then clicked on Accept > So now I have pending BE Updates - cool > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > Autoexec Macro > Close and reload the dB and I expected to see the form frmDBAupgrading > flash up and perform the mod > > So I went to tblTitles - no new field called XX > I went to the table tblDBAModifyDatabaseMods there is an entry in there > I went to the table tblDBAModifyDatabase there is an entry in there too > > But the mods don't actually take place > > I had a fellow lister at my place the other day and he was raving how good > the BEU was and > showed me how to use it on one of his dB's. No prob it all went well > > So I imported all the necessary bits and bobs and he couldn't get it to work > on > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > but > still no joy > > So... > > Where to from here?? > > many many thanks in advance > > Darren > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Thursday, 16 December 2004 6:40 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > On or off-list fire away Darren. Describe where you've got to and what's > happening. And were you a good boy and downloaded the manual and followed > it? > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > William Hindman > > Sent: 16 December 2004 02:38 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > ..why not keep it on list ...others (including myself) may > > learn something > > from your mistakes :) > > > > William Hindman > > > > > > ----- Original Message ----- > > From: "Darren DICK" <d.dick at uws.edu.au> > > To: "'Access Developers discussion and problem solving'" > > <accessd at databaseadvisors.com> > > Sent: Wednesday, December 15, 2004 6:42 PM > > Subject: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > > Hi Guys > > > Can't get the BEU to work > > > I even had a very happy user at my place trying to show me > > how to get > > > it > > > to > > > work > > > (Hi Deano) - no joy - It works fine on his db's though > > > > > > Clearly I have omitted some step or not done something right > > > > > > So.can I start a dialogue offlist with a BEU guru please?? > > > > > > Many thanks > > > > > > Darren > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From carbonnb at gmail.com Thu Dec 16 07:33:51 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 16 Dec 2004 08:33:51 -0500 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: References: <000f01c4e342$6c44a040$b274d0d5@minster33c3r25> Message-ID: On Thu, 16 Dec 2004 23:05:05 +1100, Darren DICK wrote: > I imported all the objects from the BEU I downloaded from DBA > > Cool > In the BEU main screen I started a 'new version'. > Just wanted to add a new field called XX to a table called tblTitles > Added the stuff to make it a Number field no decimal places etc etc > Then clicked on Accept > So now I have pending BE Updates - cool > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > Autoexec Macro > Close and reload the dB and I expected to see the form frmDBAupgrading > flash up and perform the mod > > So I went to tblTitles - no new field called XX > I went to the table tblDBAModifyDatabaseMods there is an entry in there > I went to the table tblDBAModifyDatabase there is an entry in there too > > But the mods don't actually take place > > I had a fellow lister at my place the other day and he was raving how good > the BEU was and > showed me how to use it on one of his dB's. No prob it all went well > > So I imported all the necessary bits and bobs and he couldn't get it to work > on > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > but > still no joy > > So... > > Where to from here?? I just tried this using A2K and it worked here, so here are a couple of things to look at/that spring to mind: 1) Does the autoexec macro actually fire? 2) Do you have a reference set to the DAU libraries? The BEU uses DAO. 3) Does the BEU fire with you manually run beudbaisdbuptodate from the VBEs immediate window? 4) In A2K the function name parameter for RunCode is beuDBAIsDBUpToDate () which is missing the = that you have. I've never used A2K3 and I don't have access to it, so I can't do any actual testing :( -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Dec 16 07:34:56 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 16 Dec 2004 08:34:56 -0500 Subject: [AccessD] Can someone email me a copy of file vba332.dll please? In-Reply-To: References: Message-ID: On Thu, 16 Dec 2004 23:27:38 +1100, Darren DICK wrote: > Email it to d.dick at uws.edu.au > > Many Many thanks Don't you need to worry about version numbers of this dll?? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From d.dick at uws.edu.au Thu Dec 16 08:04:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 01:04:31 +1100 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: <20041216133152.5DD72250F4B@smtp.nildram.co.uk> Message-ID: Hi Andy and Bryan Firstly Many thanks to all who emailed the VB dll - works well (it's a TriGeminal Kaplan and Kreft demo i'm playing with) WooHoo re the BEU it was the version table Changed the number in it to be 1 less than the current mod number an viola - away she goes Many thanks Bryan and Andy Hey Andy - See you when you emmigrate - the weather is awesome here as is the lifestyle :-)) Better than PeterBerg (sic) me thinks - The best reds for $8:50 you know :-)) Just got introduced to lawn bowls today - what a hoot - sank a few sherberts afterwards got sunburnt as well 100 degree days here - beautiful - plenty of swimming ahhhhh Any northrn hemisphgere bods coming to Sydney soon?? Feel free to drop me a line OK enough bragging - back to work (whip cracks above evil face) Thanks again to all who responded See y'all Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, 16 December 2004 11:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Hi Dazzler, how ya doin? Have you got tblDBAVersion in your BE? If so, open it and see waht version it's set to. This needs to be less than the new version you're creating. If not the BEU thinks it is up-to-date. Don't know why it wouldn't be right, but have a look. Another thought. The BEU modules, forms etc need to be in an FE (can be in it sown FE like I do, or in with other stuff). The tables it then operates on should be in a linked BE. Is that how you have it? The tblDBAVersion should have been added to the BE. Another thing, BEU (at the mo) only works on a single BE MDB. It looks at the first linked table and takes its lead from that as to what MDB all of your tables are in. Any of that any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Date: 16/12/04 12:09 > > Hi Guys > OK - I have no problem keeping it on list > > I imported all the objects from the BEU I downloaded from DBA > > Cool > In the BEU main screen I started a 'new version'. > Just wanted to add a new field called XX to a table called tblTitles > Added the stuff to make it a Number field no decimal places etc etc > Then clicked on Accept > So now I have pending BE Updates - cool > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > Autoexec Macro > Close and reload the dB and I expected to see the form frmDBAupgrading > flash up and perform the mod > > So I went to tblTitles - no new field called XX > I went to the table tblDBAModifyDatabaseMods there is an entry in there > I went to the table tblDBAModifyDatabase there is an entry in there too > > But the mods don't actually take place > > I had a fellow lister at my place the other day and he was raving how good > the BEU was and > showed me how to use it on one of his dB's. No prob it all went well > > So I imported all the necessary bits and bobs and he couldn't get it to work > on > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > but > still no joy > > So... > > Where to from here?? > > many many thanks in advance > > Darren > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Thursday, 16 December 2004 6:40 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > On or off-list fire away Darren. Describe where you've got to and what's > happening. And were you a good boy and downloaded the manual and followed > it? > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > William Hindman > > Sent: 16 December 2004 02:38 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > ..why not keep it on list ...others (including myself) may > > learn something > > from your mistakes :) > > > > William Hindman > > > > > > ----- Original Message ----- > > From: "Darren DICK" <d.dick at uws.edu.au> > > To: "'Access Developers discussion and problem solving'" > > <accessd at databaseadvisors.com> > > Sent: Wednesday, December 15, 2004 6:42 PM > > Subject: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > > Hi Guys > > > Can't get the BEU to work > > > I even had a very happy user at my place trying to show me > > how to get > > > it > > > to > > > work > > > (Hi Deano) - no joy - It works fine on his db's though > > > > > > Clearly I have omitted some step or not done something right > > > > > > So.can I start a dialogue offlist with a BEU guru please?? > > > > > > Many thanks > > > > > > Darren > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Thu Dec 16 08:07:02 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 16 Dec 2004 09:07:02 -0500 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: Message-ID: And did you make the necessary code additions to your relinking code? Can't remember the process, but this would also cause a problem. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, December 16, 2004 8:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends On Thu, 16 Dec 2004 23:05:05 +1100, Darren DICK wrote: > I imported all the objects from the BEU I downloaded from DBA > > Cool > In the BEU main screen I started a 'new version'. > Just wanted to add a new field called XX to a table called tblTitles > Added the stuff to make it a Number field no decimal places etc etc > Then clicked on Accept > So now I have pending BE Updates - cool > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > Autoexec Macro > Close and reload the dB and I expected to see the form frmDBAupgrading > flash up and perform the mod > > So I went to tblTitles - no new field called XX > I went to the table tblDBAModifyDatabaseMods there is an entry in there > I went to the table tblDBAModifyDatabase there is an entry in there too > > But the mods don't actually take place > > I had a fellow lister at my place the other day and he was raving how good > the BEU was and > showed me how to use it on one of his dB's. No prob it all went well > > So I imported all the necessary bits and bobs and he couldn't get it to work > on > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > but > still no joy > > So... > > Where to from here?? I just tried this using A2K and it worked here, so here are a couple of things to look at/that spring to mind: 1) Does the autoexec macro actually fire? 2) Do you have a reference set to the DAU libraries? The BEU uses DAO. 3) Does the BEU fire with you manually run beudbaisdbuptodate from the VBEs immediate window? 4) In A2K the function name parameter for RunCode is beuDBAIsDBUpToDate () which is missing the = that you have. I've never used A2K3 and I don't have access to it, so I can't do any actual testing :( -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 08:06:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 01:06:45 +1100 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? In-Reply-To: Message-ID: Thanks for the Link Karen The one I usually get 'sent' to wants payment See ya Thanks again DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Friday, 17 December 2004 12:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? http://www.dll-files.com/dllindex/dll-files.shtml?vba332 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 8:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Hi Chris Can you change the extension from dll to cf for eg? many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris Sent: Thursday, 16 December 2004 11:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 16 08:16:06 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 16 Dec 2004 09:16:06 -0500 Subject: [AccessD] Can someone email me a copy of file vba332.dll plea se? Message-ID: I am cheap. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Thanks for the Link Karen The one I usually get 'sent' to wants payment See ya Thanks again DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Friday, 17 December 2004 12:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? http://www.dll-files.com/dllindex/dll-files.shtml?vba332 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 8:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Hi Chris Can you change the extension from dll to cf for eg? many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Foote, Chris Sent: Thursday, 16 December 2004 11:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Can someone email me a copy of file vba332.dll plea se? Sorry Darren! I tried to send it to you but our firewall stopped it getting out. Chris Foote (Expecting a 'phone call from IT Dept. any moment now ;-( > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Thursday, December 16, 2004 12:28 PM > To: AccessD List > Subject: [AccessD] Can someone email me a copy of file vba332.dll > please? > > > Email it to d.dick at uws.edu.au > > Many Many thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Dec 16 07:19:34 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 16 Dec 2004 14:19:34 +0100 Subject: [AccessD] A2003: Calling all Back End Updater Legends Message-ID: <20041216141931.5CF7224E4DF@smtp.nildram.co.uk> :-) Lawn bowls? I'm surprised at you. Game for old men isn't it? Or do you play extreme bowls while bungee jumping? (dons hard hat and heads for shelter) -- Andy Lacey http://www.minstersystems.co.uk PS Sorry about the OT folks. It's the Brit v Aussie competitive thing. --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Date: 16/12/04 14:07 > > Hi Andy and Bryan > Firstly > Many thanks to all who emailed the VB dll - works well > (it's a TriGeminal Kaplan and Kreft demo i'm playing with) > > WooHoo re the BEU it was the version table > Changed the number in it to be 1 less than the current mod number an viola - > away she goes > > Many thanks Bryan and Andy > > Hey Andy - See you when you emmigrate - the weather is awesome here as is > the lifestyle :-)) > Better than PeterBerg (sic) me thinks - The best reds for $8:50 you know > :-)) > Just got introduced to lawn bowls today - what a hoot - sank a few sherberts > afterwards > got sunburnt as well 100 degree days here - beautiful - plenty of swimming > ahhhhh > > Any northrn hemisphgere bods coming to Sydney soon?? > Feel free to drop me a line > > OK enough bragging - back to work (whip cracks above evil face) > > Thanks again to all who responded > > See y'all > > Darren > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Thursday, 16 December 2004 11:32 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > Hi Dazzler, how ya doin? > > Have you got tblDBAVersion in your BE? If so, open it and see waht version > it's set to. This needs to be less than the new version you're creating. If > not the BEU thinks it is up-to-date. Don't know why it wouldn't be right, > but have a look. > > Another thought. The BEU modules, forms etc need to be in an FE (can be in > it sown FE like I do, or in with other stuff). The tables it then operates > on should be in a linked BE. Is that how you have it? The tblDBAVersion > should have been added to the BE. > > Another thing, BEU (at the mo) only works on a single BE MDB. It looks at > the first linked table and takes its lead from that as to what MDB all of > your tables are in. > > Any of that any use? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > Date: 16/12/04 12:09 > > > > > Hi Guys > > OK - I have no problem keeping it on list > > > > I imported all the objects from the BEU I downloaded from DBA > > > > Cool > > In the BEU main screen I started a 'new version'. > > Just wanted to add a new field called XX to a table called tblTitles > > Added the stuff to make it a Number field no decimal places etc etc > > Then clicked on Accept > > So now I have pending BE Updates - cool > > > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > > Autoexec Macro > > Close and reload the dB and I expected to see the form frmDBAupgrading > > flash up and perform the mod > > > > So I went to tblTitles - no new field called XX > > I went to the table tblDBAModifyDatabaseMods there is an entry in there > > I went to the table tblDBAModifyDatabase there is an entry in there too > > > > But the mods don't actually take place > > > > I had a fellow lister at my place the other day and he was raving how good > > the BEU was and > > showed me how to use it on one of his dB's. No prob it all went well > > > > So I imported all the necessary bits and bobs and he couldn't get it to > work > > on > > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > > but > > still no joy > > > > So... > > > > Where to from here?? > > > > many many thanks in advance > > > > Darren > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > > Sent: Thursday, 16 December 2004 6:40 PM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > On or off-list fire away Darren. Describe where you've got to and what's > > happening. And were you a good boy and downloaded the manual and followed > > it? > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > &gt; William Hindman > > &gt; Sent: 16 December 2004 02:38 > > &gt; To: Access Developers discussion and problem solving > > &gt; Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > &gt; > > &gt; > > &gt; ..why not keep it on list ...others (including myself) may > > &gt; learn something > > &gt; from your mistakes :) > > &gt; > > &gt; William Hindman > > &gt; > > &gt; > > &gt; ----- Original Message ----- > > &gt; From: &quot;Darren DICK&quot; &lt;d.dick at uws.edu.au&gt; > > &gt; To: &quot;'Access Developers discussion and problem solving'&quot; > > &gt; &lt;accessd at databaseadvisors.com&gt; > > &gt; Sent: Wednesday, December 15, 2004 6:42 PM > > &gt; Subject: [AccessD] A2003: Calling all Back End Updater Legends > > &gt; > > &gt; > > &gt; &gt; Hi Guys > > &gt; &gt; Can't get the BEU to work > > &gt; &gt; I even had a very happy user at my place trying to show me > > &gt; how to get > > &gt; &gt; it > > &gt; &gt; to > > &gt; &gt; work > > &gt; &gt; (Hi Deano) - no joy - It works fine on his db's though > > &gt; &gt; > > &gt; &gt; Clearly I have omitted some step or not done something right > > &gt; &gt; > > &gt; &gt; So.can I start a dialogue offlist with a BEU guru please?? > > &gt; &gt; > > &gt; &gt; Many thanks > > &gt; &gt; > > &gt; &gt; Darren > > &gt; &gt; > > &gt; &gt; > > &gt; &gt; -- > > &gt; &gt; AccessD mailing list > > &gt; &gt; AccessD at databaseadvisors.com > > &gt; &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; &gt; Website: http://www.databaseadvisors.com > > &gt; &gt; > > &gt; -- > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com > > &gt; > > &gt; > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From cyx5 at cdc.gov Thu Dec 16 08:19:42 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 16 Dec 2004 09:19:42 -0500 Subject: [AccessD] Import XLS File, Add a Field Not in Spreadsheet Message-ID: I am importing named ranges from Excel Spreadsheets into Access and all is well. What I want to do is add a field while doing the import, a status field. Right now I have seven named ranges, one for new, pending, existing, etc. I am putting each into its own table, then updating the status field to N, P, X, etc. Then I have to pump all these into a central table. It would be nice if I could just directly pump each spreadsheet into the final table instead of dancing around. Any ideas? Thanks. From d.dick at uws.edu.au Thu Dec 16 08:30:33 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 01:30:33 +1100 Subject: [AccessD] A2003: Calling all Back End Updater Legends In-Reply-To: <20041216141931.5CF7224E4DF@smtp.nildram.co.uk> Message-ID: Hee Hee Shorts and bare feet - how else?? Even tried a few leg breaks (as in Cricket(the game not the bug)) The oldies were in the airconditioned comfort sipping sherbets I promise this is my last Southern Hemisphere (where the weather is beautiful) spray. By the way it's 1:30am here and I am sitting typing in nothing more than my speedos - but enough of that :-)) it's time for bed See y'all and many thanks to those who have replied tonight Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, 17 December 2004 12:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends :-) Lawn bowls? I'm surprised at you. Game for old men isn't it? Or do you play extreme bowls while bungee jumping? (dons hard hat and heads for shelter) -- Andy Lacey http://www.minstersystems.co.uk PS Sorry about the OT folks. It's the Brit v Aussie competitive thing. --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends Date: 16/12/04 14:07 > > Hi Andy and Bryan > Firstly > Many thanks to all who emailed the VB dll - works well > (it's a TriGeminal Kaplan and Kreft demo i'm playing with) > > WooHoo re the BEU it was the version table > Changed the number in it to be 1 less than the current mod number an viola - > away she goes > > Many thanks Bryan and Andy > > Hey Andy - See you when you emmigrate - the weather is awesome here as is > the lifestyle :-)) > Better than PeterBerg (sic) me thinks - The best reds for $8:50 you know > :-)) > Just got introduced to lawn bowls today - what a hoot - sank a few sherberts > afterwards > got sunburnt as well 100 degree days here - beautiful - plenty of swimming > ahhhhh > > Any northrn hemisphgere bods coming to Sydney soon?? > Feel free to drop me a line > > OK enough bragging - back to work (whip cracks above evil face) > > Thanks again to all who responded > > See y'all > > Darren > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Thursday, 16 December 2004 11:32 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > Hi Dazzler, how ya doin? > > Have you got tblDBAVersion in your BE? If so, open it and see waht version > it's set to. This needs to be less than the new version you're creating. If > not the BEU thinks it is up-to-date. Don't know why it wouldn't be right, > but have a look. > > Another thought. The BEU modules, forms etc need to be in an FE (can be in > it sown FE like I do, or in with other stuff). The tables it then operates > on should be in a linked BE. Is that how you have it? The tblDBAVersion > should have been added to the BE. > > Another thing, BEU (at the mo) only works on a single BE MDB. It looks at > the first linked table and takes its lead from that as to what MDB all of > your tables are in. > > Any of that any use? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > Date: 16/12/04 12:09 > > > > > Hi Guys > > OK - I have no problem keeping it on list > > > > I imported all the objects from the BEU I downloaded from DBA > > > > Cool > > In the BEU main screen I started a 'new version'. > > Just wanted to add a new field called XX to a table called tblTitles > > Added the stuff to make it a Number field no decimal places etc etc > > Then clicked on Accept > > So now I have pending BE Updates - cool > > > > I have the RUN CODE =beuDBAIsDBUpToDate() as the first line in the > > Autoexec Macro > > Close and reload the dB and I expected to see the form frmDBAupgrading > > flash up and perform the mod > > > > So I went to tblTitles - no new field called XX > > I went to the table tblDBAModifyDatabaseMods there is an entry in there > > I went to the table tblDBAModifyDatabase there is an entry in there too > > > > But the mods don't actually take place > > > > I had a fellow lister at my place the other day and he was raving how good > > the BEU was and > > showed me how to use it on one of his dB's. No prob it all went well > > > > So I imported all the necessary bits and bobs and he couldn't get it to > work > > on > > my dB. We even imported HIS BEU objects from one of his dB's and we ran it > > but > > still no joy > > > > So... > > > > Where to from here?? > > > > many many thanks in advance > > > > Darren > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > > Sent: Thursday, 16 December 2004 6:40 PM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] A2003: Calling all Back End Updater Legends > > > > > > On or off-list fire away Darren. Describe where you've got to and what's > > happening. And were you a good boy and downloaded the manual and followed > > it? > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > &gt; -----Original Message----- > > &gt; From: accessd-bounces at databaseadvisors.com > > &gt; [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > &gt; William Hindman > > &gt; Sent: 16 December 2004 02:38 > > &gt; To: Access Developers discussion and problem solving > > &gt; Subject: Re: [AccessD] A2003: Calling all Back End Updater Legends > > &gt; > > &gt; > > &gt; ..why not keep it on list ...others (including myself) may > > &gt; learn something > > &gt; from your mistakes :) > > &gt; > > &gt; William Hindman > > &gt; > > &gt; > > &gt; ----- Original Message ----- > > &gt; From: &quot;Darren DICK&quot; &lt;d.dick at uws.edu.au&gt; > > &gt; To: &quot;'Access Developers discussion and problem solving'&quot; > > &gt; &lt;accessd at databaseadvisors.com&gt; > > &gt; Sent: Wednesday, December 15, 2004 6:42 PM > > &gt; Subject: [AccessD] A2003: Calling all Back End Updater Legends > > &gt; > > &gt; > > &gt; &gt; Hi Guys > > &gt; &gt; Can't get the BEU to work > > &gt; &gt; I even had a very happy user at my place trying to show me > > &gt; how to get > > &gt; &gt; it > > &gt; &gt; to > > &gt; &gt; work > > &gt; &gt; (Hi Deano) - no joy - It works fine on his db's though > > &gt; &gt; > > &gt; &gt; Clearly I have omitted some step or not done something right > > &gt; &gt; > > &gt; &gt; So.can I start a dialogue offlist with a BEU guru please?? > > &gt; &gt; > > &gt; &gt; Many thanks > > &gt; &gt; > > &gt; &gt; Darren > > &gt; &gt; > > &gt; &gt; > > &gt; &gt; -- > > &gt; &gt; AccessD mailing list > > &gt; &gt; AccessD at databaseadvisors.com > > &gt; &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; &gt; Website: http://www.databaseadvisors.com > > &gt; &gt; > > &gt; -- > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com > > &gt; > > &gt; > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Thu Dec 16 09:27:36 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 16 Dec 2004 09:27:36 -0600 Subject: [AccessD] Quickbooks to Access Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723372D1@corp-es01.fleetpride.com> Can anyone recommend an ODBC driver to link Quick book tables to Access? I have tried QODBC by Flexquarters.com. It works but is slooow. TIA Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From william.thompson1 at att.net Thu Dec 16 09:48:47 2004 From: william.thompson1 at att.net (William Thompson) Date: Thu, 16 Dec 2004 07:48:47 -0800 Subject: [AccessD] ADODB Set Me.Recordset = rs - keyset Question In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723372D1@corp-es01.fleetpride.com> Message-ID: <200412161548.iBGFmll28066@databaseadvisors.com> Can I change the recordset on-the-fly for a form in an Access project (.adp) using the method described in the kb http://support.microsoft.com/default.aspx?scid=kb;en-us;281998 ? And still be able to assign the rowset to list and combo boxes? It's my understanding that SQL Server will only supply one firehose connection per instance, so I presume that these assigned recordsets, even if assigned to a listbox, would need to be keyset cursors. I was wondering if I could re-use connections in a way where, instead of setting the recordset in the open property of the form, somehow requery the form with Dim cn As ADODB.Connection Dim rs As ADODB.Recordset 'Use the ADO connection that Access uses Set cn = CurrentProject.AccessConnection 'Create an instance of the ADO Recordset class, and 'set its properties Set rs = New ADODB.Recordset With rs Set .ActiveConnection = cn .Source = "SELECT * FROM Customers" .LockType = adLockOptimistic .CursorType = adOpenKeyset .Open End With 'Set the form's Recordset property to the ADO recordset Set Me.Recordset = rs Set rs = Nothing Set cn = Nothing Could I synchronize updateable subforms using the Mirror method in the ADH? Any comments, suggestions appreciated, Bill Thompson Washington State From Gustav at cactus.dk Thu Dec 16 12:42:37 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Dec 2004 19:42:37 +0100 Subject: [AccessD] Import XLS File, Add a Field Not in Spreadsheet Message-ID: Hi 65 You can link the Named Range into a query directly. Here is for a select query which you easily can modify for a create table or append query: SELECT *, 'X' AS Status FROM [SomeNamedRange] AS xlsRange IN '' [Excel 5.0;HDR=YES;IMEX=2;DATABASE=d:\path\yourworkbook.xls;]; Adjust HDR to NO if no headers. Append a $ sign to a worksheet name if not using a Named Range: FROM [SomeWorkSheet$] AS xlsSheet /gustav >>> cyx5 at cdc.gov 16-12-2004 15:19:42 >>> I am importing named ranges from Excel Spreadsheets into Access and all is well. What I want to do is add a field while doing the import, a status field. Right now I have seven named ranges, one for new, pending, existing, etc. I am putting each into its own table, then updating the status field to N, P, X, etc. Then I have to pump all these into a central table. It would be nice if I could just directly pump each spreadsheet into the final table instead of dancing around. From fhtapia at gmail.com Thu Dec 16 14:09:58 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 16 Dec 2004 12:09:58 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D294C@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D294C@TTNEXCHCL2.hshhp.com> Message-ID: Thanks for all the help you've been giving me... I split my class in to 2, the MultiForms class has the Form object along w/ the OpenArgs, this is where I'll add the On Close Event so it removes the form from the collection as well please explain the name for BaseClassName? since the i've split the classes I have clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) then the clsMultiInstance (which contains the collection) and I created a Public Variable on the module as well I thought the hWnd was diffrent on each call... maybenot? On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco wrote: > I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). > > Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. > > BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: > > Function Exists(strKey As String) As Boolean > 'returns true if the key value (not index) exists in the collection > Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object > > On Error GoTo Exists_Err > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > Exists = True > > Exit_Function: > Set objTemp = Nothing > Exit Function > > Exists_Err: > If Err.Number = 5 Then > Exists = False > Else > 'further error handling here for other error types > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > End If > Resume Exit_Function > End Function > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 5:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) > Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > dim x as MyClass > > > Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > To store the values > > > > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where end > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > the following code works really well and in fact I can do what I need > > > with it, except passing openargs... I figure I can use a workaround > > > unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From lists at theopg.com Thu Dec 16 14:20:36 2004 From: lists at theopg.com (MarkH) Date: Thu, 16 Dec 2004 20:20:36 -0000 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: Message-ID: <005301c4e3ac$b5104940$c639fc3e@netboxxp> The hwnd is different on each call... I have been using multiple instances with the code assuming hwnd to be unique without any issue for a couple of years. Is there something I should know perhaps??? Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: 16 December 2004 20:10 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited Thanks for all the help you've been giving me... I split my class in to 2, the MultiForms class has the Form object along w/ the OpenArgs, this is where I'll add the On Close Event so it removes the form from the collection as well please explain the name for BaseClassName? since the i've split the classes I have clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) then the clsMultiInstance (which contains the collection) and I created a Public Variable on the module as well I thought the hWnd was diffrent on each call... maybenot? On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco wrote: > I don't see anything wrong with your call (I did see that someone > correctly suggested a public or module level variable to hold your > collection class object). Could it have anything to do with you > instantiating an instance of your class from within itself (your Add > method creates an object of the class type of which it is a member)? > I normally do this using two classes to keep the functionality > separate, in this case one for the form object and its properties, > another to handle collection duties (remember polymorphism and > encapsulation?). > > Your problem seems to be a duplicate key though. Your original code > appended a timestamp to the hwnd for use in the form's caption. Maybe > you should include that in the key as well to absolutely prevent a > duplicate value. > > BTW, it's also a good idea to add an Exists method to your collection > class to avoid erroring out on duplicate keys: > > Function Exists(strKey As String) As Boolean > 'returns true if the key value (not index) exists in the collection > Dim objTemp As BaseClassName 'if you use my original technique this > would be your base clas object > > On Error GoTo Exists_Err > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > Exists = True > > Exit_Function: > Set objTemp = Nothing > Exit Function > > Exists_Err: > If Err.Number = 5 Then > Exists = False > Else > 'further error handling here for other error types > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > End If > Resume Exit_Function > End Function > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 5:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml > > > file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class > > > that is similar to the one you have here but it would hold the > > > form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, > > > Optional Key As Variant) dim x as MyClass Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need > > > for your form. To store the values > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more > > > info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > Francisco Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where > > > end users can start "multiple calls" and then keep starting newer > > > calls. > > > > > > the following code works really well and in fact I can do what I > > > need with it, except passing openargs... I figure I can use a > > > workaround unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ********************************************************************** > ************* > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > ************************************************************************ *********** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.805 / Virus Database: 547 - Release Date: 03/12/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.805 / Virus Database: 547 - Release Date: 03/12/2004 From Jdemarco at hudsonhealthplan.org Thu Dec 16 14:53:52 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 16 Dec 2004 15:53:52 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2965@TTNEXCHCL2.hshhp.com> Change BaseClassName to clsMultiForms (if my memory is correct). The name of the class you're storing in the collection. I believe Hwnd is unique as well. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Thursday, December 16, 2004 3:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited Thanks for all the help you've been giving me... I split my class in to 2, the MultiForms class has the Form object along w/ the OpenArgs, this is where I'll add the On Close Event so it removes the form from the collection as well please explain the name for BaseClassName? since the i've split the classes I have clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) then the clsMultiInstance (which contains the collection) and I created a Public Variable on the module as well I thought the hWnd was diffrent on each call... maybenot? On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco wrote: > I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). > > Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. > > BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: > > Function Exists(strKey As String) As Boolean > 'returns true if the key value (not index) exists in the collection > Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object > > On Error GoTo Exists_Err > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > Exists = True > > Exit_Function: > Set objTemp = Nothing > Exit Function > > Exists_Err: > If Err.Number = 5 Then > Exists = False > Else > 'further error handling here for other error types > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > End If > Resume Exit_Function > End Function > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Wednesday, December 15, 2004 5:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > This code works for displaying "one" form... but it does not give me a > tolorance to opening a 2nd Form... :(, the original code worked fine > for many forms... Ideas? > > it could be the way that I'm calling it, (such as > > Dim MultiForms As clsMultiInstance > > If MultiForms Is Nothing Then > Set MultiForms = New clsMultiInstance > End If > MultiForms.Add frm, frm.hWnd, OpenArgs > > ------------------------------ > VERSION 1.0 CLASS > BEGIN > MultiUse = -1 'True > END > Attribute VB_Name = "clsMultiInstance" > Attribute VB_GlobalNameSpace = False > Attribute VB_Creatable = False > Attribute VB_PredeclaredId = False > Attribute VB_Exposed = False > Option Compare Database > 'Multi Instance Multiple Forms > > Dim mForms As Collection > Private colForm As Access.Form > Private colhWnd As String > Private colOpenArgs As String > Public Property Let Form(frm As Access.Form) > Set colForm = frm > End Property > Public Property Get Form() As Access.Form > Set Form = colForm > End Property > Public Property Let hWnd(hWnd As String) > colhWnd = hWnd > End Property > Public Property Get strhWnd() As String > hWnd = colhWnd > End Property > Public Property Let OpenArgs(Args As String) > colOpenArgs = Args > End Property > Public Property Get OpenArgs() As String > OpenArgs = colOpenArgs > End Property > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > Optional Key As Variant) > Dim x As clsMultiInstance > Set x = New clsMultiInstance > x.Form = frm > x.hWnd = hWnd > x.OpenArgs = OpenArgs > x.Form.Visible = True > > 'On a 2nd call it errors out from here... > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > End Sub > Sub Remove(hWnd As String) > 'Purpose: Remove this instance from the collection. > Dim obj As Object 'Object in Collection > Dim blnRemove As Boolean 'Flag to remove it. > > 'Check if this instance is in the collection. > ' (It won't be if form was opened directly, or code was reset.) > For Each obj In mForms > If obj.hWnd = hWnd Then > blnRemove = True > Exit For > End If > Next > 'Deassign the object before removing from collection. > Set obj = Nothing > If blnRemove Then > mForms.Remove CStr(hWnd) > End If > End Sub > Function Count() As Integer > mForms.Count > End Function > Function Item(index As Variant) As clsMultiInstance > Set Item = mForms.Item(index) > End Function > Public Function Term() > 'Purpose: Close all instances in the collection. > 'Note: Leaves the copy opened directly from database window. > Dim lngKt As Long > Dim lngI As Long > > lngKt = mForms.Count > For lngI = 1 To lngKt > mForms.Remove 1 > Next > Set mForms = Nothing > End Function > > Private Sub Class_Initialize() > Set mForms = New Collection > End Sub > > ---------------END CLASS---------- > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > wrote: > > Makes sense. I was typing from (lack of) memory!! > > > > Hope it works out. > > > > Jim > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 4:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > Jim that sounds great (re: more code :D), > > > > I was wondering on this line: > > > > m_col.add(x,hWnd) > > > > access complains about an '=' > > so I re-wrote it as m_col.add x, hWnd > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > wrote: > > > Francisco, > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > First a class to hold the data you're trying to use: > > > > > > 'MyClass > > > > > > Public Property Let Form(frm as Access.Form)... > > > Public Property Let hWnd(hWnd as String)... > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > dim m_col as Collection > > > > > > 'MyCollectionClass > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > dim x as MyClass > > > Sex x = new MyClass > > > x.Form = frm > > > x.hWnd = hWnd > > > x.OpenArgs = OpenArgs > > > m_col.add(x,hWnd) > > > End Sub > > > > > > Function Item(index As Variant) As MyClass > > > Set Item = m_col.Item(index) > > > End Function > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > To store the values > > > > > > Dim MyCol as MyCollectionClass > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > To retrieve them: > > > > > > Dim MyStringArg As String > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > 'do something with MyStringArg > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > HTH, > > > > > > Jim DeMarco > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > So I have the following code in a public module.. > > > > > > the purpose is to have more than one instance of the form where end > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > the following code works really well and in fact I can do what I need > > > with it, except passing openargs... I figure I can use a workaround > > > unless someone here knows of a better way? > > > > > > thanks, > > > > > > ---CODE SNIP------------ > > > Option Compare Database > > > Option Explicit > > > 'Author: Allen J Browne, January 2000 > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > Function OpenAClient() > > > 'Purpose: Open an independent instance of form frmClient. > > > Dim frm As Form > > > > > > 'Open a new instance, show it, and set a caption. > > > Set frm = New Form_frmClient > > > frm.Visible = True > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > 'Append it to our collection. > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > Set frm = Nothing > > > End Function > > > > > > Function CloseAllClients() > > > 'Purpose: Close all instances in the clnClient collection. > > > 'Note: Leaves the copy opened directly from database window. > > > Dim lngKt As Long > > > Dim lngI As Long > > > > > > lngKt = clnClient.Count > > > For lngI = 1 To lngKt > > > clnClient.Remove 1 > > > Next > > > End Function > > > ---END CODE SNIP----------------- > > -- > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From fhtapia at gmail.com Thu Dec 16 15:28:49 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 16 Dec 2004 13:28:49 -0800 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2965@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2965@TTNEXCHCL2.hshhp.com> Message-ID: ok I fixed the problems.. I had to make the initial call to the function call the new form as such: Dim frm As Access.Form 20 Set frm = New Form_frm_004C_MyMultiFORM 30 OpenMultiForm frm, "1|" this yields a new hWnd othewisie the previous code: 30 OpenMultiForm Form_frm_004C_MyMultiFORM, "1|" yields the same hWnd everytime... now for part 2 of the problem... when the form loads it calls it's Load Event, but since the open args are null, how do I pass them back?... or do I need to rewrite the onload procedure again? Thanks, On Thu, 16 Dec 2004 15:53:52 -0500, Jim DeMarco wrote: > Change BaseClassName to clsMultiForms (if my memory is correct). The name of the class you're storing in the collection. > > I believe Hwnd is unique as well. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Thursday, December 16, 2004 3:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Thanks for all the help you've been giving me... I split my class in > to 2, the MultiForms class has the Form object along w/ the OpenArgs, > this is where I'll add the On Close Event so it removes the form from > the collection as well > > please explain the name for BaseClassName? > > since the i've split the classes I have > > clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) > then the clsMultiInstance (which contains the collection) > > and I created a Public Variable on the module as well > > I thought the hWnd was diffrent on each call... maybenot? > > On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco > wrote: > > I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). > > > > Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. > > > > BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: > > > > Function Exists(strKey As String) As Boolean > > 'returns true if the key value (not index) exists in the collection > > Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object > > > > On Error GoTo Exists_Err > > > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > > Exists = True > > > > Exit_Function: > > Set objTemp = Nothing > > Exit Function > > > > Exists_Err: > > If Err.Number = 5 Then > > Exists = False > > Else > > 'further error handling here for other error types > > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > > End If > > Resume Exit_Function > > End Function > > > > Jim D. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 5:47 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > This code works for displaying "one" form... but it does not give me a > > tolorance to opening a 2nd Form... :(, the original code worked fine > > for many forms... Ideas? > > > > it could be the way that I'm calling it, (such as > > > > Dim MultiForms As clsMultiInstance > > > > If MultiForms Is Nothing Then > > Set MultiForms = New clsMultiInstance > > End If > > MultiForms.Add frm, frm.hWnd, OpenArgs > > > > ------------------------------ > > VERSION 1.0 CLASS > > BEGIN > > MultiUse = -1 'True > > END > > Attribute VB_Name = "clsMultiInstance" > > Attribute VB_GlobalNameSpace = False > > Attribute VB_Creatable = False > > Attribute VB_PredeclaredId = False > > Attribute VB_Exposed = False > > Option Compare Database > > 'Multi Instance Multiple Forms > > > > Dim mForms As Collection > > Private colForm As Access.Form > > Private colhWnd As String > > Private colOpenArgs As String > > Public Property Let Form(frm As Access.Form) > > Set colForm = frm > > End Property > > Public Property Get Form() As Access.Form > > Set Form = colForm > > End Property > > Public Property Let hWnd(hWnd As String) > > colhWnd = hWnd > > End Property > > Public Property Get strhWnd() As String > > hWnd = colhWnd > > End Property > > Public Property Let OpenArgs(Args As String) > > colOpenArgs = Args > > End Property > > Public Property Get OpenArgs() As String > > OpenArgs = colOpenArgs > > End Property > > > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > > Optional Key As Variant) > > Dim x As clsMultiInstance > > Set x = New clsMultiInstance > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > x.Form.Visible = True > > > > 'On a 2nd call it errors out from here... > > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > > > End Sub > > Sub Remove(hWnd As String) > > 'Purpose: Remove this instance from the collection. > > Dim obj As Object 'Object in Collection > > Dim blnRemove As Boolean 'Flag to remove it. > > > > 'Check if this instance is in the collection. > > ' (It won't be if form was opened directly, or code was reset.) > > For Each obj In mForms > > If obj.hWnd = hWnd Then > > blnRemove = True > > Exit For > > End If > > Next > > 'Deassign the object before removing from collection. > > Set obj = Nothing > > If blnRemove Then > > mForms.Remove CStr(hWnd) > > End If > > End Sub > > Function Count() As Integer > > mForms.Count > > End Function > > Function Item(index As Variant) As clsMultiInstance > > Set Item = mForms.Item(index) > > End Function > > Public Function Term() > > 'Purpose: Close all instances in the collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = mForms.Count > > For lngI = 1 To lngKt > > mForms.Remove 1 > > Next > > Set mForms = Nothing > > End Function > > > > Private Sub Class_Initialize() > > Set mForms = New Collection > > End Sub > > > > ---------------END CLASS---------- > > > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > > wrote: > > > Makes sense. I was typing from (lack of) memory!! > > > > > > Hope it works out. > > > > > > Jim > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 4:03 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > > > Jim that sounds great (re: more code :D), > > > > > > I was wondering on this line: > > > > > > m_col.add(x,hWnd) > > > > > > access complains about an '=' > > > so I re-wrote it as m_col.add x, hWnd > > > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > > wrote: > > > > Francisco, > > > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > > > First a class to hold the data you're trying to use: > > > > > > > > 'MyClass > > > > > > > > Public Property Let Form(frm as Access.Form)... > > > > Public Property Let hWnd(hWnd as String)... > > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > > > > > dim m_col as Collection > > > > > > > > 'MyCollectionClass > > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > > dim x as MyClass > > > > Sex x = new MyClass > > > > x.Form = frm > > > > x.hWnd = hWnd > > > > x.OpenArgs = OpenArgs > > > > m_col.add(x,hWnd) > > > > End Sub > > > > > > > > Function Item(index As Variant) As MyClass > > > > Set Item = m_col.Item(index) > > > > End Function > > > > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > > To store the values > > > > > > > > Dim MyCol as MyCollectionClass > > > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > > > > To retrieve them: > > > > > > > > Dim MyStringArg As String > > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > > 'do something with MyStringArg > > > > > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > > > HTH, > > > > > > > > Jim DeMarco > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > > Tapia > > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > > To: Access Developers discussion and problem solving > > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > > > So I have the following code in a public module.. > > > > > > > > the purpose is to have more than one instance of the form where end > > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > > > the following code works really well and in fact I can do what I need > > > > with it, except passing openargs... I figure I can use a workaround > > > > unless someone here knows of a better way? > > > > > > > > thanks, > > > > > > > > ---CODE SNIP------------ > > > > Option Compare Database > > > > Option Explicit > > > > 'Author: Allen J Browne, January 2000 > > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > > > Function OpenAClient() > > > > 'Purpose: Open an independent instance of form frmClient. > > > > Dim frm As Form > > > > > > > > 'Open a new instance, show it, and set a caption. > > > > Set frm = New Form_frmClient > > > > frm.Visible = True > > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > > > 'Append it to our collection. > > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > > Set frm = Nothing > > > > End Function > > > > > > > > Function CloseAllClients() > > > > 'Purpose: Close all instances in the clnClient collection. > > > > 'Note: Leaves the copy opened directly from database window. > > > > Dim lngKt As Long > > > > Dim lngI As Long > > > > > > > > lngKt = clnClient.Count > > > > For lngI = 1 To lngKt > > > > clnClient.Remove 1 > > > > Next > > > > End Function > > > > ---END CODE SNIP----------------- > > > -- > > -- > > -Francisco > > http://pcthis.blogspot.com | PC news with out the jargon! > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > *********************************************************************************** > > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > > *********************************************************************************** > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From d.dick at uws.edu.au Thu Dec 16 19:40:26 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 12:40:26 +1100 Subject: [AccessD] A2003: rename a file via vba Message-ID: <200412170140.iBH1eXRl016183@cooper.uws.edu.au> Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren From dwaters at usinternet.com Thu Dec 16 20:22:01 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 16 Dec 2004 20:22:01 -0600 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <16776116.1103248017070.JavaMail.root@sniper19.securence.com> Message-ID: <004001c4e3df$31a97da0$de1811d8@danwaters> Darren, Look up 'Rename' in help. This is the example they give: DoCmd.Rename "Old Employees Table", acTable, "Employees" HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 7:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: rename a file via vba Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Dec 16 20:42:01 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Dec 2004 12:42:01 +1000 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <200412170140.iBH1eXRl016183@cooper.uws.edu.au> Message-ID: <41C2D419.17783.2B2E81@lexacorp.com.pg> On 17 Dec 2004 at 12:40, Darren DICK wrote: > Hello all > Any suggestion on renaming a file via code > PSEUDO CODE EXAMPLE > > Some thing like > Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & > ".mdb" > The "Name" command has been part of VBA since the year dot and was part of most flavours of Basic since the very early days. Just use: Name "C:\mydB.mdb" "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" -- Stuart From dwaters at usinternet.com Thu Dec 16 20:44:15 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 16 Dec 2004 20:44:15 -0600 Subject: [AccessD] Reports, Forms, Queries, and Links in Library DB Message-ID: <004101c4e3e2$4c8adee0$de1811d8@danwaters> I've just been testing to see if I could put a form, report, query, or table link into a referenced library mdb. And, it works. In a standard module in the library database I put a procedure which accepts the name of the appropriate object as an argument, then call that procedure from the main mdb. For example: Call OpenLibraryForm("frmTestForm") In the library database is the procedure: Public Sub OpenLibraryForm(stgFormName As String) DoCmd.OpenForm stgFormName End Sub The form/report/query will open fine, just as if it was in the main mdb. I did put a table link into the library mdb so that the objects had a data source. So - does anyone have experience with this practice? Any pros/cons/gotchas? Thanks, Dan Waters ProMation Systems From d.dick at uws.edu.au Thu Dec 16 20:54:24 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 13:54:24 +1100 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <004001c4e3df$31a97da0$de1811d8@danwaters> Message-ID: <200412170254.iBH2sURl010165@cooper.uws.edu.au> Sorry Dan Iwant to rename a file - outside of the db Not a db Object Many thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, 17 December 2004 1:22 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: rename a file via vba Darren, Look up 'Rename' in help. This is the example they give: DoCmd.Rename "Old Employees Table", acTable, "Employees" HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 7:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: rename a file via vba Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Dec 16 21:07:58 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 16 Dec 2004 19:07:58 -0800 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <200412170140.iBH1eXRl016183@cooper.uws.edu.au> Message-ID: this is what I do when exporting a query to Excel (The same would apply to renaming an mdb. Dim Path As String Dim stDocName As String Dim FileName As String Path = "C:\YourPathHere\" stDocName = "qryYourQueryNameHere" FileName = Format(Forms![MonthlyReport]![StartDate], "yyyymmdd") & "MonthlyReport.xls" If PathExists(Path) = False Then MkDir Path DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, Path & FileName You could also use now if you want to use the current date instead of selecting a date from a form: FileName = Format(Now(), "yyyymmdd") & "MonthlyReport.xls" HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 5:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: rename a file via vba Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 21:09:59 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 14:09:59 +1100 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <41C2D419.17783.2B2E81@lexacorp.com.pg> Message-ID: <200412170310.iBH3A6Rl021139@cooper.uws.edu.au> Hi Stuart Many thanks When I copy and paste the line below it errors, then goes red and tells me it is expecting Compile Error: Expected: As The Compiler then goes to the space after the first "C:\mydB.mdb" Any thoughts?? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 17 December 2004 1:42 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: rename a file via vba On 17 Dec 2004 at 12:40, Darren DICK wrote: > Hello all > Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE > > Some thing like > Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") > & ".mdb" > The "Name" command has been part of VBA since the year dot and was part of most flavours of Basic since the very early days. Just use: Name "C:\mydB.mdb" "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Dec 16 21:13:42 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Dec 2004 13:13:42 +1000 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: <200412170310.iBH3A6Rl021139@cooper.uws.edu.au> References: <41C2D419.17783.2B2E81@lexacorp.com.pg> Message-ID: <41C2DB86.6254.483308@lexacorp.com.pg> On 17 Dec 2004 at 14:09, Darren DICK wrote: > > Hi Stuart > Many thanks > When I copy and paste the line below it errors, then goes red and tells me > it is expecting > Compile Error: Expected: As > The Compiler then goes to the space after the first "C:\mydB.mdb" > > Any thoughts?? > That's what you get when you do things from memory :-( It should indeed be: Name "C:\mydB.mdb" As "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" -- Stuart From d.dick at uws.edu.au Thu Dec 16 21:19:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 14:19:31 +1100 Subject: [AccessD] A2003: rename a file via vba In-Reply-To: Message-ID: <200412170319.iBH3JcRl027910@cooper.uws.edu.au> Thanks David But I am not dealing with any dB objects at all In the old days of dos I would type ren c:\autoexec.bat autoexec.bak To rename the Autoexec to a backup file name Nothing to do with Access objects ieTables, forms, module etc. Any suggestions?? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Friday, 17 December 2004 2:08 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: rename a file via vba this is what I do when exporting a query to Excel (The same would apply to renaming an mdb. Dim Path As String Dim stDocName As String Dim FileName As String Path = "C:\YourPathHere\" stDocName = "qryYourQueryNameHere" FileName = Format(Forms![MonthlyReport]![StartDate], "yyyymmdd") & "MonthlyReport.xls" If PathExists(Path) = False Then MkDir Path DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, Path & FileName You could also use now if you want to use the current date instead of selecting a date from a form: FileName = Format(Now(), "yyyymmdd") & "MonthlyReport.xls" HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Thursday, December 16, 2004 5:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: rename a file via vba Hello all Any suggestion on renaming a file via code PSEUDO CODE EXAMPLE Some thing like Call Rename "C:\mydB.mdb", "C:\mydb" & "_" & Format(Date,"dd/mm/yyyy") & ".mdb" Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 16 21:35:48 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 14:35:48 +1100 Subject: [AccessD] A2003:Connect to a text file at a web address Message-ID: <200412170335.iBH3ZtRl008743@cooper.uws.edu.au> Hello all I have a text file on my website Very vary small It has one line in it similar to... 5.50,True I want to connect to it via link tables When I type in the web address I get a small dialogue saying Connecting to web server.. Then I get an error of LINK TEXT WIZARD: Internet Login Failure Any one know how to pass my logon name and password in this situation? Or if anyone knows of a better situation? Many thanks Darren From stuart at lexacorp.com.pg Thu Dec 16 22:04:17 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Dec 2004 14:04:17 +1000 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <200412170335.iBH3ZtRl008743@cooper.uws.edu.au> Message-ID: <41C2E761.28201.768270@lexacorp.com.pg> On 17 Dec 2004 at 14:35, Darren DICK wrote: > Hello all > I have a text file on my website > Very vary small > It has one line in it similar to... > > 5.50,True > > I want to connect to it via link tables > When I type in the web address I get a small dialogue saying Connecting to > web server.. > Then I get an error of LINK TEXT WIZARD: Internet Login Failure > > Any one know how to pass my logon name and password in this situation? > > Or if anyone knows of a better situation? > I don't know about A2003, but according to A2K Help: "You cannot import from or link to a Microsoft Access database, a text file, or an ODBC data source when importing or linking to an FTP or HTTP server." I'd probably GET the file using FTP and then link to the local copy. -- Stuart From d.dick at uws.edu.au Thu Dec 16 22:16:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 17 Dec 2004 15:16:56 +1100 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C2E761.28201.768270@lexacorp.com.pg> Message-ID: <200412170417.iBH4H2Rl008143@cooper.uws.edu.au> OK Thanks DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 17 December 2004 3:04 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003:Connect to a text file at a web address On 17 Dec 2004 at 14:35, Darren DICK wrote: > Hello all > I have a text file on my website > Very vary small > It has one line in it similar to... > > 5.50,True > > I want to connect to it via link tables When I type in the web address > I get a small dialogue saying Connecting to web server.. > Then I get an error of LINK TEXT WIZARD: Internet Login Failure > > Any one know how to pass my logon name and password in this situation? > > Or if anyone knows of a better situation? > I don't know about A2003, but according to A2K Help: "You cannot import from or link to a Microsoft Access database, a text file, or an ODBC data source when importing or linking to an FTP or HTTP server." I'd probably GET the file using FTP and then link to the local copy. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Dec 17 03:14:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 10:14:50 +0100 Subject: [AccessD] A2003:Connect to a text file at a web address Message-ID: Hi Darren If you have access to this file with no password, you can download it via HTTP: Option Compare Database Option Explicit Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function DownloadFile( _ ByVal strURL As String, _ ByVal strLocalFilename As String) _ As Long ' Download file or page with public access from the web. ' 2004-12-17. Cactus Data ApS, CPH. ' Usage, download a file: ' lngRet = DownloadFile("http://www.databaseadvisors.com/Graphics/conf2002/2002ConferencePicsbySmolin/images/dba02smolin27.jpg", "c:\happybassett.jpg") ' ' Usage, download a page: ' lngRet = DownloadFile("http://www.databaseadvisors.com/conf2002/conf200202.htm", "c:\dbaconference.htm") ' Returns 0 if success, error code if not. ' Error codes: ' -2146697210 "file not found". ' -2146697211 "domain not found". ' Limitation. ' Does not check if local file was created successfully. Dim lngRetVal As Long lngRetVal = URLDownloadToFile(0, strURL & vbNullChar, strLocalFilename & vbNullChar, 0, 0) DownloadFile = lngRetVal End Function Beware of line breaks. /gustav >>> d.dick at uws.edu.au 17-12-2004 04:35:48 >>> Hello all I have a text file on my website Very vary small It has one line in it similar to... 5.50,True I want to connect to it via link tables When I type in the web address I get a small dialogue saying Connecting to web server.. Then I get an error of LINK TEXT WIZARD: Internet Login Failure Any one know how to pass my logon name and password in this situation? Or if anyone knows of a better situation? From pedro at plex.nl Fri Dec 17 11:22:30 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 17 Dec 2004 11:22:30 (MET) Subject: [AccessD] still troubles with IsLoaded Message-ID: <200412171022.iBHAMUWG015811@mailhostC.plex.net> Hello Group, i keeping getting an error on the IsLoaded. "Sub or function not defined" This was working in A97, but in 2003 it is giving me troubles. i tried to Dim al objects, with no result. I can't figure out why Please help Pedro Janssen Private Sub pl_Form_Current() On Error GoTo Err_Form_Current Dim strDocNaam As String Dim Koppelcriterium As String strDocNaam = "Produktenlijst" Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" If IsNull(Me![LEVNAAM]) Then Exit Sub ElseIf IsLoaded("Produktenlijst") Then DoCmd.OpenForm strDocNaam, , , Koppelcriterium End If Exit_Form_Current: Exit Sub Err_Form_Current: MsgBox Err.Description Resume Exit_Form_Current End Sub From Gustav at cactus.dk Fri Dec 17 04:52:26 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 11:52:26 +0100 Subject: [AccessD] still troubles with IsLoaded Message-ID: Hi Pedro IsLoaded() is not an internal function but a custom function. You have to copy it from the old A97 base to a module in the new database. Also, this should read: ElseIf IsLoaded(strDocNaam) Then DoCmd.OpenForm strDocNaam, , , Koppelcriterium /gustav >>> pedro at plex.nl 17-12-2004 11:22:30 >>> Hello Group, i keeping getting an error on the IsLoaded. "Sub or function not defined" This was working in A97, but in 2003 it is giving me troubles. i tried to Dim al objects, with no result. I can't figure out why Please help Pedro Janssen Private Sub pl_Form_Current() On Error GoTo Err_Form_Current Dim strDocNaam As String Dim Koppelcriterium As String strDocNaam = "Produktenlijst" Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" If IsNull(Me![LEVNAAM]) Then Exit Sub ElseIf IsLoaded("Produktenlijst") Then DoCmd.OpenForm strDocNaam, , , Koppelcriterium End If Exit_Form_Current: Exit Sub Err_Form_Current: MsgBox Err.Description Resume Exit_Form_Current End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jarus at amerinet-gpo.com Fri Dec 17 07:33:59 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Fri, 17 Dec 2004 07:33:59 -0600 Subject: [AccessD] AXP to Oracle 9i Message-ID: My IT department has been trying to get me connected via ODBC to an Oracle-hosted environment. Using the Microsoft ODBC for Oracle driver, we have been unable to make a connection. The error message(s) we get: ORA-12154: TNS: could not resolve service name; Driver's SQLSetConnectAttr Failed IM006 0. I am using AXP and Oracle 9i - anyone have suggestions? Thanks so much for any help. Terri Jarus Vice President, Contract Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. From Gustav at cactus.dk Fri Dec 17 08:03:51 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 15:03:51 +0100 Subject: [AccessD] AXP to Oracle 9i Message-ID: Hi Terri You may be better off using the Oracle ODBC driver: http://www.oracle.com/technology/software/tech/windows/odbc/index.html /gustav >>> jarus at amerinet-gpo.com 17-12-2004 14:33:59 >>> My IT department has been trying to get me connected via ODBC to an Oracle-hosted environment. Using the Microsoft ODBC for Oracle driver, we have been unable to make a connection. The error message(s) we get: ORA-12154: TNS: could not resolve service name; Driver's SQLSetConnectAttr Failed IM006 0. I am using AXP and Oracle 9i - anyone have suggestions? Thanks so much for any help. Terri Jarus Vice President, Contract Services jarus at amerinet-gpo.com 314-542-1902 From Gustav at cactus.dk Fri Dec 17 08:37:13 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 15:37:13 +0100 Subject: [AccessD] Looking for TWAIN ocx Message-ID: Neal, did you decide for a tool? /gustav >>> Gustav at cactus.dk 30-11-2004 12:18:11 >>> Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From nkling at co.montgomery.ny.us Fri Dec 17 08:39:58 2004 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Fri, 17 Dec 2004 09:39:58 -0500 Subject: [AccessD] Looking for TWAIN ocx Message-ID: <30BC111F638EB54082001A7E7282FE41114CCE@elmo.co.montgomery.ny.us> I'm going to be experimenting with the Kodak Image Scan Control. Access is not my primary job these days so I'll end up working on this "as time permits". I'll report back here with my results in a month or two. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, December 17, 2004 9:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Looking for TWAIN ocx Neal, did you decide for a tool? /gustav >>> Gustav at cactus.dk 30-11-2004 12:18:11 >>> Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Dec 17 08:42:49 2004 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 17 Dec 2004 08:42:49 -0600 Subject: [AccessD] AXP to Oracle 9i In-Reply-To: References: Message-ID: Hi Terri, You need to have a file on your system called TNSNAMES.ORA This file tells the ODBC driver where the Oracle database lives. It's possible that you have one on your system already but perhaps it doesn't contain the proper entry for the particular instance of the Oracle database that you are attempting to access. Your Oracle DBA's should be able to provide this TNSNAMES.ORA file to you. It could be possible that you have the TNSNAMES.ORA file already but it is not in the proper location too. Mine lives in the folder; C:\Oracle\Ora8i\network\ADMIN although doing a search I see I also have one in the C:\orant\net80\admin folder - both appear to be the current version of the file. so I'm maybe not sure which one is the right place for it to be. I do ODBC to Oracle pretty much every day, both to 8i and 9i databases. I use both Oracle and Microsoft drivers. At one point the Microsoft driver seemed to work better but we have been starting to use the Oracle driver recently as it provides the ability to update the password whereas the Microsoft one does not. I have had pretty good luck in googling on Oracle error numbers too - for example if you google on your error message, this is the first link that comes up http://ora-12154.ora-code.com/ This one is a little further down. http://www.orafaq.com/msgboard/sqlnet/messages/2544.htm I guess there is also another .ORA file you need called SQLNET.ORA that points to the TNSNAMES.ORA file. You may also need to run at least part of the Oracle Client Install in order to get SQLNET installed on your machine that is used in the background. Do a search on your system for ".ORA" files and see what you see. If you don't find any, I would say you need to do the Oracle Client Install in order to get them set up. Once you have a TNSNAMES.ORA file on your system, you will need to verify that it contains the info that points to your Oracle databases. Your dba's will need to provide you with this file. This file is used for other tools too so they should definately be familiar with it. Good luck! On Fri, 17 Dec 2004 07:33:59 -0600, Terri Jarus wrote: > My IT department has been trying to get me connected via ODBC to an > Oracle-hosted environment. Using the Microsoft ODBC for Oracle driver, > we have been unable to make a connection. The error message(s) we get: > ORA-12154: TNS: could not resolve service name; Driver's > SQLSetConnectAttr Failed IM006 0. > > I am using AXP and Oracle 9i - anyone have suggestions? > > Thanks so much for any help. > > Terri Jarus > Vice President, Contract Services > jarus at amerinet-gpo.com > 314-542-1902 > > --------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individuals or entities to whom they > are addressed. If you have received this email in error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From Gustav at cactus.dk Fri Dec 17 09:13:19 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 16:13:19 +0100 Subject: [AccessD] Looking for TWAIN ocx Message-ID: Hi Neal OK. Problem is that I may have a need with a closer deadline, so I hoped you had had some early experiences ... /gustav >>> nkling at co.montgomery.ny.us 17-12-2004 15:39:58 >>> I'm going to be experimenting with the Kodak Image Scan Control. Access is not my primary job these days so I'll end up working on this "as time permits". I'll report back here with my results in a month or two. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, December 17, 2004 9:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Looking for TWAIN ocx Neal, did you decide for a tool? /gustav >>> Gustav at cactus.dk 30-11-2004 12:18:11 >>> Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From Mark.Mitsules at ngc.com Fri Dec 17 09:14:49 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 17 Dec 2004 10:14:49 -0500 Subject: [AccessD] FW: [dba-OT] Returning The Favor Message-ID: One more available... Mark -----Original Message----- From: Mitsules, Mark Sent: Friday, December 17, 2004 8:41 AM To: dba-OT at databaseadvisors.com Subject: [dba-OT] Returning The Favor With my thanks to Jon Tydda, for the initial invite, I am pleased to return the favor to the list and offer 2 Gmail invites to the first responders. I will apologize ahead of time to anyone who is slighted because of internet traffic. Mark _______________________________________________ dba-OT mailing list dba-OT at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-ot Website: http://www.databaseadvisors.com From mgauk at btconnect.com Fri Dec 17 09:29:06 2004 From: mgauk at btconnect.com (Max Wanadoo) Date: Fri, 17 Dec 2004 15:29:06 -0000 Subject: [AccessD] FW: [dba-OT] Returning The Favor In-Reply-To: Message-ID: <200412171529.iBHFTXl23635@databaseadvisors.com> Yes Please Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 17 December 2004 15:15 To: [AccessD] Subject: [AccessD] FW: [dba-OT] Returning The Favor One more available... Mark -----Original Message----- From: Mitsules, Mark Sent: Friday, December 17, 2004 8:41 AM To: dba-OT at databaseadvisors.com Subject: [dba-OT] Returning The Favor With my thanks to Jon Tydda, for the initial invite, I am pleased to return the favor to the list and offer 2 Gmail invites to the first responders. I will apologize ahead of time to anyone who is slighted because of internet traffic. Mark _______________________________________________ dba-OT mailing list dba-OT at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-ot Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.816 / Virus Database: 554 - Release Date: 14/12/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.816 / Virus Database: 554 - Release Date: 14/12/2004 From alan.lawhon at us.army.mil Fri Dec 17 10:38:50 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Fri, 17 Dec 2004 10:38:50 -0600 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB0C3@redstone819.ad.redstone.army.mil> I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. In the "Introduction" (page "xx") under "System Requirements," Rick states that you need a copy of "Microsoft Visual Studio .NET Version 2002" installed on your machine in order to run the sample code from the book. (Rick used the "Enterprise Developer" edition, but he says that the "Professional" edition will also work.) I would like to obtain a (relatively inexpensive) copy - if possible - of Visual Studio, install it on my home computer, and start "playing around" with VB.NET - and working my way thru the examples in Rick's book. Since I am not a "professional" developer, I don't have an MSDN subscription, so I can't get a "free copy" of Visual Studio [from Microsoft] via that route. I've been to Amazon.com's web site (where I buy all my books). I can get a fresh [brand new] copy of "Microsoft Visual Studio .NET 2003 Professional Special Edition" for $699.00 - which is kind of steep for me ... (In fact, there's NO WAY I'm going to pay $700.00 out of my own pocket for a piece of software that I'll basically be using for training purposes.) I have heard that Microsoft passes out free copies of Visual Studio if you can trick your customer into sending you to one of Microsoft's week-long development seminars. I have a feeling we won't be very successful with that option either. (Our customer got "burned" once before by a previous crew of "developers" who hornswaggled their way into a bunch of very expensive Oracle training. After the training, they spruced up their resumes and immediately left for jobs elsewhere with the result that our customer received no return for their "training investment". They are now very wary about paying for any kind of "professional development" or IT training. We are basically expected to either already know what we need to know, or pick it up on our own - which is no big problem for me. My problem is that I'm hoping there is some way I can obtain a (relatively inexpensive) copy of "Visual Studio .NET Version 2002" for (maybe) a couple of hundred bucks - $250.00 at most - if that is reasonable for a new "authentic" unopened box. I've run across some private sellers on the internet who are offering "used" copies of Visual Studio at various prices, but I'm not sure I want to go that route - mainly due to uncertainty about what I might actually be getting - and questions about whether or not Microsoft will support my purchase. (I've always bought "full up" brand new copies of Microsoft software just to avoid legal hassles. I know ... that makes me a sap, but I'll never be arrested by the FBI or carted off to prison for piracy, so it all works out in the long run.) If any of you have an idea or suggestion, I will be very grateful for your advice. I may go ahead and split for the $699.00 copy from Amazon.com, but only as a last resort ... (I'm looking for the cheapest "legal" copy of Visual Studio that I can get.) Alan C. Lawhon From david.powell at kcl.ac.uk Fri Dec 17 10:57:51 2004 From: david.powell at kcl.ac.uk (david Powell) Date: Fri, 17 Dec 2004 16:57:51 -0000 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB0C3@redstone819.ad.redstone.army.mil> Message-ID: <200412171659.iBHGxbl14606@databaseadvisors.com> On the MSDN web site the Express versions of the VS 2005 beta are currently free to download. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 17 December 2004 16:39 To: accessd at databaseadvisors.com Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. From alan.lawhon at us.army.mil Fri Dec 17 11:12:18 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Fri, 17 Dec 2004 11:12:18 -0600 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB0C6@redstone819.ad.redstone.army.mil> David: Thanks for the info! I'll (definitely) check this out ... Alan C. Lawhon -----Original Message----- From: david Powell [mailto:david.powell at kcl.ac.uk] Sent: Friday, December 17, 2004 10:58 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? On the MSDN web site the Express versions of the VS 2005 beta are currently free to download. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: 17 December 2004 16:39 To: accessd at databaseadvisors.com Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Dec 17 11:25:26 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 17 Dec 2004 09:25:26 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address References: <200412170417.iBH4H2Rl008143@cooper.uws.edu.au> Message-ID: <41C31686.40705@shaw.ca> You can also use this on Win2000 and higher This works for me using WinHttp when the site uses basic authentication: There are some other winhttp methods you can use to get around server proxies etc. Dim objWinHttp as object Dim strURL as string Dim strHTML as string 'your returned file strURL = "http://somesite.com" Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") objWinHttp.Open "GET", strURL objWinHttp.SetCredentials "mylogin", "mypasswd", 0 objWinHttp.Send strHTML = objWinHttp.ResponseText Set objWinHttp = Nothing Darren DICK wrote: >OK Thanks > >DD > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan >Sent: Friday, 17 December 2004 3:04 PM >To: Access Developers discussion and problemsolving >Subject: Re: [AccessD] A2003:Connect to a text file at a web address > >On 17 Dec 2004 at 14:35, Darren DICK wrote: > > > >>Hello all >>I have a text file on my website >>Very vary small >>It has one line in it similar to... >> >>5.50,True >> >>I want to connect to it via link tables When I type in the web address >>I get a small dialogue saying Connecting to web server.. >>Then I get an error of LINK TEXT WIZARD: Internet Login Failure >> >>Any one know how to pass my logon name and password in this situation? >> >>Or if anyone knows of a better situation? >> >> >> > >I don't know about A2003, but according to A2K Help: >"You cannot import from or link to a Microsoft Access database, a text file, >or an ODBC data source when importing or linking to an FTP or HTTP server." > > >I'd probably GET the file using FTP and then link to the local copy. > > > >-- >Stuart > > > > -- Marty Connelly Victoria, B.C. Canada From KIsmert at TexasSystems.com Fri Dec 17 11:31:49 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 17 Dec 2004 11:31:49 -0600 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2965@TTNEXCHCL2.hshhp.com> Message-ID: <003b01c4e45e$4ac4b280$2a3ca8c0@TEXASSYSTEMS.COM> Jim, Mark, Francisco, >I believe Hwnd is unique as well. > >Jim See the Note in "hWnd Property", http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vb98/html/v bprohwnd.asp What Microsoft is saying in this topic, and the Access Help topic, is that while the hWnd for a window will be unique, you can't count on it to keep the same value over time. So, if you key your form collection using hWnd, any function tries to find the form instance in the collection based on the current hWnd is not guaranteed to work. The hWnd will still be unique, it just may not be the same value you stored when you added the form to the collection. In one of my object form managers, I use a class module-level variable to guarantee a unique, stable ID: Private lIDCounter As Long Public Sub AddForm(rFrm As Access.Form) Dim sID As String lIDCounter = lIDCounter + 1 sID = CStr(lIDCounter) colForms.Add rFrm, sID rFrm.SetInstanceID sID End Sub Of course, each form participating in this scheme now needs to have a SetInstanceID method: Private sInstanceID As String Public Sub SetInstanceID(sID As String) sInstanceID = sID End Sub Now the form, when it is calling back to the managing object, can use its sInstanceID to identify itself. This is extra work, but do you want to be 99% sure your Form ID solution will work, or 100%? -Ken From Gustav at cactus.dk Fri Dec 17 11:54:40 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 18:54:40 +0100 Subject: [AccessD] Looking for TWAIN ocx Message-ID: Hi all If someone else should be working with this topic and wonder where the Wang/Kodak imaging controls went with Windows XP, this page may be of interest: http://www.parkenet.com/apl/ImageEditor.htm /gustav >>> nkling at co.montgomery.ny.us 17-12-2004 15:39:58 >>> I'm going to be experimenting with the Kodak Image Scan Control. Access is not my primary job these days so I'll end up working on this "as time permits". I'll report back here with my results in a month or two. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, December 17, 2004 9:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Looking for TWAIN ocx Neal, did you decide for a tool? /gustav >>> Gustav at cactus.dk 30-11-2004 12:18:11 >>> Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From martyconnelly at shaw.ca Fri Dec 17 12:30:56 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 17 Dec 2004 10:30:56 -0800 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? References: <200412171659.iBHGxbl14606@databaseadvisors.com> Message-ID: <41C325E0.5060101@shaw.ca> Don't forget to read the MSDN blogs and updates on this. For example here are the links for the download and white papers on SQL Server 2005 Express Manager - A new lightweight and easy to use tool for managing SQL Server It is a replacement for Enterprise Manger. There are problems using both simultaneously as DMO has been replace by SMO Remember this is a Beta and bad things can happen. http://blogs.msdn.com/sqlexpress/archive/2004/12/03/274429.aspx david Powell wrote: >On the MSDN web site the Express versions of the VS 2005 beta are currently >free to download. > >David > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C >Contractor/Morgan Research >Sent: 17 December 2004 16:39 >To: accessd at databaseadvisors.com >Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? > >I have recently bought a copy of Rick Dobson's book: "Programming Microsoft >Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a >treasure trove full of valuable information that will help us "web enable" >an environmental database application here at work. > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Dec 17 12:39:02 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 17 Dec 2004 10:39:02 -0800 Subject: [AccessD] still troubles with IsLoaded References: <200412171022.iBHAMUWG015811@mailhostC.plex.net> Message-ID: <41C327C6.1060806@shaw.ca> Here is the IsLoaded function that used to be in utility.mda that was an automatic addin for Access 97 This is a copy of routine from northwind.mbd Function IsLoaded(ByVal strFormName As String) As Boolean ' Returns True if the specified form is open in Form view or Datasheet view. Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then If Forms(strFormName).CurrentView <> conDesignView Then IsLoaded = True End If End If End Function pedro at plex.nl wrote: >Hello Group, > >i keeping getting an error on the IsLoaded. "Sub or function not defined" >This was working in A97, but in 2003 it is giving me troubles. > >i tried to Dim al objects, with no result. > >I can't figure out why > >Please help > >Pedro Janssen > > > >Private Sub pl_Form_Current() >On Error GoTo Err_Form_Current > > Dim strDocNaam As String > Dim Koppelcriterium As String > > strDocNaam = "Produktenlijst" > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > If IsNull(Me![LEVNAAM]) Then > Exit Sub > ElseIf IsLoaded("Produktenlijst") Then > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > End If > >Exit_Form_Current: > Exit Sub > >Err_Form_Current: > MsgBox Err.Description > Resume Exit_Form_Current > >End Sub > > -- Marty Connelly Victoria, B.C. Canada From cyx5 at cdc.gov Fri Dec 17 12:50:15 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 17 Dec 2004 13:50:15 -0500 Subject: [AccessD] still troubles with IsLoaded Message-ID: I hear that there is an isloaded function that is new to Access 2003. The syntax would be: If CurrentProject.AllForms("frmVestigingenForm").IsLoaded -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, December 17, 2004 1:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] still troubles with IsLoaded Here is the IsLoaded function that used to be in utility.mda that was an automatic addin for Access 97 This is a copy of routine from northwind.mbd Function IsLoaded(ByVal strFormName As String) As Boolean ' Returns True if the specified form is open in Form view or Datasheet view. Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then If Forms(strFormName).CurrentView <> conDesignView Then IsLoaded = True End If End If End Function pedro at plex.nl wrote: >Hello Group, > >i keeping getting an error on the IsLoaded. "Sub or function not defined" >This was working in A97, but in 2003 it is giving me troubles. > >i tried to Dim al objects, with no result. > >I can't figure out why > >Please help > >Pedro Janssen > > > >Private Sub pl_Form_Current() >On Error GoTo Err_Form_Current > > Dim strDocNaam As String > Dim Koppelcriterium As String > > strDocNaam = "Produktenlijst" > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > If IsNull(Me![LEVNAAM]) Then > Exit Sub > ElseIf IsLoaded("Produktenlijst") Then > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > End If > >Exit_Form_Current: > Exit Sub > >Err_Form_Current: > MsgBox Err.Description > Resume Exit_Form_Current > >End Sub > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Dec 17 13:26:49 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2004 20:26:49 +0100 Subject: [AccessD] still troubles with IsLoaded Message-ID: Hi Pedro That (see below) is your explanation. You have probably used utility.mda with A97 (I don't, that's why I couldn't find it), while you would do it differently in newer versions of Access. This: booOpen = CurrentProject.AllForms("frmVestigingenForm").IsLoaded works in Access XP/2002 as well; don't know about Access 2000. It behaves, though, somewhat differently than IsLoaded() because it throws an error if the form doesn't exist at all. /gustav >>> cyx5 at cdc.gov 17-12-2004 19:50:15 >>> I hear that there is an isloaded function that is new to Access 2003. The syntax would be: If CurrentProject.AllForms("frmVestigingenForm").IsLoaded -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, December 17, 2004 1:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] still troubles with IsLoaded Here is the IsLoaded function that used to be in utility.mda that was an automatic addin for Access 97 This is a copy of routine from northwind.mbd Function IsLoaded(ByVal strFormName As String) As Boolean ' Returns True if the specified form is open in Form view or Datasheet view. Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then If Forms(strFormName).CurrentView <> conDesignView Then IsLoaded = True End If End If End Function pedro at plex.nl wrote: >Hello Group, > >i keeping getting an error on the IsLoaded. "Sub or function not defined" >This was working in A97, but in 2003 it is giving me troubles. > >i tried to Dim al objects, with no result. > >I can't figure out why > >Please help > >Pedro Janssen > > > >Private Sub pl_Form_Current() >On Error GoTo Err_Form_Current > > Dim strDocNaam As String > Dim Koppelcriterium As String > > strDocNaam = "Produktenlijst" > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > If IsNull(Me![LEVNAAM]) Then > Exit Sub > ElseIf IsLoaded("Produktenlijst") Then > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > End If > >Exit_Form_Current: > Exit Sub > >Err_Form_Current: > MsgBox Err.Description > Resume Exit_Form_Current > >End Sub From Lambert.Heenan at AIG.com Fri Dec 17 13:44:04 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 17 Dec 2004 14:44:04 -0500 Subject: [AccessD] still troubles with IsLoaded Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A29B1@xlivmbx21.aig.com> IsLoaded is built in from at least Access 2002. It syntax is Dim boolResult as Boolean boolResult = expression.IsLoaded where "expression" is any Access object. The IsLoaded() function from Access 97 Northwind is simply a hand rolled VBA function (not a part of Utility.mda) and it works only with forms, though could be modified for other objects. I find that the old IsLoaded function coexists happily with the built-in IsLoaded Property in Access 2002. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Friday, December 17, 2004 1:50 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] still troubles with IsLoaded > > I hear that there is an isloaded function that is new to Access 2003. > The syntax would be: > If CurrentProject.AllForms("frmVestigingenForm").IsLoaded > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Friday, December 17, 2004 1:39 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] still troubles with IsLoaded > > > Here is the IsLoaded function that used to be in utility.mda that was an > > automatic addin for Access 97 > This is a copy of routine from northwind.mbd > > Function IsLoaded(ByVal strFormName As String) As Boolean > ' Returns True if the specified form is open in Form view or Datasheet > view. > > Const conObjStateClosed = 0 > Const conDesignView = 0 > > If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> > conObjStateClosed Then > If Forms(strFormName).CurrentView <> conDesignView Then > IsLoaded = True > End If > End If > > End Function > > > pedro at plex.nl wrote: > > >Hello Group, > > > >i keeping getting an error on the IsLoaded. "Sub or function not > defined" > >This was working in A97, but in 2003 it is giving me troubles. > > > >i tried to Dim al objects, with no result. > > > >I can't figure out why > > > >Please help > > > >Pedro Janssen > > > > > > > >Private Sub pl_Form_Current() > >On Error GoTo Err_Form_Current > > > > Dim strDocNaam As String > > Dim Koppelcriterium As String > > > > strDocNaam = "Produktenlijst" > > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > > > If IsNull(Me![LEVNAAM]) Then > > Exit Sub > > ElseIf IsLoaded("Produktenlijst") Then > > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > > End If > > > >Exit_Form_Current: > > Exit Sub > > > >Err_Form_Current: > > MsgBox Err.Description > > Resume Exit_Form_Current > > > >End Sub > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From lists at theopg.com Fri Dec 17 14:19:38 2004 From: lists at theopg.com (MarkH) Date: Fri, 17 Dec 2004 20:19:38 -0000 Subject: [AccessD] Multi-Instance Forms re-visited In-Reply-To: <003b01c4e45e$4ac4b280$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <000401c4e475$bd095af0$c639fc3e@netboxxp> Excellent... Thanks for that, so far I have not experienced any problems but I don't think I'll wait for something to go wrong... Thanks again Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: 17 December 2004 17:32 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Multi-Instance Forms re-visited Jim, Mark, Francisco, >I believe Hwnd is unique as well. > >Jim See the Note in "hWnd Property", http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vb98/ht ml/v bprohwnd.asp What Microsoft is saying in this topic, and the Access Help topic, is that while the hWnd for a window will be unique, you can't count on it to keep the same value over time. So, if you key your form collection using hWnd, any function tries to find the form instance in the collection based on the current hWnd is not guaranteed to work. The hWnd will still be unique, it just may not be the same value you stored when you added the form to the collection. In one of my object form managers, I use a class module-level variable to guarantee a unique, stable ID: Private lIDCounter As Long Public Sub AddForm(rFrm As Access.Form) Dim sID As String lIDCounter = lIDCounter + 1 sID = CStr(lIDCounter) colForms.Add rFrm, sID rFrm.SetInstanceID sID End Sub Of course, each form participating in this scheme now needs to have a SetInstanceID method: Private sInstanceID As String Public Sub SetInstanceID(sID As String) sInstanceID = sID End Sub Now the form, when it is calling back to the managing object, can use its sInstanceID to identify itself. This is extra work, but do you want to be 99% sure your Form ID solution will work, or 100%? -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.805 / Virus Database: 547 - Release Date: 03/12/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.805 / Virus Database: 547 - Release Date: 03/12/2004 From stuart at lexacorp.com.pg Fri Dec 17 17:11:27 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 18 Dec 2004 09:11:27 +1000 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C31686.40705@shaw.ca> Message-ID: <41C3F43F.3393.490C4B6@lexacorp.com.pg> On 17 Dec 2004 at 9:25, MartyConnelly wrote: > You can also use this on Win2000 and higher > This works for me using WinHttp when the site uses basic authentication: > There are some other winhttp methods you can use to get around server > proxies etc. > > Dim objWinHttp as object > Dim strURL as string > Dim strHTML as string 'your returned file > > > strURL = "http://somesite.com" > Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") > You have to be a bit careful here and it's not redistributable because there are different versiosn of WinHttp out there. Any of the following may be required on W2K/XP systems ...Request.5 ...Request.5.1 or Request.5.1.1 you need to look at the exact version number when you create the reference. -- Stuart From BarbaraRyan at cox.net Fri Dec 17 19:37:36 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 17 Dec 2004 20:37:36 -0500 Subject: [AccessD] Closing a form from a module procedure Message-ID: <001701c4e4a2$27a0c8e0$0a00a8c0@cx470148a> Simply put, in an Access 97 application I have Form1 and Module1. A pushbutton on Form1 executes a procedure in Module1 which closes Form1 (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does not appear to be working --- I receive an error on the DeleteObject command, saying that Form1 is still open. Yet when I run the following IsLoaded function after the Close command, it returns false (i.e., Form1 is NOT open). Any ideas? Thanks, Barb Ryan Public Function IsLoaded(frmName As String) As Boolean 'checks if a particular form is open Dim frm As Integer IsLoaded = False For frm = 0 To Forms.Count - 1 If Forms(frm).Name = frmName Then IsLoaded = True Exit For End If Next frm End Function From stuart at lexacorp.com.pg Fri Dec 17 19:53:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 18 Dec 2004 11:53:45 +1000 Subject: [AccessD] Closing a form from a module procedure In-Reply-To: <001701c4e4a2$27a0c8e0$0a00a8c0@cx470148a> Message-ID: <41C41A49.15767.5255A20@lexacorp.com.pg> On 17 Dec 2004 at 20:37, Barbara Ryan wrote: > Simply put, in an Access 97 application I have Form1 and Module1. A > pushbutton on Form1 executes a procedure in Module1 which closes Form1 > (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 > (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does not > appear to be working --- I receive an error on the DeleteObject command, > saying that Form1 is still open. Yet when I run the following IsLoaded > function after the Close command, it returns false (i.e., Form1 is NOT > open). Trying to explain it simply without getting into details about stacks, pointers, calls etc: While running the module procedure, a pointer will still be open saying where to return execution to once the procedure is over. SInce that pointer is to a a procedure in the form, the system cannot "completely close" the form at that stage. It can remove the name from the Forms collection, but it can't clean up and get all traces of the form out of memory until the pointer has been used and removed. Even though the actual delete command is not in the form's module, what you are doing is effectively the same as trying to delete the form from code within the form. -- Stuart From jmoss111 at bellsouth.net Fri Dec 17 20:46:24 2004 From: jmoss111 at bellsouth.net (James Moss) Date: Fri, 17 Dec 2004 20:46:24 -0600 Subject: [AccessD] (no subject) Message-ID: <20041218024625.MWIV2443.imf18aec.mail.bellsouth.net@jmoss3> Alan, I purchased from this seller the same item listed for sale a couple of months ago, and all I know is that it works and registered with M$ without a hitch, see link below http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&category=46327&item=7121978364 &rd=1&ssPageName=WDVW Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Friday, December 17, 2004 10:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. In the "Introduction" (page "xx") under "System Requirements," Rick states that you need a copy of "Microsoft Visual Studio .NET Version 2002" installed on your machine in order to run the sample code from the book. (Rick used the "Enterprise Developer" edition, but he says that the "Professional" edition will also work.) I would like to obtain a (relatively inexpensive) copy - if possible - of Visual Studio, install it on my home computer, and start "playing around" with VB.NET - and working my way thru the examples in Rick's book. Since I am not a "professional" developer, I don't have an MSDN subscription, so I can't get a "free copy" of Visual Studio [from Microsoft] via that route. I've been to Amazon.com's web site (where I buy all my books). I can get a fresh [brand new] copy of "Microsoft Visual Studio .NET 2003 Professional Special Edition" for $699.00 - which is kind of steep for me ... (In fact, there's NO WAY I'm going to pay $700.00 out of my own pocket for a piece of software that I'll basically be using for training purposes.) I have heard that Microsoft passes out free copies of Visual Studio if you can trick your customer into sending you to one of Microsoft's week-long development seminars. I have a feeling we won't be very successful with that option either. (Our customer got "burned" once before by a previous crew of "developers" who hornswaggled their way into a bunch of very expensive Oracle training. After the training, they spruced up their resumes and immediately left for jobs elsewhere with the result that our customer received no return for their "training investment". They are now very wary about paying for any kind of "professional development" or IT training. We are basically expected to either already know what we need to know, or pick it up on our own - which is no big problem for me. My problem is that I'm hoping there is some way I can obtain a (relatively inexpensive) copy of "Visual Studio .NET Version 2002" for (maybe) a couple of hundred bucks - $250.00 at most - if th! at is reasonable for a new "authentic" unopened box. I've run across some private sellers on the internet who are offering "used" copies of Visual Studio at various prices, but I'm not sure I want to go that route - mainly due to uncertainty about what I might actually be getting - and questions about whether or not Microsoft will support my purchase. (I've always bought "full up" brand new copies of Microsoft software just to avoid legal hassles. I know ... that makes me a sap, but I'll never be arrested by the FBI or carted off to prison for piracy, so it all works out in the long run.) If any of you have an idea or suggestion, I will be very grateful for your advice. I may go ahead and split for the $699.00 copy from Amazon.com, but only as a last resort ... (I'm looking for the cheapest "legal" copy of Visual Studio that I can get.) Alan C. Lawhon -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 17 21:07:44 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 17 Dec 2004 22:07:44 -0500 Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB0C3@redstone819.ad.redstone.army.mil> Message-ID: <001001c4e4ae$be6a0c80$e8dafea9@ColbyM6805> If you are a student (or a teacher if I'm not mistaken) at a school you can get a student edition for about $99. That's what I did - you just have to fax your student ID to the store you buy from. The deal then is that the license says you cannot develop professionally using that copy, which really shouldn't be an issue since once you start earning money for using .net you can then afford to buy it. AFAICT the student edition is the whole enchilada with a limited license. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Friday, December 17, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Where Can I Get a "Cheap" Copy of Visual Studio .NET? I have recently bought a copy of Rick Dobson's book: "Programming Microsoft Visual Basic .NET for Microsoft Access Databases". Rick's book looks like a treasure trove full of valuable information that will help us "web enable" an environmental database application here at work. In the "Introduction" (page "xx") under "System Requirements," Rick states that you need a copy of "Microsoft Visual Studio .NET Version 2002" installed on your machine in order to run the sample code from the book. (Rick used the "Enterprise Developer" edition, but he says that the "Professional" edition will also work.) I would like to obtain a (relatively inexpensive) copy - if possible - of Visual Studio, install it on my home computer, and start "playing around" with VB.NET - and working my way thru the examples in Rick's book. Since I am not a "professional" developer, I don't have an MSDN subscription, so I can't get a "free copy" of Visual Studio [from Microsoft] via that route. I've been to Amazon.com's web site (where I buy all my books). I can get a fresh [brand new] copy of "Microsoft Visual Studio .NET 2003 Professional Special Edition" for $699.00 - which is kind of steep for me ... (In fact, there's NO WAY I'm going to pay $700.00 out of my own pocket for a piece of software that I'll basically be using for training purposes.) I have heard that Microsoft passes out free copies of Visual Studio if you can trick your customer into sending you to one of Microsoft's week-long development seminars. I have a feeling we won't be very successful with that option either. (Our customer got "burned" once before by a previous crew of "developers" who hornswaggled their way into a bunch of very expensive Oracle training. After the training, they spruced up their resumes and immediately left for jobs elsewhere with the result that our customer received no return for their "training investment". They are now very wary about paying for any kind of "professional development" or IT training. We are basically expected to either already know what we need to know, or pick it up on our own - which is no big problem for me. My problem is that I'm hoping there is some way I can obtain a (relatively inexpensive) copy of "Visual Studio .NET Version 2002" for (maybe) a couple of hundred bucks - $250.00 at most - if th! at is reasonable for a new "authentic" unopened box. I've run across some private sellers on the internet who are offering "used" copies of Visual Studio at various prices, but I'm not sure I want to go that route - mainly due to uncertainty about what I might actually be getting - and questions about whether or not Microsoft will support my purchase. (I've always bought "full up" brand new copies of Microsoft software just to avoid legal hassles. I know ... that makes me a sap, but I'll never be arrested by the FBI or carted off to prison for piracy, so it all works out in the long run.) If any of you have an idea or suggestion, I will be very grateful for your advice. I may go ahead and split for the $699.00 copy from Amazon.com, but only as a last resort ... (I'm looking for the cheapest "legal" copy of Visual Studio that I can get.) Alan C. Lawhon -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Sat Dec 18 02:38:51 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 18 Dec 2004 09:38:51 +0100 Subject: [AccessD] still troubles with IsLoaded References: <1D7828CDB8350747AFE9D69E0E90DA1F073A29B1@xlivmbx21.aig.com> Message-ID: <001d01c4e4dd$01790430$f2c581d5@pedro> Hello All, thanks for the help. All this must leed to a function that is working. Pedro Janssen ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" ; "'Nicholson, Karen'" Sent: Friday, December 17, 2004 8:44 PM Subject: RE: [AccessD] still troubles with IsLoaded > IsLoaded is built in from at least Access 2002. It syntax is > > Dim boolResult as Boolean > > boolResult = expression.IsLoaded > > where "expression" is any Access object. > > The IsLoaded() function from Access 97 Northwind is simply a hand rolled VBA > function (not a part of Utility.mda) and it works only with forms, though > could be modified for other objects. > > I find that the old IsLoaded function coexists happily with the built-in > IsLoaded Property in Access 2002. > > Lambert > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > > Sent: Friday, December 17, 2004 1:50 PM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] still troubles with IsLoaded > > > > I hear that there is an isloaded function that is new to Access 2003. > > The syntax would be: > > If CurrentProject.AllForms("frmVestigingenForm").IsLoaded > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > > Sent: Friday, December 17, 2004 1:39 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] still troubles with IsLoaded > > > > > > Here is the IsLoaded function that used to be in utility.mda that was an > > > > automatic addin for Access 97 > > This is a copy of routine from northwind.mbd > > > > Function IsLoaded(ByVal strFormName As String) As Boolean > > ' Returns True if the specified form is open in Form view or Datasheet > > view. > > > > Const conObjStateClosed = 0 > > Const conDesignView = 0 > > > > If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> > > conObjStateClosed Then > > If Forms(strFormName).CurrentView <> conDesignView Then > > IsLoaded = True > > End If > > End If > > > > End Function > > > > > > pedro at plex.nl wrote: > > > > >Hello Group, > > > > > >i keeping getting an error on the IsLoaded. "Sub or function not > > defined" > > >This was working in A97, but in 2003 it is giving me troubles. > > > > > >i tried to Dim al objects, with no result. > > > > > >I can't figure out why > > > > > >Please help > > > > > >Pedro Janssen > > > > > > > > > > > >Private Sub pl_Form_Current() > > >On Error GoTo Err_Form_Current > > > > > > Dim strDocNaam As String > > > Dim Koppelcriterium As String > > > > > > strDocNaam = "Produktenlijst" > > > Koppelcriterium = "[Levcode] = Forms![Lev]![Levcode]" > > > > > > If IsNull(Me![LEVNAAM]) Then > > > Exit Sub > > > ElseIf IsLoaded("Produktenlijst") Then > > > DoCmd.OpenForm strDocNaam, , , Koppelcriterium > > > End If > > > > > >Exit_Form_Current: > > > Exit Sub > > > > > >Err_Form_Current: > > > MsgBox Err.Description > > > Resume Exit_Form_Current > > > > > >End Sub > > > > > > > > > > -- > > Marty Connelly > > Victoria, B.C. > > Canada > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Sat Dec 18 04:39:52 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 18 Dec 2004 11:39:52 +0100 Subject: [AccessD] Closing a form from a module procedure Message-ID: Hi Barbara Further to Stuart's explanation, why are you deleting the form? Never heard of that before within an application - why don't you just leave it? /gustav >>> BarbaraRyan at cox.net 18-12-2004 02:37:36 >>> Simply put, in an Access 97 application I have Form1 and Module1. A pushbutton on Form1 executes a procedure in Module1 which closes Form1 (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does not appear to be working --- I receive an error on the DeleteObject command, saying that Form1 is still open. Yet when I run the following IsLoaded function after the Close command, it returns false (i.e., Form1 is NOT open). From BarbaraRyan at cox.net Sat Dec 18 07:26:02 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Sat, 18 Dec 2004 08:26:02 -0500 Subject: [AccessD] Closing a form from a module procedure References: Message-ID: <002501c4e505$1f078440$0a00a8c0@cx470148a> The procedure that is executed replaces objects (i.e., deletes, then imports) from the user's front-end database with objects from a database that I email to them. It works great unless I need to replace "Form1" (the form that contains the pushbutton to execute this procedure). Any ideas on how to accomplish this? Thanks, Barb Ryan ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 18, 2004 5:39 AM Subject: Re: [AccessD] Closing a form from a module procedure > Hi Barbara > > Further to Stuart's explanation, why are you deleting the form? Never > heard of that before within an application - why don't you just leave > it? > > /gustav > > >>> BarbaraRyan at cox.net 18-12-2004 02:37:36 >>> > Simply put, in an Access 97 application I have Form1 and Module1. A > pushbutton on Form1 executes a procedure in Module1 which closes Form1 > (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 > (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does > not appear to be working --- I receive an error on the DeleteObject > command, saying that Form1 is still open. Yet when I run the following > IsLoaded function after the Close command, it returns false (i.e., Form1 > is NOT open). > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Dec 18 07:38:24 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 18 Dec 2004 14:38:24 +0100 Subject: [AccessD] Closing a form from a module procedure Message-ID: Hi Barbara Open another (temporary) form and kill form1 from that. Then copy the new form1, open form1, close the temp form. /gustav >>> BarbaraRyan at cox.net 18-12-2004 14:26:02 >>> The procedure that is executed replaces objects (i.e., deletes, then imports) from the user's front-end database with objects from a database that I email to them. It works great unless I need to replace "Form1" (the form that contains the pushbutton to execute this procedure). Any ideas on how to accomplish this? Thanks, Barb Ryan ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 18, 2004 5:39 AM Subject: Re: [AccessD] Closing a form from a module procedure > Hi Barbara > > Further to Stuart's explanation, why are you deleting the form? Never > heard of that before within an application - why don't you just leave > it? > > /gustav > > >>> BarbaraRyan at cox.net 18-12-2004 02:37:36 >>> > Simply put, in an Access 97 application I have Form1 and Module1. A > pushbutton on Form1 executes a procedure in Module1 which closes Form1 > (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 > (DoCmd.DeleteObject acForm, "Form1"). However, the Close command does > not appear to be working --- I receive an error on the DeleteObject > command, saying that Form1 is still open. Yet when I run the following > IsLoaded function after the Close command, it returns false (i.e., Form1 > is NOT open). From BarbaraRyan at cox.net Sat Dec 18 08:12:20 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Sat, 18 Dec 2004 09:12:20 -0500 Subject: [AccessD] Closing a form from a module procedure References: Message-ID: <002e01c4e50b$96a03820$0a00a8c0@cx470148a> Thanks, Gustav..... and why couldn't I think of that?!!.....Barb ----- Original Message ----- From: "Gustav Brock" To: Sent: Saturday, December 18, 2004 8:38 AM Subject: Re: [AccessD] Closing a form from a module procedure > Hi Barbara > > Open another (temporary) form and kill form1 from that. Then copy the > new form1, open form1, close the temp form. > > /gustav > > >>> BarbaraRyan at cox.net 18-12-2004 14:26:02 >>> > The procedure that is executed replaces objects (i.e., deletes, then > imports) from the user's front-end database with objects from a > database > that I email to them. It works great unless I need to replace "Form1" > (the > form that contains the pushbutton to execute this procedure). Any > ideas on > how to accomplish this? > > Thanks, > Barb Ryan > > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Saturday, December 18, 2004 5:39 AM > Subject: Re: [AccessD] Closing a form from a module procedure > > > > Hi Barbara > > > > Further to Stuart's explanation, why are you deleting the form? > Never > > heard of that before within an application - why don't you just > leave > > it? > > > > /gustav > > > > >>> BarbaraRyan at cox.net 18-12-2004 02:37:36 >>> > > Simply put, in an Access 97 application I have Form1 and Module1. A > > pushbutton on Form1 executes a procedure in Module1 which closes > Form1 > > (DoCmd.Close acForm, "Form1", acSaveNo) and then deletes Form1 > > (DoCmd.DeleteObject acForm, "Form1"). However, the Close command > does > > not appear to be working --- I receive an error on the DeleteObject > > command, saying that Form1 is still open. Yet when I run the > following > > IsLoaded function after the Close command, it returns false (i.e., > Form1 > > is NOT open). > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Dec 18 08:16:05 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 18 Dec 2004 09:16:05 -0500 Subject: [AccessD] OT a bit Message-ID: <20041218141607.RDEA2421.imf24aec.mail.bellsouth.net@SUSANONE> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/olintapi/ht ml/WelcomeOlintapi_HV01155855.asp Found this on Mike G's blog -- I haven't read it yet, but promises to be helpful. Unfortunately, it's got a rating of 1, which makes me gasp. But, doing this for a living, I know that often, the content is good, it just isn't what the reader needed... but wanted to warn you since I haven't had a chance to actually review it for myself yet. Susan H. From martyconnelly at shaw.ca Sat Dec 18 10:41:21 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 18 Dec 2004 08:41:21 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address References: <41C3F43F.3393.490C4B6@lexacorp.com.pg> Message-ID: <41C45DB1.6070800@shaw.ca> Sob. But Microsoft initially said it was redistributable. But then I didn't look for awhile, I have WinXP SP1 installed and the two versions WinHttp 5.0 and 5.1 coexist side by side WinXP SP2 has another version. For all the gory details http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/what_s_new_in_winhttp_5_1.asp Stuart McLachlan wrote: >On 17 Dec 2004 at 9:25, MartyConnelly wrote: > > > >>You can also use this on Win2000 and higher >>This works for me using WinHttp when the site uses basic authentication: >>There are some other winhttp methods you can use to get around server >>proxies etc. >> >> Dim objWinHttp as object >> Dim strURL as string >> Dim strHTML as string 'your returned file >> >> >> strURL = "http://somesite.com" >> Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") >> >> >> > >You have to be a bit careful here and it's not redistributable because >there are different versiosn of WinHttp out there. Any of the following may >be required on W2K/XP systems ...Request.5 ...Request.5.1 or Request.5.1.1 >you need to look at the exact version number when you create the reference. > > > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Sat Dec 18 17:01:23 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 19 Dec 2004 09:01:23 +1000 Subject: [AccessD] OT a bit In-Reply-To: <20041218141607.RDEA2421.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <41C54363.27659.9ADE7B0@lexacorp.com.pg> On 18 Dec 2004 at 9:16, Susan Harkins wrote: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/olintapi/ht > ml/WelcomeOlintapi_HV01155855.asp > > Found this on Mike G's blog -- I haven't read it yet, but promises to be > helpful. Unfortunately, it's got a rating of 1, which makes me gasp. But, > doing this for a living, I know that often, the content is good, it just > isn't what the reader needed... but wanted to warn you since I haven't had a > chance to actually review it for myself yet. > I'd probably rate the page a 1 myself. (the page, not the actual downloadable API reference). It really doesn't provide any value if you are looking for info on the API. It just says that an API reference is available and links to another page which says the same thing and also provides the download link :-) -- Stuart From Gustav at cactus.dk Sun Dec 19 15:10:39 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Dec 2004 22:10:39 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From d.dick at uws.edu.au Sun Dec 19 20:42:26 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 20 Dec 2004 13:42:26 +1100 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C45DB1.6070800@shaw.ca> Message-ID: <200412200242.iBK2gXRl018118@cooper.uws.edu.au> Thanks to all who responded I will keep away from the WinHTTP object Some of my clients are still using Win 98 (And it's not even Second Edition) Here is the scenario All I have is a text file that has a version number of that particular app. I want my apps to look for this text file - read the contents and see it says 6.00 Now, if the current version of the app that is looking at this text file happens to be version 5.95 - a download of a new version should occur. I just wanted to put this text file in a public place eg a web site I actually don't wanna download the text file - just read from it Simple right?? Anyway back to the drawing board Again many thanks to those who responded I will be using the download code from Gustav - it looks cool Thanks Gustav See y'all Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, 19 December 2004 3:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Connect to a text file at a web address Sob. But Microsoft initially said it was redistributable. But then I didn't look for awhile, I have WinXP SP1 installed and the two versions WinHttp 5.0 and 5.1 coexist side by side WinXP SP2 has another version. For all the gory details http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/htt p/what_s_new_in_winhttp_5_1.asp Stuart McLachlan wrote: >On 17 Dec 2004 at 9:25, MartyConnelly wrote: > > > >>You can also use this on Win2000 and higher This works for me using >>WinHttp when the site uses basic authentication: >>There are some other winhttp methods you can use to get around server >>proxies etc. >> >> Dim objWinHttp as object >> Dim strURL as string >> Dim strHTML as string 'your returned file >> >> >> strURL = "http://somesite.com" >> Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") >> >> >> > >You have to be a bit careful here and it's not redistributable because >there are different versiosn of WinHttp out there. Any of the following >may be required on W2K/XP systems ...Request.5 ...Request.5.1 or >Request.5.1.1 you need to look at the exact version number when you create the reference. > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Dec 20 01:16:59 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 19 Dec 2004 23:16:59 -0800 Subject: [AccessD] OT: The Polar Express References: Message-ID: <41C67C6B.5050801@shaw.ca> If you are a train fan this one runs bi weekly every summer. I thought of it when I saw the movie trailers. Polar Bear Express from Cochrane to Mooseonee. http://www.polarbearexpress.ca/ Not many polar bears there, as they are generally around Churchill 500 further west Rode the train years ago one way, as we canoed up the Missinaibi river, took the train back. Don't do this route without a guide, unless you have done a lot of wilderness routes Portages around Thunderhouse falls are not marked correctly on topo maps and can kill you. When we did it in the early 70's, we were working off hand written notes by a previous canoeist. It is better marked now. http://www.myccr.com/canoedb/routeDetails.php?routeid=197 http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html At the bottom of page is a picture of one the scenic spots Conjuring House Falls on the Missinaibi http://travel.canoe.ca/che-mun/99list2.html Gustav Brock wrote: >Hi all > >Well, isn't it still Friday here? > >Anyway, I enjoyed The Polar Express yesterday in the original US >version in a major theater with a state-of-the-art sound system. >What a magnificent movie! >Anybody else: don't miss it. Indeed, if you are a fan of steam engines >(or just trains in general), this movie is a must - it'll take you >away. > >/gustav > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Dec 20 01:37:13 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 19 Dec 2004 23:37:13 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address References: <200412200242.iBK2gXRl018118@cooper.uws.edu.au> Message-ID: <41C68129.5060501@shaw.ca> Oh well in that case try the xmlhttp request object I think you may have to write a couple of varieties of Create Object depending on the OS and installed version of XML, if you have IE 5.5 or 6.0 installed you have the XML parser. I think CreateObject("Microsoft.XMLHTTP") should work through all versions of MS XML 2.0 through 4.0 but I can't remember. 'This code fires off request to specified WEB page 'returns html, asp, xml, or text page in text string then sent to file on disk 'Makes use of the XMLHTTPRequest object contained in msxml.dll. 'Check off Reference to MSXML Version 2.0 3.0 ' I am using latest Version of IE6 ' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc 'GrabTextFileFromWebSite "http://www5.brinkster.com/mconnelly/GenericDB/ordersSubFormform.txt" Public Sub GrabTextFileFromWebSite(strMyURL As String) 'Dim oHttp As Object Dim oHttp As New MSXML2.XMLHTTP40 Dim strFileName As String Dim intfile As Integer Dim bData() As Byte 'make use of the XMLHTTPRequest object contained in msxml.dll ' Set oHttp = CreateObject("MSXML2.XMLHTTP40") 'Set oHttp = GetObject("MSXML2.XMLHTTP30") 'oHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 'oHttp.setRequestHeader "Content-Type", "text/xml" 'oHttp.setRequestHeader "Content-Type", "multipart/form-data" 'oHttp.Open "GET", "http://www.amazon.com", False oHttp.Open "GET", strMyURL, False ' stick in your web page above , file type can be anything asp txt xml html jpeg zip etc. 'depends partially on content type oHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" oHttp.send 'check the feedback Debug.Print "Ready State =" & oHttp.readyState 'normal state =4 Debug.Print "Status =" & oHttp.status 'normal status = 200 Debug.Print "Status Text =" & oHttp.statusText ' Debug.Print oHttp.getAllResponseHeaders() 'Debug.Print "Response Body =" & oHttp.responseBody ' Debug.Print "Response Body =" & StrConv(oHttp.responseBody, vbUnicode) 'Debug.Print "Response Text =" & oHttp.responseText 'Parse response text string here or send to file 'create directory structure if not in existance ' CreateDirectoryStruct ("c:\Accesshtmlstealer") strFileName = "c:\Accesshtmlstealer\Amazon" strFileName = strFileName & Format(Now, "yyyymmddhhmmss") & ".txt" ' WriteFile strFileName, oHttp.responseText 'Temporary storage intfile = FreeFile() 'bData() = Inet1.OpenURL(strURL, icByteArray) ' The file will be saved in the temp folder with the name download.exe' Open "c:\temp\downloadA.zip" For Binary Access Write As #intfile 'Put #intfile, , bData() bData() = oHttp.responseBody Put #intfile, , bData() Close #intfile ' Exit Sub ErrorHandler: MsgBox Err.Description & vbCrLf & Err.Number ' Resume Next End Sub Darren DICK wrote: >Thanks to all who responded >I will keep away from the WinHTTP object >Some of my clients are still using Win 98 (And it's not even Second >Edition) > >Here is the scenario > >All I have is a text file that has a version number of that particular app. > >I want my apps to look for this text file - read the contents and see it >says 6.00 >Now, if the current version of the app that is looking at this text file >happens to be version 5.95 - >a download of a new version should occur. > >I just wanted to put this text file in a public place eg a web site > >I actually don't wanna download the text file - just read from it > >Simple right?? > >Anyway back to the drawing board > >Again many thanks to those who responded > >I will be using the download code from Gustav - it looks cool Thanks Gustav > >See y'all > >Darren > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Sunday, 19 December 2004 3:41 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2003:Connect to a text file at a web address > >Sob. But Microsoft initially said it was redistributable. But then I >didn't look for awhile, I have WinXP SP1 installed and the two versions >WinHttp 5.0 and 5.1 coexist side by side WinXP SP2 has another version. >For all the gory details >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/htt >p/what_s_new_in_winhttp_5_1.asp > >Stuart McLachlan wrote: > > > >>On 17 Dec 2004 at 9:25, MartyConnelly wrote: >> >> >> >> >> >>>You can also use this on Win2000 and higher This works for me using >>>WinHttp when the site uses basic authentication: >>>There are some other winhttp methods you can use to get around server >>>proxies etc. >>> >>> Dim objWinHttp as object >>> Dim strURL as string >>> Dim strHTML as string 'your returned file >>> >>> >>> strURL = "http://somesite.com" >>> Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") >>> >>> >>> >>> >>> >>You have to be a bit careful here and it's not redistributable because >>there are different versiosn of WinHttp out there. Any of the following >>may be required on W2K/XP systems ...Request.5 ...Request.5.1 or >>Request.5.1.1 you need to look at the exact version number when you create >> >> >the reference. > > >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Mon Dec 20 03:47:35 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 10:47:35 +0100 Subject: [AccessD] A2003:Connect to a text file at a web address Message-ID: Hi Darren > a download of a new version should occur. How? Wouldn't that be via FTP? If so, as you will have to fire up an FTP session for the update, I would say the simplest way would be to check the version via FTP too. One option is Windows Command Line FTP: http://www.pacific.net/~ken/software/ /gustav >>> d.dick at uws.edu.au 20-12-2004 03:42:26 >>> Thanks to all who responded I will keep away from the WinHTTP object Some of my clients are still using Win 98 (And it's not even Second Edition) Here is the scenario All I have is a text file that has a version number of that particular app. I want my apps to look for this text file - read the contents and see it says 6.00 Now, if the current version of the app that is looking at this text file happens to be version 5.95 - a download of a new version should occur. I just wanted to put this text file in a public place eg a web site I actually don't wanna download the text file - just read from it Simple right?? Anyway back to the drawing board Again many thanks to those who responded I will be using the download code from Gustav - it looks cool Thanks Gustav See y'all Darren From Gustav at cactus.dk Mon Dec 20 03:49:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 10:49:50 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Thanks Marty! Looks great. Next stop Canada. /gustav >>> martyconnelly at shaw.ca 20-12-2004 08:16:59 >>> If you are a train fan this one runs bi weekly every summer. I thought of it when I saw the movie trailers. Polar Bear Express from Cochrane to Mooseonee. http://www.polarbearexpress.ca/ Not many polar bears there, as they are generally around Churchill 500 further west Rode the train years ago one way, as we canoed up the Missinaibi river, took the train back. Don't do this route without a guide, unless you have done a lot of wilderness routes Portages around Thunderhouse falls are not marked correctly on topo maps and can kill you. When we did it in the early 70's, we were working off hand written notes by a previous canoeist. It is better marked now. http://www.myccr.com/canoedb/routeDetails.php?routeid=197 http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html At the bottom of page is a picture of one the scenic spots Conjuring House Falls on the Missinaibi http://travel.canoe.ca/che-mun/99list2.html Gustav Brock wrote: >Hi all > >Well, isn't it still Friday here? > >Anyway, I enjoyed The Polar Express yesterday in the original US >version in a major theater with a state-of-the-art sound system. >What a magnificent movie! >Anybody else: don't miss it. Indeed, if you are a fan of steam engines >(or just trains in general), this movie is a must - it'll take you >away. > >/gustav > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Mon Dec 20 05:00:17 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 20 Dec 2004 06:00:17 -0500 Subject: [AccessD] OT: The Polar Express References: Message-ID: ..think I'll pass on that particular canoe trip ...canoeing through Voyageur National Park was enough for me ...this one looks like its only for the true believers! :) William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Monday, December 20, 2004 4:49 AM Subject: Re: [AccessD] OT: The Polar Express > Thanks Marty! Looks great. Next stop Canada. > > /gustav > >>>> martyconnelly at shaw.ca 20-12-2004 08:16:59 >>> > If you are a train fan this one runs bi weekly every summer. > I thought of it when I saw the movie trailers. > Polar Bear Express from Cochrane to Mooseonee. > http://www.polarbearexpress.ca/ > Not many polar bears there, as they are generally around Churchill 500 > > further west > Rode the train years ago one way, as we canoed up the Missinaibi > river, > took the train back. > Don't do this route without a guide, unless you have done a lot of > wilderness routes > Portages around Thunderhouse falls are not marked correctly on topo > maps > and can kill you. > When we did it in the early 70's, we were working off hand written > notes > by a previous canoeist. > It is better marked now. > http://www.myccr.com/canoedb/routeDetails.php?routeid=197 > http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html > > At the bottom of page is a picture of one the scenic spots > Conjuring House Falls on the Missinaibi > http://travel.canoe.ca/che-mun/99list2.html > > Gustav Brock wrote: > >>Hi all >> >>Well, isn't it still Friday here? >> >>Anyway, I enjoyed The Polar Express yesterday in the original US >>version in a major theater with a state-of-the-art sound system. >>What a magnificent movie! >>Anybody else: don't miss it. Indeed, if you are a fan of steam > engines >>(or just trains in general), this movie is a must - it'll take you >>away. >> >>/gustav >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Mon Dec 20 05:29:09 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 20 Dec 2004 21:29:09 +1000 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C68129.5060501@shaw.ca> Message-ID: <41C74425.27163.2274D8B@lexacorp.com.pg> On 19 Dec 2004 at 23:37, MartyConnelly wrote: > ' I am using latest Version of IE6 > ' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc > And for the growing number of people like myself who use Firefox and have their firewall block IE from accessing the Internet? :-) -- Stuart From pcs at azizaz.com Mon Dec 20 09:34:51 2004 From: pcs at azizaz.com (Borge Hansen) Date: Tue, 21 Dec 2004 01:34:51 +1000 Subject: [AccessD] How to control an Update Query References: <41C74425.27163.2274D8B@lexacorp.com.pg> Message-ID: <008d01c4e6a9$72bd0bf0$fa10a8c0@Albatross> I have a table and a query : tblContactSource_Merged ::1 to many:: qsystblContactSource I am updating a memo field in the table with data from the query - one line in the memofield for each related record in the query. The query is sorted ascending on the UFN (Unique File Number) and the SCtgy (text field). This is how the update query is structured : ******** UPDATE tblContactSource_Merged INNER JOIN qsystblContactSource ON tblContactSource_Merged.UFN = qsystblContactSource.UFN SET tblContactSource_Merged.Source_Merged = IIf(Len([tblContactSource_Merged].[Source_Merged])>0,[tblContactSource_Merge d].[Source_Merged] & " " & [qsystblContactSource].[SCtgy] & " >> " & [qsystblContactSource].[SCtgySpecific] & " >> " & [qsystblContactSource].[SCtgyDegree] & " >> " & [qsystblContactSource].[SCtgyDegreeYear],[qsystblContactSource].[SCtgy] & " >> " & [qsystblContactSource].[SCtgySpecific] & " >> " & [qsystblContactSource].[SCtgyDegree] & " >> " & [qsystblContactSource].[SCtgyDegreeYear]), qsystblContactSource.SelectFlag = Yes WHERE (((qsystblContactSource.SelectFlag)=No)); ******** It's being run as an action query (docmd.openquery "queryname") I expected that the data from the query would be written into the memo field in the order the query is sorted. However, this is not happening. So my question is : Is it possible, and if so hoouuuwwww? PS ... the & " " & holds the linebreak in the memofield being updated. (As an aside, I've only found an action query to work when it comes to inserting a linebreak like this. I have yet to find a way to structure a linebreak in an SQL string in vba code. Is that possible? I've tried vbCRLF - doesn't seem to work) Thanks, Borge --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 From ssharkins at bellsouth.net Mon Dec 20 09:37:48 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 20 Dec 2004 10:37:48 -0500 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C74425.27163.2274D8B@lexacorp.com.pg> Message-ID: <20041220153753.FJWZ2130.imf25aec.mail.bellsouth.net@SUSANONE> I'm probably getting into this too late to really be of help -- probably don't understand the actual problem. There's an API that will return an exe file's version number. Would that help? Susan H. On 19 Dec 2004 at 23:37, MartyConnelly wrote: > ' I am using latest Version of IE6 > ' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc > And for the growing number of people like myself who use Firefox and have their firewall block IE from accessing the Internet? :-) From Gustav at cactus.dk Mon Dec 20 09:56:41 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 16:56:41 +0100 Subject: [AccessD] How to control an Update Query Message-ID: Hi Borge What are the ">>" signs supposed to do? /gustav From cfoust at infostatsystems.com Mon Dec 20 10:35:13 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Dec 2004 08:35:13 -0800 Subject: [AccessD] OT: The Polar Express Message-ID: Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Mon Dec 20 10:51:55 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 20 Dec 2004 11:51:55 -0500 Subject: [AccessD] OT: The Polar Express Message-ID: That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Dec 20 11:07:23 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 18:07:23 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi Charlotte I had hoped no one would mention the 3-D. Closest theater from here is London which is a 1? hours flight. Argh. /gustav >>> cfoust at infostatsystems.com 20-12-2004 17:35:13 >>> Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From Gustav at cactus.dk Mon Dec 20 11:11:34 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 18:11:34 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi 65 Some of these have lost their fantasy and enthusiasm. I have for a long time been of the opinion that programmers have a better fantasy than many other people. By the way, the film received generally a 5 out of 6 rating here. /gustav >>> cyx5 at cdc.gov 20-12-2004 17:51:55 >>> That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From cfoust at infostatsystems.com Mon Dec 20 11:07:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Dec 2004 09:07:19 -0800 Subject: [AccessD] OT: The Polar Express Message-ID: Well, the theater has been consistently sold out, and the children in the audience were mesmerized, while the adults found it both delightful and technically fascinating. Creepy? There is a ghost of sorts, but the kids didn't seem to mind him, and he was more in the nature of the cheshire cat than anything else. I usually disagree with critics, so I tend to ignore them. Trust me on this, it is a wonderful film, critics notwithstanding. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Monday, December 20, 2004 8:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Mon Dec 20 11:15:54 2004 From: john at winhaven.net (John Bartow) Date: Mon, 20 Dec 2004 11:15:54 -0600 Subject: [AccessD] OT: The Polar Express In-Reply-To: Message-ID: My wife, an elementary school teacher, has read this book to her kids for years. She says the book is very short and has wondered how they made a full length movie of it. I guess we'll have to go and see :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, December 20, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Dec 20 11:46:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Dec 2004 18:46:50 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi John Oh, you should. By the way, if you like Flash sites visit the official site: http://polarexpressmovie.warnerbros.com/ and click Enter Flash Site. Beautiful work. Don't miss the far right choice which will lead you into North Pole City. /gustav >>> john at winhaven.net 20-12-2004 18:15:54 >>> My wife, an elementary school teacher, has read this book to her kids for years. She says the book is very short and has wondered how they made a full length movie of it. I guess we'll have to go and see :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, December 20, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From dw-murphy at cox.net Mon Dec 20 11:57:20 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 20 Dec 2004 09:57:20 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <200412200242.iBK2gXRl018118@cooper.uws.edu.au> Message-ID: <000001c4e6bd$5d47a3c0$8500a8c0@murphyf3vdfepi> Hi Darin, I am getting into this late, but have you looked at the WinInet api? It works with Windows 98 and above and is native to windows. I use this control to import report data from a web site into client access databases. I have an asp page that generates a page that is just a comma delimited text file with a .asp extension, WinInet calls the page and loads it into a buffer which I read out. The page does have the normal page header but this is easy to strip off. In your case you could just create a simple html page with the version # and put that on your site. I have some reference sites around somewhere if you are interested I'll dig them out and send offline. Most of what I found was for VB but it works fine in VBA. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Sunday, December 19, 2004 6:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Connect to a text file at a web address Thanks to all who responded I will keep away from the WinHTTP object Some of my clients are still using Win 98 (And it's not even Second Edition) Here is the scenario All I have is a text file that has a version number of that particular app. I want my apps to look for this text file - read the contents and see it says 6.00 Now, if the current version of the app that is looking at this text file happens to be version 5.95 - a download of a new version should occur. I just wanted to put this text file in a public place eg a web site I actually don't wanna download the text file - just read from it Simple right?? Anyway back to the drawing board Again many thanks to those who responded I will be using the download code from Gustav - it looks cool Thanks Gustav See y'all Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, 19 December 2004 3:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Connect to a text file at a web address Sob. But Microsoft initially said it was redistributable. But then I didn't look for awhile, I have WinXP SP1 installed and the two versions WinHttp 5.0 and 5.1 coexist side by side WinXP SP2 has another version. For all the gory details http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/htt p/what_s_new_in_winhttp_5_1.asp Stuart McLachlan wrote: >On 17 Dec 2004 at 9:25, MartyConnelly wrote: > > > >>You can also use this on Win2000 and higher This works for me using >>WinHttp when the site uses basic authentication: >>There are some other winhttp methods you can use to get around server >>proxies etc. >> >> Dim objWinHttp as object >> Dim strURL as string >> Dim strHTML as string 'your returned file >> >> >> strURL = "http://somesite.com" >> Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5") >> >> >> > >You have to be a bit careful here and it's not redistributable because >there are different versiosn of WinHttp out there. Any of the following >may be required on W2K/XP systems ...Request.5 ...Request.5.1 or >Request.5.1.1 you need to look at the exact version number when you create the reference. > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Mon Dec 20 12:00:04 2004 From: john at winhaven.net (John Bartow) Date: Mon, 20 Dec 2004 12:00:04 -0600 Subject: [AccessD] OT: The Polar Express In-Reply-To: Message-ID: Hi Gustav, Thanks, I'll go to the site with my wife tonight and check it out. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Monday, December 20, 2004 11:47 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT: The Polar Express Hi John Oh, you should. By the way, if you like Flash sites visit the official site: http://polarexpressmovie.warnerbros.com/ and click Enter Flash Site. Beautiful work. Don't miss the far right choice which will lead you into North Pole City. /gustav >>> john at winhaven.net 20-12-2004 18:15:54 >>> My wife, an elementary school teacher, has read this book to her kids for years. She says the book is very short and has wondered how they made a full length movie of it. I guess we'll have to go and see :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, December 20, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From normkara at wans.net Mon Dec 20 12:05:57 2004 From: normkara at wans.net (Norm) Date: Mon, 20 Dec 2004 13:05:57 -0500 Subject: [AccessD] OT: The Polar Express References: Message-ID: <00e101c4e6be$9158d7f0$0300a8c0@NORMLAPTOP> Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" Norm -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav From prosoft6 at hotmail.com Mon Dec 20 12:12:21 2004 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 20 Dec 2004 13:12:21 -0500 Subject: [AccessD] OT: The Polar Express In-Reply-To: Message-ID: Wow. A beautiful site. Thank you for sharing the link. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 108 Franklin Street Watertown, NY 13601 (315) 785-0319 www.pro-soft.net From Mark.Mitsules at ngc.com Mon Dec 20 12:40:54 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Mon, 20 Dec 2004 13:40:54 -0500 Subject: [AccessD] OT: The Polar Express Message-ID: Karen, I read once that in the gaming world there is a theory that eventually the quest to make characters more lifelike will reach a point of diminishing returns. The theory suggests that as computer-generated characters become more "realistic", humans will no longer be able to "put themselves into the story", but rather begin to focus more and more on the subtle shortcomings of the rendering. The suggestion of "creepy" may be the beginnings of this process...who knows. Mark -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Monday, December 20, 2004 11:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express That is strange. The critics are calling it "Bi-Polar" Disorder, said it is creepy. Hmmm. What do they know. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 20, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: The Polar Express Gustav, I agree, it is a delightful film. We saw it in 3-D, which is even more fun. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Sunday, December 19, 2004 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: The Polar Express Hi all Well, isn't it still Friday here? Anyway, I enjoyed The Polar Express yesterday in the original US version in a major theater with a state-of-the-art sound system. What a magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan of steam engines (or just trains in general), this movie is a must - it'll take you away. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Dec 20 12:58:55 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 20 Dec 2004 10:58:55 -0800 Subject: [AccessD] A2003:Connect to a text file at a web address References: <41C74425.27163.2274D8B@lexacorp.com.pg> Message-ID: <41C720EF.6030604@shaw.ca> Well there is the Inet Internet transfer control not sure if it is attached to IE dll's or you could try Private Declare Function URLDownloadToFile Lib "urlmon" Alias _ "URLDownloadToFileA" (ByVal pCaller As Long, _ ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As _ Long, ByVal lpfnCB As Long) As Long Sub tryurl() Dim retVal As Long Dim URL As String Dim LocalFileName As String ' change this line to the URL of the file: URL = "http://www5.brinkster.com/mconnelly/GenericDB/ordersSubFormform.txt" ' change this line to the local filename to save the file as: LocalFileName = "c:\temp\testform.txt" retVal = URLDownloadToFile(0, URL, LocalFileName, 0, 0) If retVal = 0 Then Debug.Print "File received." Else Debug.Print "Unable to download file." End If End Sub Stuart McLachlan wrote: >On 19 Dec 2004 at 23:37, MartyConnelly wrote: > > > >>' I am using latest Version of IE6 >>' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc >> >> >> > >And for the growing number of people like myself who use Firefox and have >their firewall block IE from accessing the Internet? :-) > > > -- Marty Connelly Victoria, B.C. Canada From ssharkins at bellsouth.net Mon Dec 20 14:25:01 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 20 Dec 2004 15:25:01 -0500 Subject: [AccessD] OT: The Polar Express In-Reply-To: <00e101c4e6be$9158d7f0$0300a8c0@NORMLAPTOP> Message-ID: <20041220202524.VTOH2402.imf17aec.mail.bellsouth.net@SUSANONE> I believe -- always have. When you stop believing, you start getting underwear for Christmas. Susan H. Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" From cfoust at infostatsystems.com Mon Dec 20 14:42:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Dec 2004 12:42:39 -0800 Subject: [AccessD] OT: The Polar Express Message-ID: ROTFL Is THAT what does it?? LOL Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, December 20, 2004 12:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: The Polar Express I believe -- always have. When you stop believing, you start getting underwear for Christmas. Susan H. Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Dec 20 16:09:55 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 20 Dec 2004 17:09:55 -0500 Subject: [AccessD] OT: The Polar Express In-Reply-To: Message-ID: <20041220221006.EOKT2054.imf21aec.mail.bellsouth.net@SUSANONE> I can hear the collective murmur or all accessd listers quietly chanting, "I believe! I believe! I believe!" ;) Susan H. ROTFL Is THAT what does it?? LOL From pcs at azizaz.com Mon Dec 20 16:53:04 2004 From: pcs at azizaz.com (Borge Hansen) Date: Tue, 21 Dec 2004 08:53:04 +1000 Subject: [AccessD] How to control an Update Query References: Message-ID: <000e01c4e6e6$aaf36180$fa10a8c0@Albatross> Gustav, they are just visual delimeters added to the data placed in the memo field... pretty ugly ehh? Borge ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 21, 2004 1:56 AM Subject: Re: [AccessD] How to control an Update Query > Hi Borge > > What are the ">>" signs supposed to do? > > /gustav > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From d.dick at uws.edu.au Mon Dec 20 17:38:46 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 21 Dec 2004 10:38:46 +1100 Subject: [AccessD] A2003:Connect to a text file at a web address In-Reply-To: <41C720EF.6030604@shaw.ca> Message-ID: <200412202338.iBKNcsRm010304@cooper.uws.edu.au> Hi all I am most grateful for all the suggestions And thanks to all who shared their code (Gotta love this list) >From what I can see I can't actually do what I set out to do That is - use the link table wizard to 'connect' to a text file on a web site. What I will do is (as Stuart Suggested) just FTP the text file from my website to the back end location (I have a code routine in the back end for autoupdating) And set up the link table wizard to that FTP'd text file and read the version from that And then run the necessary code if a newer version exists. Many many thanks again to all who responded DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, 21 December 2004 5:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Connect to a text file at a web address Well there is the Inet Internet transfer control not sure if it is attached to IE dll's or you could try Private Declare Function URLDownloadToFile Lib "urlmon" Alias _ "URLDownloadToFileA" (ByVal pCaller As Long, _ ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As _ Long, ByVal lpfnCB As Long) As Long Sub tryurl() Dim retVal As Long Dim URL As String Dim LocalFileName As String ' change this line to the URL of the file: URL = "http://www5.brinkster.com/mconnelly/GenericDB/ordersSubFormform.txt" ' change this line to the local filename to save the file as: LocalFileName = "c:\temp\testform.txt" retVal = URLDownloadToFile(0, URL, LocalFileName, 0, 0) If retVal = 0 Then Debug.Print "File received." Else Debug.Print "Unable to download file." End If End Sub Stuart McLachlan wrote: >On 19 Dec 2004 at 23:37, MartyConnelly wrote: > > > >>' I am using latest Version of IE6 >>' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc >> >> >> > >And for the growing number of people like myself who use Firefox and >have their firewall block IE from accessing the Internet? :-) > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Tue Dec 21 03:18:13 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 21 Dec 2004 09:18:13 -0000 Subject: [AccessD] OT: The Polar Express Message-ID: <61F915314798D311A2F800A0C9C8318805CED941@dibble.observatory.donnslaw.co.uk> I believe... :) (and I'm letting the OT run... it's Christmas and the list is quiet) Roz -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: 20 December 2004 22:10 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: The Polar Express I can hear the collective murmur or all accessd listers quietly chanting, "I believe! I believe! I believe!" ;) Susan H. ROTFL Is THAT what does it?? LOL -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From Gustav at cactus.dk Tue Dec 21 04:36:33 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Dec 2004 11:36:33 +0100 Subject: [AccessD] How to control an Update Query Message-ID: Hi Borge Oh, they completely confused me. Now, what was your question? /gustav >>> pcs at azizaz.com 20-12-2004 23:53:04 >>> Gustav, they are just visual delimeters added to the data placed in the memo field... pretty ugly ehh? Borge ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 21, 2004 1:56 AM Subject: Re: [AccessD] How to control an Update Query > Hi Borge > > What are the ">>" signs supposed to do? > > /gustav From Gustav at cactus.dk Tue Dec 21 04:48:37 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Dec 2004 11:48:37 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: Hi Susan Oh, never thought of it this way. What a scary picture. /gustav >>> ssharkins at bellsouth.net 20-12-2004 21:25:01 >>> I believe -- always have. When you stop believing, you start getting underwear for Christmas. Susan H. Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Dec 21 04:28:20 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 21 Dec 2004 11:28:20 +0100 Subject: [AccessD] OT: The Polar Express Message-ID: <20041221112817.8F685261864@smtp.nildram.co.uk> That's what I thought too. The list has been so quiet it was nice to see something, anything here. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: The Polar Express Date: 21/12/04 09:21 > I believe... > > :) > > (and I'm letting the OT run... it's Christmas and the list is quiet) > > Roz > > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: 20 December 2004 22:10 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT: The Polar Express > > > I can hear the collective murmur or all accessd listers quietly chanting, "I > believe! I believe! I believe!" ;) > > Susan H. > > ROTFL > Is THAT what does it?? LOL > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From accma at sympatico.ca Tue Dec 21 05:52:50 2004 From: accma at sympatico.ca (Annie Courchesne, CMA) Date: Tue, 21 Dec 2004 06:52:50 -0500 Subject: [AccessD] Using WinZip with Access Code Message-ID: Hi group, Is it possible to compress a file with winzip using access code (A2K)? Thanks! Annie Courchesne, CMA From stuart at lexacorp.com.pg Tue Dec 21 06:36:12 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 21 Dec 2004 22:36:12 +1000 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: Message-ID: <41C8A55C.30480.18E2B36@lexacorp.com.pg> On 21 Dec 2004 at 6:52, Annie Courchesne, CMA wrote: > Hi group, > > Is it possible to compress a file with winzip using access code (A2K)? > It is if you are using Winzip Ver 9 and download the Winzip Command Line Interface from http://www.winzip.com/prodpagecl.htm. Just shell out to WZZIP.EXE with the appropriate parameters. The WinZip Command Line Support Add-On provides a command line interface that gives you the power of WinZip without the usual WinZip graphical user interface. It allows you to use WinZip directly from the command prompt and from batch (.BAT) files and script languages, making it ideal for automating repetitive tasks. An extensive set of command line options gives you pinpoint control over WinZip's actions. And, in automated environments, end-users need not know anything about how to use WinZip. -- Stuart From paul.hartland at isharp.co.uk Tue Dec 21 06:45:43 2004 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Tue, 21 Dec 2004 12:45:43 -0000 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: <668C5C868606C641857281147C4689365AEA0B@primary.orridge.co.uk> Message-ID: <668C5C868606C641857281147C46893655279D@primary.orridge.co.uk> As long as you register the product of course -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 21 December 2004 12:36 To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Using WinZip with Access Code On 21 Dec 2004 at 6:52, Annie Courchesne, CMA wrote: > Hi group, > > Is it possible to compress a file with winzip using access code (A2K)? > It is if you are using Winzip Ver 9 and download the Winzip Command Line Interface from http://www.winzip.com/prodpagecl.htm. Just shell out to WZZIP.EXE with the appropriate parameters. The WinZip Command Line Support Add-On provides a command line interface that gives you the power of WinZip without the usual WinZip graphical user interface. It allows you to use WinZip directly from the command prompt and from batch (.BAT) files and script languages, making it ideal for automating repetitive tasks. An extensive set of command line options gives you pinpoint control over WinZip's actions. And, in automated environments, end-users need not know anything about how to use WinZip. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accma at sympatico.ca Tue Dec 21 07:36:02 2004 From: accma at sympatico.ca (accma at sympatico.ca) Date: Tue, 21 Dec 2004 8:36:02 -0500 Subject: [AccessD] Using WinZip with Access Code Message-ID: <20041221133602.CYOM1825.tomts7-srv.bellnexxia.net@mxmta.bellnexxia.net> Great! I will try this! Thanks for the info and quick response! Annie Courchesne, CMA > > De: "Stuart McLachlan" > Date: 2004/12/21 mar. AM 07:36:12 GMT-05:00 > ?: Access Developers discussion and problem > solving > Objet: Re: [AccessD] Using WinZip with Access Code > > On 21 Dec 2004 at 6:52, Annie Courchesne, CMA wrote: > > > Hi group, > > > > Is it possible to compress a file with winzip using access code (A2K)? > > > > It is if you are using Winzip Ver 9 and download the Winzip Command Line > Interface from http://www.winzip.com/prodpagecl.htm. Just shell out to > WZZIP.EXE with the appropriate parameters. > > > The WinZip Command Line Support Add-On provides a command line interface > that gives you the power of WinZip without the usual WinZip graphical user > interface. It allows you to use WinZip directly from the command prompt and > from batch (.BAT) files and script languages, making it ideal for > automating repetitive tasks. An extensive set of command line options gives > you pinpoint control over WinZip's actions. And, in automated environments, > end-users need not know anything about how to use WinZip. > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From actebs at actebs.com.au Tue Dec 21 07:42:06 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 22 Dec 2004 00:42:06 +1100 Subject: [AccessD] Proper Case Message-ID: <2025BB6F17FCB54791F23CD505583328088775@starfleet.unknown.local> Hi Everyone, Does anyone have a some proper case code that looks after things like McDonald etc? Thanks and a very Merry Christmas to one and all... Regards Vlad From jwcolby at colbyconsulting.com Tue Dec 21 07:53:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 21 Dec 2004 08:53:03 -0500 Subject: [AccessD] Proper Case In-Reply-To: <2025BB6F17FCB54791F23CD505583328088775@starfleet.unknown.local> Message-ID: <000901c4e764$68342450$677aa8c0@ColbyM6805> There's one on my site. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Tuesday, December 21, 2004 8:42 AM To: Access Group (E-mail) Subject: [AccessD] Proper Case Hi Everyone, Does anyone have a some proper case code that looks after things like McDonald etc? Thanks and a very Merry Christmas to one and all... Regards Vlad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Tue Dec 21 08:00:43 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 21 Dec 2004 08:00:43 -0600 Subject: [AccessD] OT: The Polar Express Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0248587E@natexch.jenkens.com> I guess that depends on the underwear (evil grin!) Debbie -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, December 21, 2004 4:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT: The Polar Express Hi Susan Oh, never thought of it this way. What a scary picture. /gustav >>> ssharkins at bellsouth.net 20-12-2004 21:25:01 >>> I believe -- always have. When you stop believing, you start getting underwear for Christmas. Susan H. Besides the movie being a greatholiday treat for the grandchilderen and "The Train" being the real star, The model of the polar express released by Lionel is outstanding! "to hear - you have to believe" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From Jdemarco at hudsonhealthplan.org Tue Dec 21 07:59:38 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 21 Dec 2004 08:59:38 -0500 Subject: [AccessD] Multi-Instance Forms re-visited Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D297A@TTNEXCHCL2.hshhp.com> Francisco, Sorry I've been out of the office for a bit. I think you'll need to access the open args for each form through the collection object. So in a sense even though we're still referring to them as openargs they really are just data you can grab as you need them. The collection will need to dimmed as global then. 'to access the string in "openargs" from collection Dim sText as String sText = MyCollection.Item("myFormID").OpenArgs Does that make sense? Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Thursday, December 16, 2004 4:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi-Instance Forms re-visited ok I fixed the problems.. I had to make the initial call to the function call the new form as such: Dim frm As Access.Form 20 Set frm = New Form_frm_004C_MyMultiFORM 30 OpenMultiForm frm, "1|" this yields a new hWnd othewisie the previous code: 30 OpenMultiForm Form_frm_004C_MyMultiFORM, "1|" yields the same hWnd everytime... now for part 2 of the problem... when the form loads it calls it's Load Event, but since the open args are null, how do I pass them back?... or do I need to rewrite the onload procedure again? Thanks, On Thu, 16 Dec 2004 15:53:52 -0500, Jim DeMarco wrote: > Change BaseClassName to clsMultiForms (if my memory is correct). The name of the class you're storing in the collection. > > I believe Hwnd is unique as well. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > Tapia > Sent: Thursday, December 16, 2004 3:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > Thanks for all the help you've been giving me... I split my class in > to 2, the MultiForms class has the Form object along w/ the OpenArgs, > this is where I'll add the On Close Event so it removes the form from > the collection as well > > please explain the name for BaseClassName? > > since the i've split the classes I have > > clsMultiForms which contains the Form, hWnd, OpenArgs (this one?) > then the clsMultiInstance (which contains the collection) > > and I created a Public Variable on the module as well > > I thought the hWnd was diffrent on each call... maybenot? > > On Thu, 16 Dec 2004 08:29:01 -0500, Jim DeMarco > wrote: > > I don't see anything wrong with your call (I did see that someone correctly suggested a public or module level variable to hold your collection class object). Could it have anything to do with you instantiating an instance of your class from within itself (your Add method creates an object of the class type of which it is a member)? I normally do this using two classes to keep the functionality separate, in this case one for the form object and its properties, another to handle collection duties (remember polymorphism and encapsulation?). > > > > Your problem seems to be a duplicate key though. Your original code appended a timestamp to the hwnd for use in the form's caption. Maybe you should include that in the key as well to absolutely prevent a duplicate value. > > > > BTW, it's also a good idea to add an Exists method to your collection class to avoid erroring out on duplicate keys: > > > > Function Exists(strKey As String) As Boolean > > 'returns true if the key value (not index) exists in the collection > > Dim objTemp As BaseClassName 'if you use my original technique this would be your base clas object > > > > On Error GoTo Exists_Err > > > > Set objTemp = m_PrivateCollection.Item(strKey) 'replace m_PrivateCollection w/ your module level collection object > > Exists = True > > > > Exit_Function: > > Set objTemp = Nothing > > Exit Function > > > > Exists_Err: > > If Err.Number = 5 Then > > Exists = False > > Else > > 'further error handling here for other error types > > MsgBox "Error " & Err.Number & " " & Err.Description, vbOKOnly + vbExclamation, "Error" > > End If > > Resume Exit_Function > > End Function > > > > Jim D. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > Tapia > > Sent: Wednesday, December 15, 2004 5:47 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > This code works for displaying "one" form... but it does not give me a > > tolorance to opening a 2nd Form... :(, the original code worked fine > > for many forms... Ideas? > > > > it could be the way that I'm calling it, (such as > > > > Dim MultiForms As clsMultiInstance > > > > If MultiForms Is Nothing Then > > Set MultiForms = New clsMultiInstance > > End If > > MultiForms.Add frm, frm.hWnd, OpenArgs > > > > ------------------------------ > > VERSION 1.0 CLASS > > BEGIN > > MultiUse = -1 'True > > END > > Attribute VB_Name = "clsMultiInstance" > > Attribute VB_GlobalNameSpace = False > > Attribute VB_Creatable = False > > Attribute VB_PredeclaredId = False > > Attribute VB_Exposed = False > > Option Compare Database > > 'Multi Instance Multiple Forms > > > > Dim mForms As Collection > > Private colForm As Access.Form > > Private colhWnd As String > > Private colOpenArgs As String > > Public Property Let Form(frm As Access.Form) > > Set colForm = frm > > End Property > > Public Property Get Form() As Access.Form > > Set Form = colForm > > End Property > > Public Property Let hWnd(hWnd As String) > > colhWnd = hWnd > > End Property > > Public Property Get strhWnd() As String > > hWnd = colhWnd > > End Property > > Public Property Let OpenArgs(Args As String) > > colOpenArgs = Args > > End Property > > Public Property Get OpenArgs() As String > > OpenArgs = colOpenArgs > > End Property > > > > Sub Add(frm As Access.Form, hWnd As String, OpenArgs As String, > > Optional Key As Variant) > > Dim x As clsMultiInstance > > Set x = New clsMultiInstance > > x.Form = frm > > x.hWnd = hWnd > > x.OpenArgs = OpenArgs > > x.Form.Visible = True > > > > 'On a 2nd call it errors out from here... > > ----> mForms.Add Item:=x, Key:=CStr(hWnd) > > > > End Sub > > Sub Remove(hWnd As String) > > 'Purpose: Remove this instance from the collection. > > Dim obj As Object 'Object in Collection > > Dim blnRemove As Boolean 'Flag to remove it. > > > > 'Check if this instance is in the collection. > > ' (It won't be if form was opened directly, or code was reset.) > > For Each obj In mForms > > If obj.hWnd = hWnd Then > > blnRemove = True > > Exit For > > End If > > Next > > 'Deassign the object before removing from collection. > > Set obj = Nothing > > If blnRemove Then > > mForms.Remove CStr(hWnd) > > End If > > End Sub > > Function Count() As Integer > > mForms.Count > > End Function > > Function Item(index As Variant) As clsMultiInstance > > Set Item = mForms.Item(index) > > End Function > > Public Function Term() > > 'Purpose: Close all instances in the collection. > > 'Note: Leaves the copy opened directly from database window. > > Dim lngKt As Long > > Dim lngI As Long > > > > lngKt = mForms.Count > > For lngI = 1 To lngKt > > mForms.Remove 1 > > Next > > Set mForms = Nothing > > End Function > > > > Private Sub Class_Initialize() > > Set mForms = New Collection > > End Sub > > > > ---------------END CLASS---------- > > > > On Wed, 15 Dec 2004 16:09:15 -0500, Jim DeMarco > > wrote: > > > Makes sense. I was typing from (lack of) memory!! > > > > > > Hope it works out. > > > > > > Jim > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > Tapia > > > Sent: Wednesday, December 15, 2004 4:03 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Multi-Instance Forms re-visited > > > > > > Jim that sounds great (re: more code :D), > > > > > > I was wondering on this line: > > > > > > m_col.add(x,hWnd) > > > > > > access complains about an '=' > > > so I re-wrote it as m_col.add x, hWnd > > > > > > On Wed, 15 Dec 2004 15:40:05 -0500, Jim DeMarco > > > wrote: > > > > Francisco, > > > > > > > > What about writing the value you want to use as openargs to an xml file and reading it in after the form is open? > > > > > > > > Or instead of a standard collection use a custom collection class that is similar to the one you have here but it would hold the form refernce, the form's hwind, and the openarg value. > > > > > > > > First a class to hold the data you're trying to use: > > > > > > > > 'MyClass > > > > > > > > Public Property Let Form(frm as Access.Form)... > > > > Public Property Let hWnd(hWnd as String)... > > > > Public Property Let OpenArgs(Args As String)... > > > > > > > > > > > > > > > > dim m_col as Collection > > > > > > > > 'MyCollectionClass > > > > Sub Add(frm As Access.Form, hWnd as String, OpenArgs as String, Optional Key As Variant) > > > > dim x as MyClass > > > > Sex x = new MyClass > > > > x.Form = frm > > > > x.hWnd = hWnd > > > > x.OpenArgs = OpenArgs > > > > m_col.add(x,hWnd) > > > > End Sub > > > > > > > > Function Item(index As Variant) As MyClass > > > > Set Item = m_col.Item(index) > > > > End Function > > > > > > > > > > > > Now you've got access in your collection to all the info you need for your form. > > > > To store the values > > > > > > > > Dim MyCol as MyCollectionClass > > > > > > > > MyCol.Add(frm, frm.Hwnd, "value1;value2)) > > > > > > > > > > > > To retrieve them: > > > > > > > > Dim MyStringArg As String > > > > MyStringArg = MyCol.Item(frm.hwnd).OpenArgs > > > > 'do something with MyStringArg > > > > > > > > > > > > > > > > It's really not as complicated as it might look. If you need more info or my complete custom collection class stub (VB) let me know. > > > > > > > > HTH, > > > > > > > > Jim DeMarco > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco > > > > Tapia > > > > Sent: Wednesday, December 15, 2004 1:40 PM > > > > To: Access Developers discussion and problem solving > > > > Subject: [AccessD] Multi-Instance Forms re-visited > > > > > > > > So I have the following code in a public module.. > > > > > > > > the purpose is to have more than one instance of the form where end > > > > users can start "multiple calls" and then keep starting newer calls. > > > > > > > > the following code works really well and in fact I can do what I need > > > > with it, except passing openargs... I figure I can use a workaround > > > > unless someone here knows of a better way? > > > > > > > > thanks, > > > > > > > > ---CODE SNIP------------ > > > > Option Compare Database > > > > Option Explicit > > > > 'Author: Allen J Browne, January 2000 > > > > 'Email: abrowne at odyssey.apana.org.au > > > > > > > > Public clnClient As New Collection 'Instances of frmClient. > > > > > > > > Function OpenAClient() > > > > 'Purpose: Open an independent instance of form frmClient. > > > > Dim frm As Form > > > > > > > > 'Open a new instance, show it, and set a caption. > > > > Set frm = New Form_frmClient > > > > frm.Visible = True > > > > frm.Caption = frm.Hwnd & ", opened " & Now() > > > > > > > > 'Append it to our collection. > > > > clnClient.Add Item:=frm, Key:=CStr(frm.Hwnd) > > > > Set frm = Nothing > > > > End Function > > > > > > > > Function CloseAllClients() > > > > 'Purpose: Close all instances in the clnClient collection. > > > > 'Note: Leaves the copy opened directly from database window. > > > > Dim lngKt As Long > > > > Dim lngI As Long > > > > > > > > lngKt = clnClient.Count > > > > For lngI = 1 To lngKt > > > > clnClient.Remove 1 > > > > Next > > > > End Function > > > > ---END CODE SNIP----------------- > > > -- > > -- > > -Francisco > > http://pcthis.blogspot.com | PC news with out the jargon! > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > *********************************************************************************** > > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > > *********************************************************************************** > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > -Francisco > http://pcthis.blogspot.com | PC news with out the jargon! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at colbyconsulting.com Tue Dec 21 08:05:37 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 21 Dec 2004 09:05:37 -0500 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: Message-ID: <000a01c4e766$29b4ed20$677aa8c0@ColbyM6805> There is a freeware class that zips and unzips files from inside of Access. Uses withevents if you desire. Very nice class/lib. If you are interested I'll bang out a demo. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, CMA Sent: Tuesday, December 21, 2004 6:53 AM To: Accessd Subject: [AccessD] Using WinZip with Access Code Hi group, Is it possible to compress a file with winzip using access code (A2K)? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mgauk at btconnect.com Tue Dec 21 08:11:19 2004 From: mgauk at btconnect.com (Max Wanadoo) Date: Tue, 21 Dec 2004 14:11:19 -0000 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: <000a01c4e766$29b4ed20$677aa8c0@ColbyM6805> Message-ID: <200412211412.iBLECIl12814@databaseadvisors.com> If possible, I would appreciate having a look at this Class. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 21 December 2004 14:06 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Using WinZip with Access Code There is a freeware class that zips and unzips files from inside of Access. Uses withevents if you desire. Very nice class/lib. If you are interested I'll bang out a demo. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, CMA Sent: Tuesday, December 21, 2004 6:53 AM To: Accessd Subject: [AccessD] Using WinZip with Access Code Hi group, Is it possible to compress a file with winzip using access code (A2K)? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.818 / Virus Database: 556 - Release Date: 17/12/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.818 / Virus Database: 556 - Release Date: 17/12/2004 From dejpolsys at hotmail.com Tue Dec 21 08:30:57 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 21 Dec 2004 09:30:57 -0500 Subject: [AccessD] Proper Case References: <2025BB6F17FCB54791F23CD505583328088775@starfleet.unknown.local> Message-ID: ..JC has a very good PC module by Dave Bell on his site (I assume its still there) but I think Dave updated the code recently to incorporate some of the new stuff in XP/2k3 ...might want to look around for the latest version ..hth :) William Hindman ----- Original Message ----- From: "ACTEBS" To: "Access Group (E-mail)" Sent: Tuesday, December 21, 2004 8:42 AM Subject: [AccessD] Proper Case > Hi Everyone, > > Does anyone have a some proper case code that looks after things like > McDonald etc? > > Thanks and a very Merry Christmas to one and all... > > Regards > Vlad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Tue Dec 21 08:32:33 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 21 Dec 2004 09:32:33 -0500 Subject: [AccessD] Using WinZip with Access Code References: <000a01c4e766$29b4ed20$677aa8c0@ColbyM6805> Message-ID: ..you are such a tease ...just post it already, eh ...or point us to a dl :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 21, 2004 9:05 AM Subject: RE: [AccessD] Using WinZip with Access Code > There is a freeware class that zips and unzips files from inside of > Access. > Uses withevents if you desire. Very nice class/lib. > > If you are interested I'll bang out a demo. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie > Courchesne, > CMA > Sent: Tuesday, December 21, 2004 6:53 AM > To: Accessd > Subject: [AccessD] Using WinZip with Access Code > > > Hi group, > > Is it possible to compress a file with winzip using access code (A2K)? > > Thanks! > > > > Annie Courchesne, CMA > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Paul.Rogers at SummitMedia.co.uk Tue Dec 21 09:13:02 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Tue, 21 Dec 2004 15:13:02 -0000 Subject: [AccessD] Simple route to decimal places? Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F450@s003.wolds.summitmedia.co.uk> How can I tell a percentage arriving from a query that I don't need six or seven decimal places, please? One place would be perfect. Cheers paul From jwcolby at colbyconsulting.com Tue Dec 21 09:18:49 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 21 Dec 2004 10:18:49 -0500 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: Message-ID: <001401c4e770$626f47f0$677aa8c0@ColbyM6805> >..you are such a tease ...just post it already, eh ...or point us to a dl Hey, I'm not spending time on a demo if everyone's just going to use the shell thing. I have it embedded as a service in my framework so it's not like I go import code when I want to use it. For those able to just figure this stuff out, there is a file vbzip10.zip on a ftp directory: ftp://www.colbyconsulting.com/ftproot/AccessD/ UserName: AccessD Password: AccessD It contains the two basic modules, two classes and two matching DLLs for zipping and unzipping. The classes are already set up to allow placing then in a library and instantiating them from outside the library. I will put it on my ToDo list for getting a demo working. I have a client deadline that I really must attend to before I can take the time to do the demo. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, December 21, 2004 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using WinZip with Access Code ..you are such a tease ...just post it already, eh ...or point us to a dl :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 21, 2004 9:05 AM Subject: RE: [AccessD] Using WinZip with Access Code > There is a freeware class that zips and unzips files from inside of > Access. > Uses withevents if you desire. Very nice class/lib. > > If you are interested I'll bang out a demo. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie > Courchesne, > CMA > Sent: Tuesday, December 21, 2004 6:53 AM > To: Accessd > Subject: [AccessD] Using WinZip with Access Code > > > Hi group, > > Is it possible to compress a file with winzip using access code (A2K)? > > Thanks! > > > > Annie Courchesne, CMA > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 21 09:20:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 21 Dec 2004 10:20:43 -0500 Subject: [AccessD] FoxFire and FTP Message-ID: <001501c4e770$a3603080$677aa8c0@ColbyM6805> Does anyone know how to get FoxFire to prompt with a username / password if necessary. On my machine it just throws an error if a password is required. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From ssharkins at bellsouth.net Tue Dec 21 09:35:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 21 Dec 2004 10:35:21 -0500 Subject: [AccessD] OT: The Polar Express In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0248587E@natexch.jenkens.com> Message-ID: <20041221153521.YQAG1992.imf16aec.mail.bellsouth.net@SUSANONE> Well, I originally said something about that, but then I deleted it -- didn't want to get fussed at. ;) You do realize that the underwear you're talking about didn't come from Santa don't you? There's another guy out there known as Sugar Daddy... he leaves that underwear. :) Susan H. I guess that depends on the underwear (evil grin!) From Paul.Rogers at SummitMedia.co.uk Tue Dec 21 09:45:58 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Tue, 21 Dec 2004 15:45:58 -0000 Subject: [AccessD] Decimal places Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F451@s003.wolds.summitmedia.co.uk> Sorry, gurus, I must have been asleep. I've remembered, of course. Many apologies. cheers paul -----Original Message----- From: Paul Rodgers [mailto:Paul.Rogers at summitmedia.co.uk] Sent: 21 December 2004 15:13 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Simple route to decimal places? How can I tell a percentage arriving from a query that I don't need six or seven decimal places, please? One place would be perfect. Cheers paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kaupca at chevrontexaco.com Tue Dec 21 10:18:31 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Tue, 21 Dec 2004 10:18:31 -0600 Subject: [AccessD] Alter table and alter column Message-ID: <1375769556091B4DAABC159F944CA1BB07A34C@bocnte2k4.hou150.chevrontexaco.net> I am using the following code to change the data type of one field in a table. Can I change more than one in a single SQL statement? Function ChangeDataType() Dim cnn As ADODB.Connection Dim strSQL As String Set cnn = CurrentProject.Connection strSQL = "ALTER TABLE [tbl_30da] ALTER COLUMN GTM single" cnn.Execute strSQL End Function Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From serbach at new.rr.com Tue Dec 21 11:28:03 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 21 Dec 2004 11:28:03 -0600 Subject: [AccessD] OT: The Polar Express In-Reply-To: References: Message-ID: <20041221112803.88901541.serbach@new.rr.com> John, Take it from me, a fellow Wisconsinite, the movie is magnificent. Scary? I would say deliciously so. There are sequences during the film that would be absolutely frightening if it were live action; but the confidence projected by the conductor (Tom Hanks) makes it all right. I could see why it cost $160 million to film. I only wish it were a blockbuster at the box office. It's been steady, but it's only pulled in around $130 million in about 6 weeks. Too bad. It's a masterpiece. Steve Erbach Neenah, WI > ------------Original Message------------ > From: John Bartow > To: "Access Developers discussion and problem solving" > Date: Mon, Dec-20-2004 12:02 PM > Subject: RE: [AccessD] OT: The Polar Express > > Hi Gustav, > Thanks, I'll go to the site with my wife tonight and check it out. > > John From john at winhaven.net Tue Dec 21 12:19:26 2004 From: john at winhaven.net (John Bartow) Date: Tue, 21 Dec 2004 12:19:26 -0600 Subject: [AccessD] corruption Message-ID: <200412211223149.SM00767@ScuzzPaq> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? John B. From Gustav at cactus.dk Tue Dec 21 13:21:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Dec 2004 20:21:50 +0100 Subject: [AccessD] corruption Message-ID: Hi John Recently I noticed this but I have no references: http://www.securitylab.ru/tools/50346.html /gustav >>> john at winhaven.net 21-12-2004 19:19:26 >>> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? From markamatte at hotmail.com Tue Dec 21 14:16:19 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 21 Dec 2004 20:16:19 +0000 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Hello All, I'm pretty sure this is a lost cause...but I just received an A97 db...there is no password...but I don't have permission to make any changes(tables,queries...or even view the macros). My guess is I need to know the UserGroup and PID that was used to change/create the permissions. Is this correct...and are there any workarounds? Thanks, Mark From john at winhaven.net Tue Dec 21 14:23:33 2004 From: john at winhaven.net (John Bartow) Date: Tue, 21 Dec 2004 14:23:33 -0600 Subject: [AccessD] corruption In-Reply-To: Message-ID: <200412211428192.SM00767@ScuzzPaq> Thanks Gustav, I tried this and a couple of other downloads and data recovery services I googled up. Nothing/no one recovered much of it. The main table had well over 20,000 records in it and the most anything recovered was 17. I will now have them re-enter a couple of hundreds records. Oh well, it drove home my point about testing backup jobs once in awhile to make sure they are valid. (They thought I was a little bit paranoid or something when I told them to do this and just blew it off.) This company backed up every day - so they thought. The last recoverable tape data we found this morning was from 11/03! Doesn't hurt to have your advice reinforced by a problem like this but I would have preferred otherwise. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 21, 2004 1:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] corruption Hi John Recently I noticed this but I have no references: http://www.securitylab.ru/tools/50346.html /gustav >>> john at winhaven.net 21-12-2004 19:19:26 >>> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Dec 21 15:03:58 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 21 Dec 2004 13:03:58 -0800 Subject: [AccessD] Proper Case In-Reply-To: <2025BB6F17FCB54791F23CD505583328088775@starfleet.unknown.local> Message-ID: Vlad, I also have a sample database on Rogers website: http://rogersaccesslibrary.com/OtherLibraries.asp Scroll down until you see my name. My sample is based on some older A97 code but does the job nicely. The sample also includes a SQL Server version. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ACTEBS Sent: Tuesday, December 21, 2004 5:42 AM To: Access Group (E-mail) Subject: [AccessD] Proper Case Hi Everyone, Does anyone have a some proper case code that looks after things like McDonald etc? Thanks and a very Merry Christmas to one and all... Regards Vlad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From james at charltonweeks.com Tue Dec 21 15:05:12 2004 From: james at charltonweeks.com (james charlton) Date: Tue, 21 Dec 2004 13:05:12 -0800 Subject: [AccessD] corruption Message-ID: The problem is that too many users think that what they need is a backup system that works. What they really need is a recovery system that works... -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Tuesday, December 21, 2004 12:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] corruption Thanks Gustav, I tried this and a couple of other downloads and data recovery services I googled up. Nothing/no one recovered much of it. The main table had well over 20,000 records in it and the most anything recovered was 17. I will now have them re-enter a couple of hundreds records. Oh well, it drove home my point about testing backup jobs once in awhile to make sure they are valid. (They thought I was a little bit paranoid or something when I told them to do this and just blew it off.) This company backed up every day - so they thought. The last recoverable tape data we found this morning was from 11/03! Doesn't hurt to have your advice reinforced by a problem like this but I would have preferred otherwise. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 21, 2004 1:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] corruption Hi John Recently I noticed this but I have no references: http://www.securitylab.ru/tools/50346.html /gustav >>> john at winhaven.net 21-12-2004 19:19:26 >>> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwhittinghill at symphonyinfo.com Tue Dec 21 15:18:00 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Tue, 21 Dec 2004 15:18:00 -0600 Subject: [AccessD] OT: Filemaker field names Message-ID: <000b01c4e7a2$8de01e50$2601a8c0@Symphony.local> Hi all, We have a new client, and we need to import information from an existing Filemaker database. I am trying to export from Filemaker into a format that Access can import from. I have not been able to export field names. I have tried all formats and had no success. I exported to .dbf, which is supposed to include file names, but was unable to import into Access from the .dbf. Is there something I'm missing, or will I just have to do a painstaking comparison between Filemaker data and a text file so I can match fields? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com From martyconnelly at shaw.ca Tue Dec 21 15:24:48 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 21 Dec 2004 13:24:48 -0800 Subject: [AccessD] OT: The Polar Express References: Message-ID: <41C894A0.50701@shaw.ca> If you ever do. Here is an easier way than canoeing. There are several working ferries on the west coast of BC , where you can take your family for a week with a couple of cabins. The crew will do beach barbeques as long as you dont mind 2AM dockings http://www.ladyrosemarine.com/ Old Boats are sometimes more interesting than trains , this one grew up on the Clyde in Glasgow. Gustav Brock wrote: >Thanks Marty! Looks great. Next stop Canada. > >/gustav > > > >>>>martyconnelly at shaw.ca 20-12-2004 08:16:59 >>> >>>> >>>> >If you are a train fan this one runs bi weekly every summer. >I thought of it when I saw the movie trailers. >Polar Bear Express from Cochrane to Mooseonee. >http://www.polarbearexpress.ca/ >Not many polar bears there, as they are generally around Churchill 500 > >further west >Rode the train years ago one way, as we canoed up the Missinaibi >river, >took the train back. >Don't do this route without a guide, unless you have done a lot of >wilderness routes >Portages around Thunderhouse falls are not marked correctly on topo >maps >and can kill you. >When we did it in the early 70's, we were working off hand written >notes >by a previous canoeist. >It is better marked now. >http://www.myccr.com/canoedb/routeDetails.php?routeid=197 >http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html > >At the bottom of page is a picture of one the scenic spots >Conjuring House Falls on the Missinaibi >http://travel.canoe.ca/che-mun/99list2.html > >Gustav Brock wrote: > > > >>Hi all >> >>Well, isn't it still Friday here? >> >>Anyway, I enjoyed The Polar Express yesterday in the original US >>version in a major theater with a state-of-the-art sound system. >>What a magnificent movie! >>Anybody else: don't miss it. Indeed, if you are a fan of steam >> >> >engines > > >>(or just trains in general), this movie is a must - it'll take you >>away. >> >>/gustav >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From markamatte at hotmail.com Tue Dec 21 15:29:29 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 21 Dec 2004 21:29:29 +0000 Subject: [AccessD] OT: Filemaker field names In-Reply-To: <000b01c4e7a2$8de01e50$2601a8c0@Symphony.local> Message-ID: Mark, I'm not familiar with Filemaker...but could you insert a row( the data actually being the field name)...sort your export so this row is the first...then have access import with 'First Row Contains Column Heading'... ...as I said...I'm not familiar with Filemaker...but I've done this before with a text file that didn't have field/column names. Shot in the dark, but hope it helps. Thanks, Mark A. Matte >From: "Mark Whittinghill" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: [AccessD] OT: Filemaker field names >Date: Tue, 21 Dec 2004 15:18:00 -0600 > >Hi all, > > We have a new client, and we need to import information from an existing >Filemaker database. I am trying to export from Filemaker into a format >that >Access can import from. I have not been able to export field names. I >have >tried all formats and had no success. I exported to .dbf, which is >supposed >to include file names, but was unable to import into Access from the .dbf. >Is there something I'm missing, or will I just have to do a painstaking >comparison between Filemaker data and a text file so I can match fields? > >Mark Whittinghill >Symphony Information Services >763-391-7400 >mwhittinghill at symphonyinfo.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Tue Dec 21 15:42:20 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 21 Dec 2004 16:42:20 -0500 Subject: [AccessD] Using WinZip with Access Code References: <001401c4e770$626f47f0$677aa8c0@ColbyM6805> Message-ID: ..you know me ...I hate shell almost as much as I do 3rd party ocx's :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 21, 2004 10:18 AM Subject: RE: [AccessD] Using WinZip with Access Code > >..you are such a tease ...just post it already, eh ...or point us to a dl > > Hey, I'm not spending time on a demo if everyone's just going to use the > shell thing. I have it embedded as a service in my framework so it's not > like I go import code when I want to use it. > > For those able to just figure this stuff out, there is a file vbzip10.zip > on > a ftp directory: > > ftp://www.colbyconsulting.com/ftproot/AccessD/ > > UserName: AccessD > Password: AccessD > > It contains the two basic modules, two classes and two matching DLLs for > zipping and unzipping. The classes are already set up to allow placing > then > in a library and instantiating them from outside the library. > > I will put it on my ToDo list for getting a demo working. I have a client > deadline that I really must attend to before I can take the time to do the > demo. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Tuesday, December 21, 2004 9:33 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Using WinZip with Access Code > > > ..you are such a tease ...just post it already, eh ...or point us to a dl > :) > > William Hindman > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, December 21, 2004 9:05 AM > Subject: RE: [AccessD] Using WinZip with Access Code > > >> There is a freeware class that zips and unzips files from inside of >> Access. >> Uses withevents if you desire. Very nice class/lib. >> >> If you are interested I'll bang out a demo. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie >> Courchesne, >> CMA >> Sent: Tuesday, December 21, 2004 6:53 AM >> To: Accessd >> Subject: [AccessD] Using WinZip with Access Code >> >> >> Hi group, >> >> Is it possible to compress a file with winzip using access code (A2K)? >> >> Thanks! >> >> >> >> Annie Courchesne, CMA >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jim.Hale at FleetPride.com Tue Dec 21 16:00:40 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 21 Dec 2004 16:00:40 -0600 Subject: [AccessD] OT: Filemaker field names Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723372F2@corp-es01.fleetpride.com> http://www.fmpromigrator.com/products/fmpro_migrator/index.html?promo=google c8 Check this out. Also, have you looked for ODBC drivers? Jim -----Original Message----- From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] Sent: Tuesday, December 21, 2004 3:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Filemaker field names Hi all, We have a new client, and we need to import information from an existing Filemaker database. I am trying to export from Filemaker into a format that Access can import from. I have not been able to export field names. I have tried all formats and had no success. I exported to .dbf, which is supposed to include file names, but was unable to import into Access from the .dbf. Is there something I'm missing, or will I just have to do a painstaking comparison between Filemaker data and a text file so I can match fields? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From dejpolsys at hotmail.com Tue Dec 21 16:02:03 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 21 Dec 2004 17:02:03 -0500 Subject: [AccessD] OT: The Polar Express References: <41C894A0.50701@shaw.ca> Message-ID: ..really nice link Marty ...tks :) William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, December 21, 2004 4:24 PM Subject: Re: [AccessD] OT: The Polar Express > If you ever do. > Here is an easier way than canoeing. > There are several working ferries on the west coast of BC , where > you can take your family for a week with a couple of cabins. > The crew will do beach barbeques as long as you dont mind 2AM dockings > http://www.ladyrosemarine.com/ > Old Boats are sometimes more interesting than trains , this one grew up on > the Clyde in Glasgow. > Gustav Brock wrote: > >>Thanks Marty! Looks great. Next stop Canada. >> >>/gustav >> >> >>>>>martyconnelly at shaw.ca 20-12-2004 08:16:59 >>> >>>>> >>If you are a train fan this one runs bi weekly every summer. >>I thought of it when I saw the movie trailers. >>Polar Bear Express from Cochrane to Mooseonee. >>http://www.polarbearexpress.ca/ Not many polar bears there, as they are >>generally around Churchill 500 >> >>further west >>Rode the train years ago one way, as we canoed up the Missinaibi >>river, took the train back. >>Don't do this route without a guide, unless you have done a lot of >>wilderness routes >>Portages around Thunderhouse falls are not marked correctly on topo >>maps and can kill you. >>When we did it in the early 70's, we were working off hand written >>notes by a previous canoeist. >>It is better marked now. >>http://www.myccr.com/canoedb/routeDetails.php?routeid=197 >>http://www.canoe.ca/AllAboutCanoes/book_missinaibi.html >>At the bottom of page is a picture of one the scenic spots >>Conjuring House Falls on the Missinaibi >>http://travel.canoe.ca/che-mun/99list2.html >>Gustav Brock wrote: >> >> >>>Hi all >>> >>>Well, isn't it still Friday here? >>> >>>Anyway, I enjoyed The Polar Express yesterday in the original US >>>version in a major theater with a state-of-the-art sound system. What a >>>magnificent movie! Anybody else: don't miss it. Indeed, if you are a fan >>>of steam >>> >>engines >> >>>(or just trains in general), this movie is a must - it'll take you >>>away. >>> >>>/gustav >>> >>> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Tue Dec 21 16:18:42 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 21 Dec 2004 14:18:42 -0800 Subject: [AccessD] Using WinZip with Access Code In-Reply-To: <001401c4e770$626f47f0$677aa8c0@ColbyM6805> Message-ID: <000601c4e7ab$0b41c4e0$8500a8c0@murphyf3vdfepi> Hi John, Was not able to access the ftp address you gave. I was able to get the file at ftp://ftp.colbyconsulting.com/ using the name and password provided. Thanks Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 21, 2004 7:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Using WinZip with Access Code >..you are such a tease ...just post it already, eh ...or point us to a >dl Hey, I'm not spending time on a demo if everyone's just going to use the shell thing. I have it embedded as a service in my framework so it's not like I go import code when I want to use it. For those able to just figure this stuff out, there is a file vbzip10.zip on a ftp directory: ftp://www.colbyconsulting.com/ftproot/AccessD/ UserName: AccessD Password: AccessD It contains the two basic modules, two classes and two matching DLLs for zipping and unzipping. The classes are already set up to allow placing then in a library and instantiating them from outside the library. From mwhittinghill at symphonyinfo.com Tue Dec 21 16:41:38 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Tue, 21 Dec 2004 16:41:38 -0600 Subject: [AccessD] OT: Filemaker field names References: <6A6AA9DF57E4F046BDA1E273BDDB67723372F2@corp-es01.fleetpride.com> Message-ID: <002f01c4e7ae$3c450ae0$2601a8c0@Symphony.local> Thanks, Jim and Mark. What I ended up doing is installing Filemaker 7 demo here. I can convert the Filemaker 5 to 7. However, the exports still don't export field names. I found I could export to dBase format and get to it from there. I don't understand why Filemaker doesn't export field names to text. Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 21, 2004 4:00 PM Subject: RE: [AccessD] OT: Filemaker field names > http://www.fmpromigrator.com/products/fmpro_migrator/index.html?promo=google > c8 > > Check this out. Also, have you looked for ODBC drivers? > Jim > > -----Original Message----- > From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] > Sent: Tuesday, December 21, 2004 3:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Filemaker field names > > > Hi all, > > We have a new client, and we need to import information from an existing > Filemaker database. I am trying to export from Filemaker into a format that > Access can import from. I have not been able to export field names. I have > tried all formats and had no success. I exported to .dbf, which is supposed > to include file names, but was unable to import into Access from the .dbf. > Is there something I'm missing, or will I just have to do a painstaking > comparison between Filemaker data and a text file so I can match fields? > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. ---------------------------------------------------------------------------- ---- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Dec 21 17:18:30 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 21 Dec 2004 15:18:30 -0800 Subject: [AccessD] corruption References: <200412211428192.SM00767@ScuzzPaq> Message-ID: <41C8AF46.4090801@shaw.ca> you could try http://www.pksolutions.com John Bartow wrote: >Thanks Gustav, >I tried this and a couple of other downloads and data recovery services I >googled up. > >Nothing/no one recovered much of it. The main table had well over 20,000 >records in it and the most anything recovered was 17. I will now have them >re-enter a couple of hundreds records. Oh well, it drove home my point about >testing backup jobs once in awhile to make sure they are valid. (They >thought I was a little bit paranoid or something when I told them to do this >and just blew it off.) This company backed up every day - so they thought. >The last recoverable tape data we found this morning was from 11/03! > >Doesn't hurt to have your advice reinforced by a problem like this but I >would have preferred otherwise. > >John B. > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Tuesday, December 21, 2004 1:22 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] corruption > >Hi John > >Recently I noticed this but I have no references: > > http://www.securitylab.ru/tools/50346.html > >/gustav > > > >>>>john at winhaven.net 21-12-2004 19:19:26 >>> >>>> >>>> >I need a reference to the company that fixes corrupted access backend >databases. Anyone have one? >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada From pcs at azizaz.com Tue Dec 21 18:36:06 2004 From: pcs at azizaz.com (Borge Hansen) Date: Wed, 22 Dec 2004 10:36:06 +1000 Subject: [AccessD] How to control an Update Query References: Message-ID: <00f901c4e7be$39fd4a80$fa10a8c0@Albatross> Hi Gustav, Thanks for showing interest in this minor problem here, and also for your responses to my date field questions some weeks past.... Well, it was about how do you control the sorting when updating a memofield with several records from a source table, one line in the memofield for each record. I gave it another thought and found a solution. What I first did was : UPDATE ztblMerge INNER JOIN qztblSource ON ztblMerge.UFN = qztblSource.UFN SET ztblMerge.MergeField = IIf(Len([ztblMerge].[MergeField])>0,[ztblMerge].[MergeField] & " " & [qztblSource].[TextField],[qztblSource].[TextField]), qztblSource.SelectFlag = Yes WHERE (((qztblSource.SelectFlag)=No)); ...thinking that since the query qztblSource was sorted the way I wanted, then the records would be written into the merge memofield in the same sorted way. They don't! Creating another select query based on the inner join above and doing the sort on the fields as required and then using this new select query as source for the update does the trick: qzUpdateztblMergeVersion2_Source: SELECT ztblMerge.UFN, ztblMerge.MergeField, qztblSource.UFN, qztblSource.TextField, qztblSource.SelectFlag FROM qztblSource INNER JOIN ztblMerge ON qztblSource.UFN = ztblMerge.UFN ORDER BY qztblSource.UFN DESC , qztblSource.TextField DESC; The final update query: UPDATE qzUpdateztblMergeVersion2_Source AS Q SET Q.MergeField = IIf(Len([Q].[MergeField])>0,[Q].[MergeField] & " " & [Q].[TextField],[Q].[TextField]), Q.SelectFlag = Yes WHERE (((Q.SelectFlag)=No)); Perhaps there is a simpler way? Borge ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 21, 2004 8:36 PM Subject: Re: [AccessD] How to control an Update Query > Hi Borge > Oh, they completely confused me. > Now, what was your question? > /gustav > Gustav, they are just visual delimeters added to the data placed in the > memo > field... pretty ugly ehh? > Borge > > Hi Borge > > What are the ">>" signs supposed to do? > > /gustav --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 20/11/2004 From john at winhaven.net Tue Dec 21 18:40:01 2004 From: john at winhaven.net (John Bartow) Date: Tue, 21 Dec 2004 18:40:01 -0600 Subject: [AccessD] corruption In-Reply-To: Message-ID: <200412211844731.SM00767@ScuzzPaq> Exactly! What in the world is a backup system good for? A recovery system, now that's important! John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of james charlton Sent: Tuesday, December 21, 2004 3:05 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] corruption The problem is that too many users think that what they need is a backup system that works. What they really need is a recovery system that works... -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Tuesday, December 21, 2004 12:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] corruption Thanks Gustav, I tried this and a couple of other downloads and data recovery services I googled up. Nothing/no one recovered much of it. The main table had well over 20,000 records in it and the most anything recovered was 17. I will now have them re-enter a couple of hundreds records. Oh well, it drove home my point about testing backup jobs once in awhile to make sure they are valid. (They thought I was a little bit paranoid or something when I told them to do this and just blew it off.) This company backed up every day - so they thought. The last recoverable tape data we found this morning was from 11/03! Doesn't hurt to have your advice reinforced by a problem like this but I would have preferred otherwise. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 21, 2004 1:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] corruption Hi John Recently I noticed this but I have no references: http://www.securitylab.ru/tools/50346.html /gustav >>> john at winhaven.net 21-12-2004 19:19:26 >>> I need a reference to the company that fixes corrupted access backend databases. Anyone have one? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Dec 21 19:56:44 2004 From: john at winhaven.net (John Bartow) Date: Tue, 21 Dec 2004 19:56:44 -0600 Subject: [AccessD] corruption In-Reply-To: <41C8AF46.4090801@shaw.ca> Message-ID: <200412212001969.SM00767@ScuzzPaq> Thanks, But I couldn't get their submission form or ftp site to work? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, December 21, 2004 5:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] corruption you could try http://www.pksolutions.com John Bartow wrote: >Thanks Gustav, >I tried this and a couple of other downloads and data recovery services >I googled up. > >Nothing/no one recovered much of it. The main table had well over >20,000 records in it and the most anything recovered was 17. I will now >have them re-enter a couple of hundreds records. Oh well, it drove home >my point about testing backup jobs once in awhile to make sure they are >valid. (They thought I was a little bit paranoid or something when I >told them to do this and just blew it off.) This company backed up every day - so they thought. >The last recoverable tape data we found this morning was from 11/03! > >Doesn't hurt to have your advice reinforced by a problem like this but >I would have preferred otherwise. > >John B. > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Tuesday, December 21, 2004 1:22 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] corruption > >Hi John > >Recently I noticed this but I have no references: > > http://www.securitylab.ru/tools/50346.html > >/gustav > > > >>>>john at winhaven.net 21-12-2004 19:19:26 >>> >>>> >>>> >I need a reference to the company that fixes corrupted access backend >databases. Anyone have one? >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Dec 21 21:34:58 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 21 Dec 2004 19:34:58 -0800 Subject: [AccessD] Select query to append query problem x posted Message-ID: <000201c4e7d7$39528230$6501a8c0@delllaptop> I have a select query which properly returns 3 records. SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); When I run the same query as an append query it adds 14 records. INSERT INTO TrainDate ( DocID, EmpID ) SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); The extra records do not seem to have any common link. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From ssharkins at bellsouth.net Tue Dec 21 21:48:41 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 21 Dec 2004 22:48:41 -0500 Subject: [AccessD] Select query to append query problem x posted In-Reply-To: <000201c4e7d7$39528230$6501a8c0@delllaptop> Message-ID: <20041222034840.BFDE2073.imf19aec.mail.bellsouth.net@SUSANONE> Run the SELECT without the DISTINCT keyword and see what you get. Susan H. I have a select query which properly returns 3 records. SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); When I run the same query as an append query it adds 14 records. INSERT INTO TrainDate ( DocID, EmpID ) SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); The extra records do not seem to have any common link. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Tue Dec 21 22:02:11 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Tue, 21 Dec 2004 22:02:11 -0600 Subject: [AccessD] My brain needs a jumpstart Message-ID: <8DA8776D2F418E46A2A464AC6CE6305012E91C@outbaksrv1.outbaktech.com> Where was the best place to buy the MSDN Universal kit? (Thinking of ordering it for myself for Christmas) Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com From jmhla at earthlink.net Tue Dec 21 22:09:58 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 21 Dec 2004 20:09:58 -0800 Subject: [AccessD] Select query to append query problem x posted In-Reply-To: <20041222034840.BFDE2073.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <000001c4e7dc$20415370$6501a8c0@delllaptop> Susan, You win my hero of this problem. Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, December 21, 2004 7:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Select query to append query problem x posted Run the SELECT without the DISTINCT keyword and see what you get. Susan H. I have a select query which properly returns 3 records. SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); When I run the same query as an append query it adds 14 records. INSERT INTO TrainDate ( DocID, EmpID ) SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); The extra records do not seem to have any common link. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Dec 22 01:23:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 21 Dec 2004 23:23:54 -0800 Subject: [AccessD] Call query in after update of form or It is 11:00 PM do you know where my brain is ? Message-ID: <000001c4e7f7$34c5c090$6501a8c0@delllaptop> qapndNewDoctoJobsTrainDate Hows that for naming them? How do I call it from form after update? That's where I want to run it after record is added? Or after second txt box is updated? JOE HECHT LOS ANGELES CA jmhla at earthlink.net From cyx5 at cdc.gov Wed Dec 22 05:36:29 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 22 Dec 2004 06:36:29 -0500 Subject: [AccessD] A97 User Security Message-ID: This is a free password cracker: http://www.xfriday.com/general/show_entry.asp?TYP=1&EntryID=52 Or if you have visual basic: http://www.sorgonet.com/modules.php?name=News&file=article&sid=15 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, December 21, 2004 3:16 PM To: accessd at databaseadvisors.com Subject: [AccessD] A97 User Security Hello All, I'm pretty sure this is a lost cause...but I just received an A97 db...there is no password...but I don't have permission to make any changes(tables,queries...or even view the macros). My guess is I need to know the UserGroup and PID that was used to change/create the permissions. Is this correct...and are there any workarounds? Thanks, Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Dec 22 05:47:14 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Dec 2004 12:47:14 +0100 Subject: [AccessD] How to control an Update Query Message-ID: Hi Borge That solution looks fine to me. /gustav >>> pcs at azizaz.com 22-12-2004 01:36:06 >>> Hi Gustav, Thanks for showing interest in this minor problem here, and also for your responses to my date field questions some weeks past.... Well, it was about how do you control the sorting when updating a memofield with several records from a source table, one line in the memofield for each record. I gave it another thought and found a solution. What I first did was : UPDATE ztblMerge INNER JOIN qztblSource ON ztblMerge.UFN = qztblSource.UFN SET ztblMerge.MergeField = IIf(Len([ztblMerge].[MergeField])>0,[ztblMerge].[MergeField] & " " & [qztblSource].[TextField],[qztblSource].[TextField]), qztblSource.SelectFlag = Yes WHERE (((qztblSource.SelectFlag)=No)); ...thinking that since the query qztblSource was sorted the way I wanted, then the records would be written into the merge memofield in the same sorted way. They don't! Creating another select query based on the inner join above and doing the sort on the fields as required and then using this new select query as source for the update does the trick: qzUpdateztblMergeVersion2_Source: SELECT ztblMerge.UFN, ztblMerge.MergeField, qztblSource.UFN, qztblSource.TextField, qztblSource.SelectFlag FROM qztblSource INNER JOIN ztblMerge ON qztblSource.UFN = ztblMerge.UFN ORDER BY qztblSource.UFN DESC , qztblSource.TextField DESC; The final update query: UPDATE qzUpdateztblMergeVersion2_Source AS Q SET Q.MergeField = IIf(Len([Q].[MergeField])>0,[Q].[MergeField] & " " & [Q].[TextField],[Q].[TextField]), Q.SelectFlag = Yes WHERE (((Q.SelectFlag)=No)); Perhaps there is a simpler way? Borge ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 21, 2004 8:36 PM Subject: Re: [AccessD] How to control an Update Query > Hi Borge > Oh, they completely confused me. > Now, what was your question? > /gustav > Gustav, they are just visual delimeters added to the data placed in the > memo > field... pretty ugly ehh? > Borge > > Hi Borge > > What are the ">>" signs supposed to do? > > /gustav From cyx5 at cdc.gov Wed Dec 22 05:44:14 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 22 Dec 2004 06:44:14 -0500 Subject: [AccessD] Call query in after update of form or It is 11:00 PM doyou know where my brain is ? Message-ID: In after update of the second text box, or after insert event of form. Docmd.setwarnings false Docmd.openquery "qapndNewDoctoJobsTrainDate" 'Me.refresh (may be needed to refresh the screen if the records on the screen are affected by the query) Docmd.setwarnings true -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 22, 2004 2:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Call query in after update of form or It is 11:00 PM doyou know where my brain is ? qapndNewDoctoJobsTrainDate Hows that for naming them? How do I call it from form after update? That's where I want to run it after record is added? Or after second txt box is updated? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Wed Dec 22 06:19:12 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 22 Dec 2004 07:19:12 -0500 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Mark, Since it's user level security that's at play here, you'll need a utility. www.lostpassword.com is one site that offers such a utility. Do a Google search on "access" "password" and you'll turn up a bunch. There are a few Russian sites that have them for free. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Tuesday, December 21, 2004 3:16 PM To: accessd at databaseadvisors.com Subject: [AccessD] A97 User Security Hello All, I'm pretty sure this is a lost cause...but I just received an A97 db...there is no password...but I don't have permission to make any changes(tables,queries...or even view the macros). My guess is I need to know the UserGroup and PID that was used to change/create the permissions. Is this correct...and are there any workarounds? Thanks, Mark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Wed Dec 22 07:49:46 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 22 Dec 2004 07:49:46 -0600 Subject: [AccessD] Best way to requery a list box in Access 2003 Message-ID: <8DA8776D2F418E46A2A464AC6CE630500326F2@outbaksrv1.outbaktech.com> I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B From jwcolby at colbyconsulting.com Wed Dec 22 08:05:34 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 22 Dec 2004 09:05:34 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 In-Reply-To: <8DA8776D2F418E46A2A464AC6CE630500326F2@outbaksrv1.outbaktech.com> Message-ID: <002a01c4e82f$4dfdeb90$677aa8c0@ColbyM6805> You need to open the popup form modal so that execution stops in the routine that opens the popup. Then when the modal form closes, execution resumes and you immediately requery the combo. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Wednesday, December 22, 2004 8:50 AM To: AccessD Subject: [AccessD] Best way to requery a list box in Access 2003 I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kevinb at bepc.com Wed Dec 22 08:08:38 2004 From: kevinb at bepc.com (Kevin Bachmeier) Date: Wed, 22 Dec 2004 08:08:38 -0600 Subject: [AccessD] Best way to requery a list box in Access 2003 Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713479FDEB@HDQ06.bepc.net> Hi Jeff - I just so happened to tackle that same issue last night. I'm sure there are different ways of doing it, but here's what I did: My 'redirection' to the entry screen for the missing information is via a double click event of a combo box, so in the double click event, I am doing a docmd.openform and use the last parameter (openargs) of the docmd.openform command to insert "forms![formname]![controlname].requery" (the list box field on the form whose datasource you want to refresh). Then in the entry form's Close event, I stick: if not isnull(me.openargs) then eval(me.openargs) end if Since I may be calling this same entry screen from multiple screens, this will refresh the correct field's data source no matter where it was called from. Of course if you use the openargs for other functionality, this will not work for you. There are probably better ways of doing this, but so far it works for me. Good luck. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jeff Barrows Sent: Wednesday, December 22, 2004 7:50 AM To: AccessD Subject: [AccessD] Best way to requery a list box in Access 2003 I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Dec 22 08:16:29 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 22 Dec 2004 09:16:29 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 Message-ID: In the onclose event of the form that you are entering the new data in, do an If Isloaded("frmname") then Formname.fieldname.refresh or requery, I forget. End if -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Wednesday, December 22, 2004 8:50 AM To: AccessD Subject: [AccessD] Best way to requery a list box in Access 2003 I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Dec 22 09:12:41 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 22 Dec 2004 10:12:41 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 In-Reply-To: <8DA8776D2F418E46A2A464AC6CE630500326F2@outbaksrv1.outbaktech.com> Message-ID: <20041222151326.KPLI2051.imf22aec.mail.bellsouth.net@SUSANONE> You could requery every time is gets the focus. That way it's always the most up-to-date information, even if the user hasn't just closed a screen. Susan H. I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? From ssharkins at bellsouth.net Wed Dec 22 09:12:41 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 22 Dec 2004 10:12:41 -0500 Subject: [AccessD] Select query to append query problem x posted In-Reply-To: <000001c4e7dc$20415370$6501a8c0@delllaptop> Message-ID: <20041222151408.KPXL2051.imf22aec.mail.bellsouth.net@SUSANONE> Geez... ;) Glad to help. :) Susan H. Susan, You win my hero of this problem. From Paul.Rogers at SummitMedia.co.uk Wed Dec 22 09:18:39 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Wed, 22 Dec 2004 15:18:39 -0000 Subject: [AccessD] Inserting into an exported doc title Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F45A@s003.wolds.summitmedia.co.uk> I export the fields of an Access form to Word and save it in a stated path. Can I add something unique to the name of the document so that Access will allow an unlimited number of this document to be saved, please Experts? appWord.ActiveDocument.SaveAs "t:\WorksAllocation\FridayReports\FR.doc" The only unique field among the fields is the date. Cheers paul From Gustav at cactus.dk Wed Dec 22 09:40:56 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Dec 2004 16:40:56 +0100 Subject: [AccessD] Inserting into an exported doc title Message-ID: Hi Paul You can create a GUID and use that as (part of) filename: Option Compare Database Option Explicit Public Type GUID Data1 As Long Data2 As Integer Data3 As Integer Data4(0 To 7) As Byte End Type Private Declare Function CoCreateGuid Lib "ole32.dll" ( _ ByRef pguid As GUID) As Long Private Declare Function StringFromGUID2 Lib "ole32.dll" ( _ ByRef rguid As Any, _ ByVal lpstrClsId As Long, _ ByVal cbMax As Long) As Long ' Public Function GetGUIDString() As String ' Create a GUID and return its string representation. ' ' 2002-12-15. Cactus Data ApS, CPH. ' Length of GUID string per definition. Const clngGUID As Long = 38 ' Length of buffer with added space for zero terminator. Const clngBuffer As Long = clngGUID + 1 Dim udtGUID As GUID Dim strGUID As String * clngGUID Dim abytGUID() As Byte ' Dim byte array. abytGUID() = String(clngBuffer, vbNullChar) ' Create GUID. If CoCreateGuid(udtGUID) = 0 Then ' GUID was successfully created. If StringFromGUID2(udtGUID, VarPtr(abytGUID(0)), clngBuffer) = clngBuffer Then ' GUID was successfully copied into byte array abytGUID in Unicode. ' Convert byte array to Ansi GUID string stripping zero terminator. strGUID = abytGUID End If End If GetGUIDString = strGUID End Function >>> Paul.Rogers at summitmedia.co.uk 22-12-2004 16:18:39 >>> I export the fields of an Access form to Word and save it in a stated path. Can I add something unique to the name of the document so that Access will allow an unlimited number of this document to be saved, please Experts? appWord.ActiveDocument.SaveAs "t:\WorksAllocation\FridayReports\FR.doc" The only unique field among the fields is the date. Cheers paul From jwcolby at colbyconsulting.com Wed Dec 22 09:38:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 22 Dec 2004 10:38:39 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 In-Reply-To: <20041222151326.KPLI2051.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <003b01c4e83c$4f6a12d0$677aa8c0@ColbyM6805> Susan, That certainly works but should be applied judiciously. Imagine 50 users in a form tabbing through entering data all day long. Each field is a combo pulling 5000 records. You would have a TON of database activity (and slow combo functionality) just to ensure that the user had the "most up to date data". In my framework, I have a NotInList that fires if the data entered is not in the combo already. If it fires, then I can decide whether to requery the combo or open a form and try to find the record. If the record is not found I move to the new record for new data entry. Either way, the data is pulled ONLY if the data being entered is not in the list. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, December 22, 2004 10:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Best way to requery a list box in Access 2003 You could requery every time is gets the focus. That way it's always the most up-to-date information, even if the user hasn't just closed a screen. Susan H. I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lchristian at massmutual.com Wed Dec 22 09:46:16 2004 From: lchristian at massmutual.com (lchristian) Date: Wed, 22 Dec 2004 10:46:16 -0500 Subject: [AccessD] Don't go to new record Message-ID: <4-1529034-835508-ADNVUXDH@isimevip01.private.massmutual.com> lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) http://www.tumbleweed.com IME is a trademark of Tumbleweed Communications Corp. From ssharkins at bellsouth.net Wed Dec 22 09:58:57 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 22 Dec 2004 10:58:57 -0500 Subject: [AccessD] Best way to requery a list box in Access 2003 In-Reply-To: <003b01c4e83c$4f6a12d0$677aa8c0@ColbyM6805> Message-ID: <20041222155854.BBKY1992.imf16aec.mail.bellsouth.net@SUSANONE> All true. :) Susan H. Susan, That certainly works but should be applied judiciously. Imagine 50 users in a form tabbing through entering data all day long. Each field is a combo pulling 5000 records. You would have a TON of database activity (and slow combo functionality) just to ensure that the user had the "most up to date data". In my framework, I have a NotInList that fires if the data entered is not in the combo already. If it fires, then I can decide whether to requery the combo or open a form and try to find the record. If the record is not found I move to the new record for new data entry. Either way, the data is pulled ONLY if the data being entered is not in the list. From cfoust at infostatsystems.com Wed Dec 22 10:10:06 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Dec 2004 08:10:06 -0800 Subject: [AccessD] Don't go to new record Message-ID: What the heck is this? Charlotte Foust -----Original Message----- From: lchristian [mailto:lchristian at massmutual.com] Sent: Wednesday, December 22, 2004 7:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Don't go to new record lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) http://www.tumbleweed.com IME is a trademark of Tumbleweed Communications Corp. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 22 10:13:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Dec 2004 08:13:45 -0800 Subject: [AccessD] My brain needs a jumpstart Message-ID: Um ... Have you tried Microsoft? Or were you looking for a bargain? Charlotte Foust -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Tuesday, December 21, 2004 8:02 PM To: AccessD Subject: [AccessD] My brain needs a jumpstart Where was the best place to buy the MSDN Universal kit? (Thinking of ordering it for myself for Christmas) Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Wed Dec 22 10:24:07 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Wed, 22 Dec 2004 11:24:07 -0500 Subject: [AccessD] Inserting into an exported doc title In-Reply-To: <1FF4D9105232EB4DA1901BB7D175877E03F45A@s003.wolds.summitmedia.co.uk> Message-ID: <004101c4e842$acc82560$640fa8c0@COA3> I do this by taking out the punctuation from Now(), replacing it with underscores, so I get something like: 12_22_2004-10_00_00_am And appending that to the end of the file name. As long as its not done more than once per second, its ok. hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Rodgers Sent: Wednesday, December 22, 2004 10:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Inserting into an exported doc title I export the fields of an Access form to Word and save it in a stated path. Can I add something unique to the name of the document so that Access will allow an unlimited number of this document to be saved, please Experts? appWord.ActiveDocument.SaveAs "t:\WorksAllocation\FridayReports\FR.doc" The only unique field among the fields is the date. Cheers paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Dec 22 10:28:05 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 22 Dec 2004 10:28:05 -0600 Subject: [AccessD] Don't go to new record In-Reply-To: References: Message-ID: Ignore it. We had this happen a few months ago and it was because the person was sending from behind some kind of secure mail system thing. If you go to that link you probably can see the message. But it really should be reposted as a normal message. ------------------------------ Hello to sender of this message - you need to post it normally here if you want answers! ----------------------------- On Wed, 22 Dec 2004 08:10:06 -0800, Charlotte Foust wrote: > What the heck is this? > > Charlotte Foust > > > -----Original Message----- > From: lchristian [mailto:lchristian at massmutual.com] > Sent: Wednesday, December 22, 2004 7:46 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Don't go to new record > > lchristian has sent you a Secure E-Mail Message. The e-mail you have > received may include confidential information. > > Please click on the link below to read your secure e-mail message. If > you have trouble accessing your secure e-mail, see the instructions at > the bottom of this message. > > https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH > > The secure e-mail will expire on Sunday February 20, 2005 > > ...................................................................... > > Need help picking up your package? > > * If the Web address above is highlighted, click on it to open a > browser window. You will automatically be taken to the package. > > * If the Web address above is not highlighted, follow these steps: > - Open a Web browser window. > - Copy and paste the entire Web address into the "location" or > "address" bar of the browser. > - Press enter. > > _______________________________________________ > Delivered with IME(TM) > http://www.tumbleweed.com > IME is a trademark of Tumbleweed Communications Corp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Wed Dec 22 10:28:20 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 22 Dec 2004 11:28:20 -0500 Subject: [AccessD] Don't go to new record In-Reply-To: Message-ID: <003d01c4e843$44e29790$677aa8c0@ColbyM6805> LOL, I have no clue either but I'M not going to find out. In this day and age it could very well be some virus scam thingie. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, December 22, 2004 11:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Don't go to new record What the heck is this? Charlotte Foust -----Original Message----- From: lchristian [mailto:lchristian at massmutual.com] Sent: Wednesday, December 22, 2004 7:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Don't go to new record lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) http://www.tumbleweed.com IME is a trademark of Tumbleweed Communications Corp. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Dec 22 10:30:16 2004 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 22 Dec 2004 10:30:16 -0600 Subject: [AccessD] Don't go to new record In-Reply-To: <6669605.1103732139286.JavaMail.root@sniper13.securence.com> Message-ID: <001801c4e843$85354450$de1811d8@danwaters> This is probably a phishing event. Delete! - do not distribute. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, December 22, 2004 10:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Don't go to new record What the heck is this? Charlotte Foust -----Original Message----- From: lchristian [mailto:lchristian at massmutual.com] Sent: Wednesday, December 22, 2004 7:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Don't go to new record lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) IME is a trademark of Tumbleweed Communications Corp. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Paul.Rogers at SummitMedia.co.uk Wed Dec 22 10:32:05 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Wed, 22 Dec 2004 16:32:05 -0000 Subject: [AccessD] Inserting into an exported doc title Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F45B@s003.wolds.summitmedia.co.uk> Perfect for the job. That's a really handy tip, too. Many thanks, Steve cheers paul -----Original Message----- From: Steve Conklin (Developer at UltraDNT) [mailto:Developer at UltraDNT.com] Sent: 22 December 2004 16:24 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Inserting into an exported doc title I do this by taking out the punctuation from Now(), replacing it with underscores, so I get something like: 12_22_2004-10_00_00_am And appending that to the end of the file name. As long as its not done more than once per second, its ok. hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Rodgers Sent: Wednesday, December 22, 2004 10:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Inserting into an exported doc title I export the fields of an Access form to Word and save it in a stated path. Can I add something unique to the name of the document so that Access will allow an unlimited number of this document to be saved, please Experts? appWord.ActiveDocument.SaveAs "t:\WorksAllocation\FridayReports\FR.doc" The only unique field among the fields is the date. Cheers paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Wed Dec 22 10:40:07 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 22 Dec 2004 10:40:07 -0600 Subject: [AccessD] My brain needs a jumpstart Message-ID: <8DA8776D2F418E46A2A464AC6CE630500326F3@outbaksrv1.outbaktech.com> Looking for a bargin, hoping to avoid eBay for this one. I remember there was quite a bit of discussion about this last year, but I cannot seem to find it. -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wed 12/22/2004 10:13 AM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] My brain needs a jumpstart Um ... Have you tried Microsoft? Or were you looking for a bargain? Charlotte Foust -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Tuesday, December 21, 2004 8:02 PM To: AccessD Subject: [AccessD] My brain needs a jumpstart Where was the best place to buy the MSDN Universal kit? (Thinking of ordering it for myself for Christmas) Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Wed Dec 22 10:42:37 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 22 Dec 2004 10:42:37 -0600 Subject: [AccessD] Best way to requery a list box in Access 2003 Message-ID: <8DA8776D2F418E46A2A464AC6CE630500326F4@outbaksrv1.outbaktech.com> This sounds like it might just do the trick! I will try it out tonight and let the list know how it works for me! Thanks again for the ideas!!! -----Original Message----- From: Kevin Bachmeier [mailto:kevinb at bepc.com] Sent: Wed 12/22/2004 8:08 AM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Best way to requery a list box in Access 2003 Hi Jeff - I just so happened to tackle that same issue last night. I'm sure there are different ways of doing it, but here's what I did: My 'redirection' to the entry screen for the missing information is via a double click event of a combo box, so in the double click event, I am doing a docmd.openform and use the last parameter (openargs) of the docmd.openform command to insert "forms![formname]![controlname].requery" (the list box field on the form whose datasource you want to refresh). Then in the entry form's Close event, I stick: if not isnull(me.openargs) then eval(me.openargs) end if Since I may be calling this same entry screen from multiple screens, this will refresh the correct field's data source no matter where it was called from. Of course if you use the openargs for other functionality, this will not work for you. There are probably better ways of doing this, but so far it works for me. Good luck. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jeff Barrows Sent: Wednesday, December 22, 2004 7:50 AM To: AccessD Subject: [AccessD] Best way to requery a list box in Access 2003 I have a data entry form that uses dropdown lists to verify data exists. If the data does not exist, the user is redirected to the entry screen for the missing information. My problem occurs when the user closes the second entry screen. The list box on the first screen needs to be requeried, but I cannot seem to find the correct location to place the command. Any suggestions??? Jeff B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Dec 22 10:48:39 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 22 Dec 2004 16:48:39 +0000 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Thanks for the feedback...but there are no passwords on this db...I have my own app that returns the database password...which the one mentioned below does...in addition to the user level stuff. The problem is there are no passwords(database or user level) in this db...and thats what this tool said also. But I still can't figure out how to modify permissions. Any ideas? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 07:19:12 -0500 > >Mark, > > Since it's user level security that's at play here, you'll need a >utility. >www.lostpassword.com is one site that offers such a utility. Do a Google >search on "access" "password" and you'll turn up a bunch. There are a few >Russian sites that have them for free. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Tuesday, December 21, 2004 3:16 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 User Security > > >Hello All, > >I'm pretty sure this is a lost cause...but I just received an A97 >db...there >is no password...but I don't have permission to make any >changes(tables,queries...or even view the macros). My guess is I need to >know the UserGroup and PID that was used to change/create the permissions. >Is this correct...and are there any workarounds? > >Thanks, > >Mark > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Dec 22 10:54:36 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 22 Dec 2004 11:54:36 -0500 Subject: [AccessD] A97 User Security Message-ID: Join the workgroup for the administration level or user level or both. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, December 22, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks for the feedback...but there are no passwords on this db...I have my own app that returns the database password...which the one mentioned below does...in addition to the user level stuff. The problem is there are no passwords(database or user level) in this db...and thats what this tool said also. But I still can't figure out how to modify permissions. Any ideas? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 07:19:12 -0500 > >Mark, > > Since it's user level security that's at play here, you'll need a >utility. >www.lostpassword.com is one site that offers such a utility. Do a Google >search on "access" "password" and you'll turn up a bunch. There are a few >Russian sites that have them for free. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Tuesday, December 21, 2004 3:16 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 User Security > > >Hello All, > >I'm pretty sure this is a lost cause...but I just received an A97 >db...there >is no password...but I don't have permission to make any >changes(tables,queries...or even view the macros). My guess is I need to >know the UserGroup and PID that was used to change/create the permissions. >Is this correct...and are there any workarounds? > >Thanks, > >Mark > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From LChristian at MassMutual.com Wed Dec 22 11:41:42 2004 From: LChristian at MassMutual.com (Christian, Lorraine) Date: Wed, 22 Dec 2004 12:41:42 -0500 Subject: [AccessD] Don't go to new record Message-ID: <5B898D9F0627974EB82D0645E52B1E7D07A107C4@EXMBPR03.na.mmfg.net> I am so sorry about the first message....forgot to unsecure it.... I hate our email system...sorry again. Hi there and Happy Holidays :) I have a form that can be printed by clicking a print command button. My problem is that when the client clicks the button, the form prints as expected however it goes to a new record. I want it to stay on the record that was printed. Below is the code behind my button. Private Sub cmdPrint_Click() DoCmd.SetWarnings False DoCmd.RunCommand acCmdSaveRecord DoCmd.GoToControl "[txtClaimNumber]" DoCmd.RunCommand acCmdFilterBySelection DoCmd.PrintOut acSelection, , , acHigh, 3, True DoCmd.RunCommand acCmdRemoveFilterSort DoCmd.SetWarnings True End Sub Any ideas? Lorraine Christian MassMutual Financial Group New Business Operations 413.744.5335 lchristian at massmutual.com --------------------------------------------------------- This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. --------------------------------------------------------- From jwcolby at colbyconsulting.com Wed Dec 22 12:07:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 22 Dec 2004 13:07:41 -0500 Subject: [AccessD] Don't go to new record In-Reply-To: <5B898D9F0627974EB82D0645E52B1E7D07A107C4@EXMBPR03.na.mmfg.net> Message-ID: <004b01c4e851$20fdb770$677aa8c0@ColbyM6805> The problem is probably the RemoveFilterSort. This will cause a requery of the form and potentially cause the record being displayed to change. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christian, Lorraine Sent: Wednesday, December 22, 2004 12:42 PM To: Accessd at Databaseadvisors. Com (E-mail) Subject: [AccessD] Don't go to new record I am so sorry about the first message....forgot to unsecure it.... I hate our email system...sorry again. Hi there and Happy Holidays :) I have a form that can be printed by clicking a print command button. My problem is that when the client clicks the button, the form prints as expected however it goes to a new record. I want it to stay on the record that was printed. Below is the code behind my button. Private Sub cmdPrint_Click() DoCmd.SetWarnings False DoCmd.RunCommand acCmdSaveRecord DoCmd.GoToControl "[txtClaimNumber]" DoCmd.RunCommand acCmdFilterBySelection DoCmd.PrintOut acSelection, , , acHigh, 3, True DoCmd.RunCommand acCmdRemoveFilterSort DoCmd.SetWarnings True End Sub Any ideas? Lorraine Christian MassMutual Financial Group New Business Operations 413.744.5335 lchristian at massmutual.com --------------------------------------------------------- This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. --------------------------------------------------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Dec 22 12:14:31 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 22 Dec 2004 18:14:31 +0000 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Karen, There are only 2 workgroups...Admins and Users...I belong to both...but don't have permission to change anything. I can't even view the permission settings of the groups. I'm guessing there was another workgroup...that has been removed? Is this possible? I've always used my own security...and never the built in...I'm not sure how they created it with no one having the authority to change anything? Thanks, Mark >From: "Nicholson, Karen" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 11:54:36 -0500 > >Join the workgroup for the administration level or user level or both. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have >my >own app that returns the database password...which the one mentioned >below >does...in addition to the user level stuff. The problem is there are no > >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. > >www.lostpassword.com is one site that offers such a utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there > >is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need >to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From liu.yve at gmail.com Wed Dec 22 12:18:13 2004 From: liu.yve at gmail.com (yvonne liu) Date: Wed, 22 Dec 2004 13:18:13 -0500 Subject: [AccessD] Linking files to a form Message-ID: Hello all, What is the best way to link files to a form? These would be files that sit on a network server so all users using the database would have access to them, be they Word docs, Adobe PDFs, Outlook email texts, XLS, etc. Is it best to create a hyperlink? Or script with: Private Sub File_Click() Application.FollowHyperlink Me.Doc End Sub Can you recommend resources on where to read up on creating the latter solution, the script? Thanks so much!! From cfoust at infostatsystems.com Wed Dec 22 12:25:47 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Dec 2004 10:25:47 -0800 Subject: [AccessD] Don't go to new record Message-ID: Well, I wasn't about to follow the link to find out and the sender was unfamiliar, so I'm not that curious. I was just surprised to see it in the list. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, December 22, 2004 8:28 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Don't go to new record LOL, I have no clue either but I'M not going to find out. In this day and age it could very well be some virus scam thingie. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, December 22, 2004 11:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Don't go to new record What the heck is this? Charlotte Foust -----Original Message----- From: lchristian [mailto:lchristian at massmutual.com] Sent: Wednesday, December 22, 2004 7:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Don't go to new record lchristian has sent you a Secure E-Mail Message. The e-mail you have received may include confidential information. Please click on the link below to read your secure e-mail message. If you have trouble accessing your secure e-mail, see the instructions at the bottom of this message. https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH The secure e-mail will expire on Sunday February 20, 2005 ...................................................................... Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. _______________________________________________ Delivered with IME(TM) http://www.tumbleweed.com IME is a trademark of Tumbleweed Communications Corp. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Dec 22 12:35:07 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 22 Dec 2004 12:35:07 -0600 Subject: [AccessD] Don't go to new record In-Reply-To: <4-1529034-835508-ADNVUXDH@isimevip01.private.massmutual.com> References: <4-1529034-835508-ADNVUXDH@isimevip01.private.massmutual.com> Message-ID: Calm down everyone..... Here's the actual text to the message..... Lorraine please post normally in the future OK? You're scaring us all with this type of messaage ;-) ---------------------------------------- Hi there and Happy Holidays :) I have a form that can be printed by clicking a print command button. My problem is that when the client clicks the button, the form prints as expected however it goes to a new record. I want it to stay on the record that was printed. Below is the code behind my button. Private Sub cmdPrint_Click() DoCmd.SetWarnings False DoCmd.RunCommand acCmdSaveRecord DoCmd.GoToControl "[txtClaimNumber]" DoCmd.RunCommand acCmdFilterBySelection DoCmd.PrintOut acSelection, , , acHigh, 3, True DoCmd.RunCommand acCmdRemoveFilterSort DoCmd.SetWarnings True End Sub Any ideas? Lorraine Christian MassMutual Financial Group New Business Operations 413.744.5335 lchristian at massmutual.com ----------------------------------------------- On Wed, 22 Dec 2004 10:46:16 -0500, lchristian wrote: > > > lchristian has sent you a Secure E-Mail Message. The e-mail you have > received may include confidential information. > > Please click on the link below to read your secure e-mail message. If > you have trouble accessing your secure e-mail, see the instructions at > the bottom of this message. > > https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH > > The secure e-mail will expire on Sunday February 20, 2005 > > ...................................................................... > > Need help picking up your package? > > * If the Web address above is highlighted, click on it to open a > browser window. You will automatically be taken to the package. > > * If the Web address above is not highlighted, follow these steps: > - Open a Web browser window. > - Copy and paste the entire Web address into the "location" or > "address" bar of the browser. > - Press enter. > > _______________________________________________ > Delivered with IME(TM) > http://www.tumbleweed.com > IME is a trademark of Tumbleweed Communications Corp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From garykjos at gmail.com Wed Dec 22 12:36:32 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 22 Dec 2004 12:36:32 -0600 Subject: [AccessD] Don't go to new record In-Reply-To: References: Message-ID: Chickens! You're all CHICKENS! ;-) HA HA HA I followed it and copyed the text into a reply to the original message. Hopefully it will have posted by now. On Wed, 22 Dec 2004 10:25:47 -0800, Charlotte Foust wrote: > Well, I wasn't about to follow the link to find out and the sender was > unfamiliar, so I'm not that curious. I was just surprised to see it in > the list. > > Charlotte Foust > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, December 22, 2004 8:28 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Don't go to new record > > LOL, I have no clue either but I'M not going to find out. In this day > and age it could very well be some virus scam thingie. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Wednesday, December 22, 2004 11:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Don't go to new record > > What the heck is this? > > Charlotte Foust > > -----Original Message----- > From: lchristian [mailto:lchristian at massmutual.com] > Sent: Wednesday, December 22, 2004 7:46 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Don't go to new record > > lchristian has sent you a Secure E-Mail Message. The e-mail you have > received may include confidential information. > > Please click on the link below to read your secure e-mail message. If > you have trouble accessing your secure e-mail, see the instructions at > the bottom of this message. > > https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH > > The secure e-mail will expire on Sunday February 20, 2005 > > ...................................................................... > > Need help picking up your package? > > * If the Web address above is highlighted, click on it to open a > browser window. You will automatically be taken to the package. > > * If the Web address above is not highlighted, follow these steps: > - Open a Web browser window. > - Copy and paste the entire Web address into the "location" or > "address" bar of the browser. > - Press enter. > > _______________________________________________ > Delivered with IME(TM) > http://www.tumbleweed.com > IME is a trademark of Tumbleweed Communications Corp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Wed Dec 22 12:48:21 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Dec 2004 10:48:21 -0800 Subject: [AccessD] Don't go to new record Message-ID: Hmmn. Would you like me to forward a nice offer from producttestpanel.com? Charlotte Foust -----Original Message----- From: Gary Kjos [mailto:garykjos at gmail.com] Sent: Wednesday, December 22, 2004 10:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Don't go to new record Chickens! You're all CHICKENS! ;-) HA HA HA I followed it and copyed the text into a reply to the original message. Hopefully it will have posted by now. On Wed, 22 Dec 2004 10:25:47 -0800, Charlotte Foust wrote: > Well, I wasn't about to follow the link to find out and the sender was > unfamiliar, so I'm not that curious. I was just surprised to see it > in the list. > > Charlotte Foust > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, December 22, 2004 8:28 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Don't go to new record > > LOL, I have no clue either but I'M not going to find out. In this day > and age it could very well be some virus scam thingie. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Wednesday, December 22, 2004 11:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Don't go to new record > > What the heck is this? > > Charlotte Foust > > -----Original Message----- > From: lchristian [mailto:lchristian at massmutual.com] > Sent: Wednesday, December 22, 2004 7:46 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Don't go to new record > > lchristian has sent you a Secure E-Mail Message. The e-mail you have > received may include confidential information. > > Please click on the link below to read your secure e-mail message. If > you have trouble accessing your secure e-mail, see the instructions at > the bottom of this message. > > https://securemail.massmutual.com/ime?x=4-1529034-835508-ADNVUXDH > > The secure e-mail will expire on Sunday February 20, 2005 > > ...................................................................... > > Need help picking up your package? > > * If the Web address above is highlighted, click on it to open a > browser window. You will automatically be taken to the package. > > * If the Web address above is not highlighted, follow these steps: > - Open a Web browser window. > - Copy and paste the entire Web address into the "location" or > "address" bar of the browser. > - Press enter. > > _______________________________________________ > Delivered with IME(TM) > http://www.tumbleweed.com > IME is a trademark of Tumbleweed Communications Corp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lister at actuarial-files.com Wed Dec 22 14:08:10 2004 From: lister at actuarial-files.com (Ralf Lister) Date: Wed, 22 Dec 2004 16:08:10 -0400 Subject: [AccessD] Corrupt Database Message-ID: <006101c4e862$1ef8fe10$43976bce@ralf> Hello, each once in a while one of my databases (less than 1 MByte) gets corrupted and the repair option in the Tools menu doesn't help at all. I don't know what to do (beside saving BackUps). Doe anyoone experienced the same problem and know what to do ? Saludos y Felices Fiestas Ralf Lister From stuart at lexacorp.com.pg Wed Dec 22 15:05:33 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 23 Dec 2004 07:05:33 +1000 Subject: [AccessD] Inserting into an exported doc title In-Reply-To: <004101c4e842$acc82560$640fa8c0@COA3> References: <1FF4D9105232EB4DA1901BB7D175877E03F45A@s003.wolds.summitmedia.co.uk> Message-ID: <41CA6E3D.14917.886C742@lexacorp.com.pg> On 22 Dec 2004 at 11:24, Steve Conklin (Developer at Ultr wrote: > I do this by taking out the punctuation from Now(), replacing it with > underscores, so I get something like: > 12_22_2004-10_00_00_am > And appending that to the end of the file name. As long as its not done > more than once per second, its ok. > I prefer filename & format(Now(),"yymmddhhnnss") Using that form means that the files will sort chronologically by name. -- Stuart From martyconnelly at shaw.ca Wed Dec 22 16:05:32 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 22 Dec 2004 14:05:32 -0800 Subject: [AccessD] corruption References: <200412212001969.SM00767@ScuzzPaq> Message-ID: <41C9EFAC.1080606@shaw.ca> Try using Netscape I have found some ftp sites won't work with IE 6. Haven't bothered to track down the reason yet. or email pmiller at pksolutions.com Peter Miller is pretty active on comp.databases.ms-access But he runs a small shop 2 or 3 man band, maybe he is off in Mexico for holidays. John Bartow wrote: >Thanks, >But I couldn't get their submission form or ftp site to work? > > > >John B. >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Tuesday, December 21, 2004 5:19 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] corruption > >you could try >http://www.pksolutions.com > > >John Bartow wrote: > > > >>Thanks Gustav, >>I tried this and a couple of other downloads and data recovery services >>I googled up. >> >>Nothing/no one recovered much of it. The main table had well over >>20,000 records in it and the most anything recovered was 17. I will now >>have them re-enter a couple of hundreds records. Oh well, it drove home >>my point about testing backup jobs once in awhile to make sure they are >>valid. (They thought I was a little bit paranoid or something when I >>told them to do this and just blew it off.) This company backed up every >> >> >day - so they thought. > > >>The last recoverable tape data we found this morning was from 11/03! >> >>Doesn't hurt to have your advice reinforced by a problem like this but >>I would have preferred otherwise. >> >>John B. >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Tuesday, December 21, 2004 1:22 PM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] corruption >> >>Hi John >> >>Recently I noticed this but I have no references: >> >> http://www.securitylab.ru/tools/50346.html >> >>/gustav >> >> >> >> >> >>>>>john at winhaven.net 21-12-2004 19:19:26 >>> >>>>> >>>>> >>>>> >>>>> >>I need a reference to the company that fixes corrupted access backend >>databases. Anyone have one? >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Dec 22 16:11:14 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 22 Dec 2004 14:11:14 -0800 Subject: [AccessD] A97 User Security References: Message-ID: <41C9F102.6080206@shaw.ca> Maybe a corrupt system.mdw, try doing a repair on it or a copy. Mark A Matte wrote: > Karen, > > There are only 2 workgroups...Admins and Users...I belong to > both...but don't have permission to change anything. I can't even > view the permission settings of the groups. I'm guessing there was > another workgroup...that has been removed? Is this possible? I've > always used my own security...and never the built in...I'm not sure > how they created it with no one having the authority to change anything? > > Thanks, > > Mark > > > >> From: "Nicholson, Karen" >> Reply-To: Access Developers discussion and problem >> solving >> To: "Access Developers discussion and problem >> solving" >> Subject: RE: [AccessD] A97 User Security >> Date: Wed, 22 Dec 2004 11:54:36 -0500 >> >> Join the workgroup for the administration level or user level or both. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Wednesday, December 22, 2004 11:49 AM >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] A97 User Security >> >> >> Thanks for the feedback...but there are no passwords on this db...I have >> my >> own app that returns the database password...which the one mentioned >> below >> does...in addition to the user level stuff. The problem is there are no >> >> passwords(database or user level) in this db...and thats what this tool >> said >> also. But I still can't figure out how to modify permissions. >> >> Any ideas? >> >> Thanks, >> >> Mark >> >> >> >> >From: "Jim Dettman" >> >Reply-To: Access Developers discussion and problem >> >solving >> >To: "Access Developers discussion and problem >> >solving" >> >Subject: RE: [AccessD] A97 User Security >> >Date: Wed, 22 Dec 2004 07:19:12 -0500 >> > >> >Mark, >> > >> > Since it's user level security that's at play here, you'll need a >> >utility. >> >www.lostpassword.com is one site that offers such a utility. Do a >> Google >> >search on "access" "password" and you'll turn up a bunch. There are a >> few >> >Russian sites that have them for free. >> > >> >Jim Dettman >> > >> > >> >-----Original Message----- >> >From: accessd-bounces at databaseadvisors.com >> >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> >Sent: Tuesday, December 21, 2004 3:16 PM >> >To: accessd at databaseadvisors.com >> >Subject: [AccessD] A97 User Security >> > >> > >> >Hello All, >> > >> >I'm pretty sure this is a lost cause...but I just received an A97 >> >db...there >> >is no password...but I don't have permission to make any >> >changes(tables,queries...or even view the macros). My guess is I need >> to >> >know the UserGroup and PID that was used to change/create the >> permissions. >> >Is this correct...and are there any workarounds? >> > >> >Thanks, >> > >> >Mark >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From jimdettman at earthlink.net Wed Dec 22 16:31:12 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 22 Dec 2004 17:31:12 -0500 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Mark, <> Understood. There are various utilities out there, some work on the database password while others work on the workgroup file. You need the later. <> Yes. <> <> <> You would if you had the workgroup file that had the correct SIDs. In in the past, I've setup some DB's with exactly this setup. For development, I have one MDW. For the clients, they just use the standard MDW file. This is possible because the user 'Admin' and the group 'users' have the same SID (Security ID) no matter what MDW file you use. The group 'admins' however, is different for each one. So in your case, ownership of the objects belongs to someone that was in a different admins group, but the ability to run, view, etc was assigned to the users group (which is the same no matter which MDW you use). You need to break user level security and www.lostpassword.com does have a utility for that. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Wednesday, December 22, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks for the feedback...but there are no passwords on this db...I have my own app that returns the database password...which the one mentioned below does...in addition to the user level stuff. The problem is there are no passwords(database or user level) in this db...and thats what this tool said also. But I still can't figure out how to modify permissions. Any ideas? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 07:19:12 -0500 > >Mark, > > Since it's user level security that's at play here, you'll need a >utility. >www.lostpassword.com is one site that offers such a utility. Do a Google >search on "access" "password" and you'll turn up a bunch. There are a few >Russian sites that have them for free. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Tuesday, December 21, 2004 3:16 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 User Security > > >Hello All, > >I'm pretty sure this is a lost cause...but I just received an A97 >db...there >is no password...but I don't have permission to make any >changes(tables,queries...or even view the macros). My guess is I need to >know the UserGroup and PID that was used to change/create the permissions. >Is this correct...and are there any workarounds? > >Thanks, > >Mark > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Wed Dec 22 17:55:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 23 Dec 2004 10:55:45 +1100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Import dialogue Message-ID: <200412222355.iBMNtvRl016812@cooper.uws.edu.au> Hello all Using XP and 98 1st Question re splash screens I have an access app called mydb.mdb In the same folder as mydb.mdb I have a (large) bmp called mydb.bmp When I start the app I expect to see my BMP file load for a second - but it doesn't The standard "Access 2003" screen loads instead Anyone know why? Question 2 When you assign JPG files to the dot Picture property of an image control You get the Importing. or Loading. dialogue box I have modified the Registry as per instructions from various web sites And user groups (even the archives here had a reference to solving the Problem - the SUBJECT was Removing the annoying flash...) Anyway I thought it worked earlier this week. That is..In one of my apps I load a switchboard with a few graphics and the import dialogue box appears for each of the graphics (even though they are small graphic files) but with 3 or 4 of 'em Being opened and or loaded consecutively the dialogue Is open long enough to be annoying But I am sure when I tried this registry 'tweak' at the beginning of the week - it worked. IE I am sure it was just the hourglass in the space where the Import dialogue box used to be. Now I am revisiting this issue, the Dialogue boxes are back even though the Registry entry has been set to "No" I have noted Gustav's suggestion that. >If run under Windows XP, the relevant section is HKEY_CURRENT_USER >while under earlier Windows versions it is HKEY_LOCAL_MACHINE So..the registry keys I am editing are [HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Graphics Filters\Import\JPEG\Options] "ShowProgressDialog"="No" [HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Graphics Filters\Import\JPEG\Options] "ShowProgressDialog"="No" Any answers Many thanks Darren I From actebs at actebs.com.au Wed Dec 22 19:19:02 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 23 Dec 2004 12:19:02 +1100 Subject: [AccessD] Proper Case Message-ID: <2025BB6F17FCB54791F23CD50558332808877C@starfleet.unknown.local> Dave, Nice. I've decided to use your version. It's an elegant solution... Thanx Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of dmcafee at pacbell.net Sent: Wednesday, 22 December 2004 8:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Proper Case Vlad, I also have a sample database on Rogers website: http://rogersaccesslibrary.com/OtherLibraries.asp Scroll down until you see my name. My sample is based on some older A97 code but does the job nicely. The sample also includes a SQL Server version. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ACTEBS Sent: Tuesday, December 21, 2004 5:42 AM To: Access Group (E-mail) Subject: [AccessD] Proper Case Hi Everyone, Does anyone have a some proper case code that looks after things like McDonald etc? Thanks and a very Merry Christmas to one and all... Regards Vlad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 23 00:38:13 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 01:38:13 -0500 Subject: [AccessD] Corrupt Database References: <006101c4e862$1ef8fe10$43976bce@ralf> Message-ID: ..if its one particular mdb that is always corrupting you probably have a bad data layer ...Access retains a lot of your old code in hidden data layers for some reason ...sometimes it can cause problems in the current layer ...the only way I know of to get rid of all of the excess baggage is to decompile the mdb, close it decompiled, then open and recompile ...gets rid of probably 99% of the "buggy" mdbs that seem to appear every once in a while, at least for me ...hth :) William Hindman ----- Original Message ----- From: "Ralf Lister" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 22, 2004 3:08 PM Subject: [AccessD] Corrupt Database Hello, each once in a while one of my databases (less than 1 MByte) gets corrupted and the repair option in the Tools menu doesn't help at all. I don't know what to do (beside saving BackUps). Doe anyoone experienced the same problem and know what to do ? Saludos y Felices Fiestas Ralf Lister -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Dec 23 01:50:51 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 08:50:51 +0100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Import dialogue Message-ID: Hi Darren 1. I don't use Access 2003 so I have no suggestions for your splash screen. Also, on modern machines a splash screen is rather a millisecond flash screen living from the possible afterglow of the monitor, so I would drop the idea. 2. If the graphics on the switchboard are small, I would convert them to bitmaps and embed them in the form. That will load faster and no converting is needed, thus no flash from the converting utility. /gustav >>> d.dick at uws.edu.au 23-12-2004 00:55:45 >>> Hello all Using XP and 98 1st Question re splash screens I have an access app called mydb.mdb In the same folder as mydb.mdb I have a (large) bmp called mydb.bmp When I start the app I expect to see my BMP file load for a second - but it doesn't The standard "Access 2003" screen loads instead Anyone know why? Question 2 When you assign JPG files to the dot Picture property of an image control You get the Importing. or Loading. dialogue box I have modified the Registry as per instructions from various web sites And user groups (even the archives here had a reference to solving the Problem - the SUBJECT was Removing the annoying flash...) Anyway I thought it worked earlier this week. That is..In one of my apps I load a switchboard with a few graphics and the import dialogue box appears for each of the graphics (even though they are small graphic files) but with 3 or 4 of 'em Being opened and or loaded consecutively the dialogue Is open long enough to be annoying But I am sure when I tried this registry 'tweak' at the beginning of the week - it worked. IE I am sure it was just the hourglass in the space where the Import dialogue box used to be. Now I am revisiting this issue, the Dialogue boxes are back even though the Registry entry has been set to "No" I have noted Gustav's suggestion that. >If run under Windows XP, the relevant section is HKEY_CURRENT_USER >while under earlier Windows versions it is HKEY_LOCAL_MACHINE So..the registry keys I am editing are [HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Graphics Filters\Import\JPEG\Options] "ShowProgressDialog"="No" [HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Graphics Filters\Import\JPEG\Options] "ShowProgressDialog"="No" Any answers Many thanks Darren From dejpolsys at hotmail.com Thu Dec 23 01:51:33 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 02:51:33 -0500 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Import dialogue References: <200412222355.iBMNtvRl016812@cooper.uws.edu.au> Message-ID: Darren ..I use a one pixel bmp to suppress the Access splash screen and then load my own splash form with timer so that I control what the user sees rather than what the cpu or Redmond decides to present ...the one pixel bmp is named exactly the same as the mdb but with the bmp extension ...it has to be an actual bmp file, not a renamed rle or jpg, etc. ...it sets in the same directory and is inevitably the file immediately above the associated mdb in explorer when sorted by name ...this has worked in every mdb since '97 and continues to work for me in 2K3 ...I can't speak to what effect a large bmp splash might have since I don't use them. ..as for the import dialog problem, jpgs are not a native Access graphic format and one way or another the format has to be converted ...rather than do work arounds and mess with client registry keys I normally convert any jpg to an emf graphics file format (which Access handles as a native graphic with no conversion required ...emf is the format used by the Win GDI for copy/paste operations for instance) before using it in Access ...you have to be sure the emf is a good conversion since there are a number of format converters that only switch the file header and leave the actual raster as is (I use paintshoppro) ...another Redmond "special effect" is that regardless of what the actual file extension is on your HD, you must call the file as an .emf rather than .EMF ...if your code uses the capital letters in the extension Windows WILL try to use the Office graphics file filter (and thus the dialog) rather than seeing it as a native file format ..don't ask me why, don't know, don't care, MS is MS :( ..hth :) PS ...Steve Lebans has a ton of in depth material on graphics conversions within Access and a wealth of resources in other areas as well ...well worth a spin www.lebans.com William Hindman ----- Original Message ----- From: "Darren DICK" To: "AccessD" Sent: Wednesday, December 22, 2004 6:55 PM Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Import dialogue > Hello all > Using XP and 98 > > 1st Question re splash screens > I have an access app called mydb.mdb > In the same folder as mydb.mdb I have a (large) bmp called mydb.bmp > When I start the app I expect to see my BMP file load for a second - but > it > doesn't > The standard "Access 2003" screen loads instead > Anyone know why? > > Question 2 > When you assign JPG files to the dot Picture property of an image control > You get the Importing. or Loading. dialogue box > > I have modified the Registry as per instructions from various web sites > And user groups (even the archives here had a reference to solving the > Problem - the SUBJECT was Removing the annoying flash...) > > Anyway I thought it worked earlier this week. That is..In one of my apps > I load a switchboard with a few graphics and the import dialogue box > appears > for > each of the graphics (even though they are small graphic files) but with 3 > or 4 of 'em > Being opened and or loaded consecutively the dialogue Is open long enough > to > be annoying > But I am sure when I tried this registry 'tweak' at the beginning of the > week - it worked. > IE I am sure it was just the hourglass in the space where the Import > dialogue box used to be. > > Now I am revisiting this issue, the Dialogue boxes are back even though > the > Registry entry > has been set to "No" > I have noted Gustav's suggestion that. >>If run under Windows XP, the relevant section is HKEY_CURRENT_USER >>while under earlier Windows versions it is HKEY_LOCAL_MACHINE > So..the registry keys I am editing are > [HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Graphics > Filters\Import\JPEG\Options] > "ShowProgressDialog"="No" > > [HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Graphics > Filters\Import\JPEG\Options] > "ShowProgressDialog"="No" > > Any answers > > Many thanks > > Darren > > > > I > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Thu Dec 23 01:59:46 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 08:59:46 +0100 Subject: [AccessD] Select query to append query problem x posted Message-ID: Hi Susan Forgive me asking - but did you know about this or was it a shot in the dark? I ask because I would have expected the reverse situation - that DISTINCT would result in 3 records, while no DISTINCT would result in 14 records. Also, (Joe?) would using GROUP BY instead of DISTINCT make any difference? That would have been my first thought trying to solve the issue. /gustav >>> ssharkins at bellsouth.net 22-12-2004 04:48:41 >>> Run the SELECT without the DISTINCT keyword and see what you get. Susan H. I have a select query which properly returns 3 records. SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); When I run the same query as an append query it adds 14 records. INSERT INTO TrainDate ( DocID, EmpID ) SELECT DISTINCT JobDoc.DocID, stblEmpJobTitle.EmpID FROM JobDoc INNER JOIN stblEmpJobTitle ON JobDoc.JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((JobDoc.DocID)=[Forms]![JobDocSort]![DocID]) AND ((JobDoc.JobTitleID)=[Forms]![JobDocSort]![JobTitleID])); The extra records do not seem to have any common link. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From cyx5 at cdc.gov Thu Dec 23 05:31:23 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 06:31:23 -0500 Subject: [AccessD] Code Behind Conditional Formatting Message-ID: Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. From Gustav at cactus.dk Thu Dec 23 06:07:52 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 13:07:52 +0100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue Message-ID: Hi William Interesting observation! Any advantage, in Access, of emf compared to bmp? emf seems to be larger than bmp. /gustav >>> dejpolsys at hotmail.com 23-12-2004 08:51:33 >>> Darren ..I use a one pixel bmp to suppress the Access splash screen and then load my own splash form with timer so that I control what the user sees rather than what the cpu or Redmond decides to present ...the one pixel bmp is named exactly the same as the mdb but with the bmp extension ...it has to be an actual bmp file, not a renamed rle or jpg, etc. ...it sets in the same directory and is inevitably the file immediately above the associated mdb in explorer when sorted by name ...this has worked in every mdb since '97 and continues to work for me in 2K3 ...I can't speak to what effect a large bmp splash might have since I don't use them. ..as for the import dialog problem, jpgs are not a native Access graphic format and one way or another the format has to be converted ...rather than do work arounds and mess with client registry keys I normally convert any jpg to an emf graphics file format (which Access handles as a native graphic with no conversion required ...emf is the format used by the Win GDI for copy/paste operations for instance) before using it in Access ...you have to be sure the emf is a good conversion since there are a number of format converters that only switch the file header and leave the actual raster as is (I use paintshoppro) ...another Redmond "special effect" is that regardless of what the actual file extension is on your HD, you must call the file as an .emf rather than .EMF ...if your code uses the capital letters in the extension Windows WILL try to use the Office graphics file filter (and thus the dialog) rather than seeing it as a native file format ..don't ask me why, don't know, don't care, MS is MS :( ..hth :) PS ...Steve Lebans has a ton of in depth material on graphics conversions within Access and a wealth of resources in other areas as well ...well worth a spin www.lebans.com William Hindman From markamatte at hotmail.com Thu Dec 23 07:38:30 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 23 Dec 2004 13:38:30 +0000 Subject: [AccessD] A97 User Security In-Reply-To: Message-ID: Thanks Jim. Do you know if the www.lostpassword.com utility will work if I don't have the original MDW? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 17:31:12 -0500 > >Mark, > ><> > > Understood. There are various utilities out there, some work on the >database password while others work on the workgroup file. You need the >later. > ><don't have permission to change anything. I can't even view the permission >settings of the groups. I'm guessing there was another workgroup...>> > > Yes. > ><> > ><> > ><never the built in...I'm not sure how they created it with no one having >the >authority to change anything?>> > > You would if you had the workgroup file that had the correct SIDs. In >in >the past, I've setup some DB's with exactly this setup. For development, I >have one MDW. For the clients, they just use the standard MDW file. > > This is possible because the user 'Admin' and the group 'users' have the >same SID (Security ID) no matter what MDW file you use. The group 'admins' >however, is different for each one. > > So in your case, ownership of the objects belongs to someone that was in >a >different admins group, but the ability to run, view, etc was assigned to >the users group (which is the same no matter which MDW you use). > > You need to break user level security and www.lostpassword.com does have >a >utility for that. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have my >own app that returns the database password...which the one mentioned below >does...in addition to the user level stuff. The problem is there are no >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. > >www.lostpassword.com is one site that offers such a utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there > >is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 07:55:35 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 08:55:35 -0500 Subject: [AccessD] A97 User Security Message-ID: Maybe a stoopid question, but I do not like .mdw's - they drive me crazy. If one creates a shortcut to open the database with a reference to a normal old .mdw file, will the database open with the specified .mdw or will it still look for the nasty one created with the original database? I would like to take all .mdw's and blow them up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, December 23, 2004 8:39 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks Jim. Do you know if the www.lostpassword.com utility will work if I don't have the original MDW? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 17:31:12 -0500 > >Mark, > ><> > > Understood. There are various utilities out there, some work on the >database password while others work on the workgroup file. You need the >later. > ><don't have permission to change anything. I can't even view the permission >settings of the groups. I'm guessing there was another workgroup...>> > > Yes. > ><> > ><> > ><never the built in...I'm not sure how they created it with no one having >the >authority to change anything?>> > > You would if you had the workgroup file that had the correct SIDs. In >in >the past, I've setup some DB's with exactly this setup. For development, I >have one MDW. For the clients, they just use the standard MDW file. > > This is possible because the user 'Admin' and the group 'users' have the >same SID (Security ID) no matter what MDW file you use. The group 'admins' >however, is different for each one. > > So in your case, ownership of the objects belongs to someone that was in >a >different admins group, but the ability to run, view, etc was assigned to >the users group (which is the same no matter which MDW you use). > > You need to break user level security and www.lostpassword.com does have >a >utility for that. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have my >own app that returns the database password...which the one mentioned below >does...in addition to the user level stuff. The problem is there are no >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. > >www.lostpassword.com is one site that offers such a utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there > >is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 23 08:21:21 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 09:21:21 -0500 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue References: Message-ID: Gustav ..off the top of my head, bmps won't handle transparency ...as you probably know I tend to standardize and then stick with something until MS breaks it ..so using emfs is just something I started doing a few years back based on some lebans code I was working with at the time ...I think MS fixed the wmf/emf doubling in XP ...it used to load an entire copy of the image in the file header for some reason which effectively doubled the file size. ..once I get some time to play I'm going to look at distributing the MS GDI dll with my runtimes (all my clients use runtimes) which appears to solve all the various image format loading, sizing, and printing problems without the Office filters and without messing with the registry ...but then I have this 25 page list of things to do when I have the time :) William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 23, 2004 7:07 AM Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue > Hi William > > Interesting observation! > Any advantage, in Access, of emf compared to bmp? > emf seems to be larger than bmp. > > /gustav > > >>>> dejpolsys at hotmail.com 23-12-2004 08:51:33 >>> > Darren > > ..I use a one pixel bmp to suppress the Access splash screen and then > load > my own splash form with timer so that I control what the user sees > rather > than what the cpu or Redmond decides to present ...the one pixel bmp is > > named exactly the same as the mdb but with the bmp extension ...it has > to be > an actual bmp file, not a renamed rle or jpg, etc. ...it sets in the > same > directory and is inevitably the file immediately above the associated > mdb in > explorer when sorted by name ...this has worked in every mdb since '97 > and > continues to work for me in 2K3 ...I can't speak to what effect a large > bmp > splash might have since I don't use them. > > ..as for the import dialog problem, jpgs are not a native Access > graphic > format and one way or another the format has to be converted ...rather > than > do work arounds and mess with client registry keys I normally convert > any > jpg to an emf graphics file format (which Access handles as a native > graphic > with no conversion required ...emf is the format used by the Win GDI > for > copy/paste operations for instance) before using it in Access ...you > have to > be sure the emf is a good conversion since there are a number of format > > converters that only switch the file header and leave the actual raster > as > is (I use paintshoppro) ...another Redmond "special effect" is that > regardless of what the actual file extension is on your HD, you must > call > the file as an .emf rather than .EMF ...if your code uses the capital > letters in the extension Windows WILL try to use the Office graphics > file > filter (and thus the dialog) rather than seeing it as a native file > format > ..don't ask me why, don't know, don't care, MS is MS :( > > ..hth :) > > PS ...Steve Lebans has a ton of in depth material on graphics > conversions > within Access and a wealth of resources in other areas as well ...well > worth > a spin www.lebans.com > > William Hindman > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Thu Dec 23 08:25:10 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 09:25:10 -0500 Subject: [AccessD] Code Behind Conditional Formatting References: Message-ID: ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 08:38:15 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 09:38:15 -0500 Subject: [AccessD] Code Behind Conditional Formatting Message-ID: Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Dec 23 09:12:02 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 09:12:02 -0600 Subject: [AccessD] Code Behind Conditional Formatting In-Reply-To: <22682325.1103813134827.JavaMail.root@sniper18.securence.com> Message-ID: <000a01c4e901$c1e29e70$de1811d8@danwaters> Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 09:26:30 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 10:26:30 -0500 Subject: [AccessD] Code Behind Conditional Formatting Message-ID: And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Dec 23 09:39:46 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 16:39:46 +0100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue Message-ID: Hi William OK, thanks. Maybe I should give those emfs a closer look. /gustav >>> dejpolsys at hotmail.com 23-12-2004 15:21:21 >>> Gustav ..off the top of my head, bmps won't handle transparency ...as you probably know I tend to standardize and then stick with something until MS breaks it ..so using emfs is just something I started doing a few years back based on some lebans code I was working with at the time ...I think MS fixed the wmf/emf doubling in XP ...it used to load an entire copy of the image in the file header for some reason which effectively doubled the file size. ..once I get some time to play I'm going to look at distributing the MS GDI dll with my runtimes (all my clients use runtimes) which appears to solve all the various image format loading, sizing, and printing problems without the Office filters and without messing with the registry ...but then I have this 25 page list of things to do when I have the time :) William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 23, 2004 7:07 AM Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue > Hi William > > Interesting observation! > Any advantage, in Access, of emf compared to bmp? > emf seems to be larger than bmp. From Gustav at cactus.dk Thu Dec 23 09:52:24 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 16:52:24 +0100 Subject: [AccessD] SQL theta-joins Message-ID: Hi all >From the wish-list for Access: http://www.smartaccessnewsletter.com/ME2/Audiences/dirmod.asp?sid=&nm=&type=Publishing&mod=Publications%3A%3AArticle&mid=8F3A7027421841978F18BE895F87F791&AudID=C01C1922F71E483AB162D148B15A6F6D&tier=4&id=6F405924A71D4B00A251C0567C463859 --- "Support for theta-joins joins using (<>, >, >=, <, <=) arguments and Union queries in the query design window." I suspect that most developers don't even know that Access actually supports these extensions, so this suggestion would be a worthwhile way to bring these concepts into the mainstream. --- Anyone having examples on theta-joins? /gustav From dwaters at usinternet.com Thu Dec 23 09:48:01 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 09:48:01 -0600 Subject: [AccessD] Code Behind Conditional Formatting In-Reply-To: <16724153.1103815670207.JavaMail.root@sniper14.securence.com> Message-ID: <000b01c4e906$c8c6bdc0$de1811d8@danwaters> Visibility is not one of the conditional formats, but color is. Using code for CF, you can change your control's color to whatever the background is. And, you'll also need to add code in the Enter or GotFocus event for that control to move the focus away if someone selects it or tabs into it. You're going uphill now . . . ! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 9:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Dec 23 10:10:13 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 23 Dec 2004 08:10:13 -0800 Subject: [AccessD] Resizing Problem Message-ID: <00ec01c4e909$e275b980$6401a8c0@HAL9002> Dear List: I'm using the Scale Form routines from the ADH 2K book which work well except that at resolutions higher than 1024 x 768 it doesn't resize the option frames correctly - gives a value that results in an invalid procedure call on the .Top property. Is anyone familiar with this problem and know the fix? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From Gustav at cactus.dk Thu Dec 23 10:25:33 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Dec 2004 17:25:33 +0100 Subject: [AccessD] SQL theta-joins Message-ID: Hi all Found one myself: http://learning.unl.ac.uk/ib212/week6/handout.htm /gustav >>> Gustav at cactus.dk 23-12-2004 16:52:24 >>> Hi all >From the wish-list for Access: http://www.smartaccessnewsletter.com/ME2/Audiences/dirmod.asp?sid=&nm=&type=Publishing&mod=Publications%3A%3AArticle&mid=8F3A7027421841978F18BE895F87F791&AudID=C01C1922F71E483AB162D148B15A6F6D&tier=4&id=6F405924A71D4B00A251C0567C463859 --- "Support for theta-joins joins using (<>, >, >=, <, <=) arguments and Union queries in the query design window." I suspect that most developers don't even know that Access actually supports these extensions, so this suggestion would be a worthwhile way to bring these concepts into the mainstream. --- Anyone having examples on theta-joins? From cfoust at infostatsystems.com Thu Dec 23 10:29:10 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 08:29:10 -0800 Subject: [AccessD] A97 User Security Message-ID: If you create the shortcut properly, the database will use the specified mdw. We do this all the time, since we distribute commercial applications with user security applied. However, if the database was actually secured properly, only an mdw that matches the permissions in the database will allow you to open it. All Access databases use an mdw, since security is part of all of them, even if you never invoke it. The default System.mdw is totally unsecured and everyone logs in as the Admin user. If a database is secured correctly, the Admin user has no permissions and is no longer part of the Admins GROUP, so using an unsecured mdw won't get you into the database. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 5:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 User Security Maybe a stoopid question, but I do not like .mdw's - they drive me crazy. If one creates a shortcut to open the database with a reference to a normal old .mdw file, will the database open with the specified .mdw or will it still look for the nasty one created with the original database? I would like to take all .mdw's and blow them up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, December 23, 2004 8:39 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks Jim. Do you know if the www.lostpassword.com utility will work if I don't have the original MDW? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 17:31:12 -0500 > >Mark, > ><> > > Understood. There are various utilities out there, some work on the >database password while others work on the workgroup file. You need the >later. > ><don't have permission to change anything. I can't even view the permission >settings of the groups. I'm guessing there was another workgroup...>> > > Yes. > ><> > ><> > ><never the built in...I'm not sure how they created it with no one having >the >authority to change anything?>> > > You would if you had the workgroup file that had the correct SIDs. In >in >the past, I've setup some DB's with exactly this setup. For development, I >have one MDW. For the clients, they just use the standard MDW file. > > This is possible because the user 'Admin' and the group 'users' have the >same SID (Security ID) no matter what MDW file you use. The group 'admins' >however, is different for each one. > > So in your case, ownership of the objects belongs to someone that was in >a >different admins group, but the ability to run, view, etc was assigned to >the users group (which is the same no matter which MDW you use). > > You need to break user level security and www.lostpassword.com does have >a >utility for that. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have my >own app that returns the database password...which the one mentioned below >does...in addition to the user level stuff. The problem is there are no >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. www.lostpassword.com is one site that offers such a > >utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 23 10:38:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 08:38:45 -0800 Subject: [AccessD] SQL theta-joins Message-ID: That is a wonderful overview of all kinds of relational stuff, Gustav. Thanks for the link. I suspect whoever added that to the wish list didn't really understand the way theta-joins are expressed in SQL. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, December 23, 2004 8:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL theta-joins Hi all Found one myself: http://learning.unl.ac.uk/ib212/week6/handout.htm /gustav >>> Gustav at cactus.dk 23-12-2004 16:52:24 >>> Hi all >From the wish-list for Access: http://www.smartaccessnewsletter.com/ME2/Audiences/dirmod.asp?sid=&nm=&t ype=Publishing&mod=Publications%3A%3AArticle&mid=8F3A7027421841978F18BE8 95F87F791&AudID=C01C1922F71E483AB162D148B15A6F6D&tier=4&id=6F405924A71D4 B00A251C0567C463859 --- "Support for theta-joins joins using (<>, >, >=, <, <=) arguments and Union queries in the query design window." I suspect that most developers don't even know that Access actually supports these extensions, so this suggestion would be a worthwhile way to bring these concepts into the mainstream. --- Anyone having examples on theta-joins? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 10:40:25 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 11:40:25 -0500 Subject: [AccessD] A97 User Security Message-ID: Well I am willing to bet the nimrods that created the databases here did not secure them properly and I can blow off their blasted .mdw files that were created for the sole purpose of job security. Men do the darndest things. Think you feed them too much and make them fat, think you should not starch their underwear. Think if they lock you out you can't get back in. Hehehehe. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 User Security If you create the shortcut properly, the database will use the specified mdw. We do this all the time, since we distribute commercial applications with user security applied. However, if the database was actually secured properly, only an mdw that matches the permissions in the database will allow you to open it. All Access databases use an mdw, since security is part of all of them, even if you never invoke it. The default System.mdw is totally unsecured and everyone logs in as the Admin user. If a database is secured correctly, the Admin user has no permissions and is no longer part of the Admins GROUP, so using an unsecured mdw won't get you into the database. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 5:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 User Security Maybe a stoopid question, but I do not like .mdw's - they drive me crazy. If one creates a shortcut to open the database with a reference to a normal old .mdw file, will the database open with the specified .mdw or will it still look for the nasty one created with the original database? I would like to take all .mdw's and blow them up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, December 23, 2004 8:39 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A97 User Security Thanks Jim. Do you know if the www.lostpassword.com utility will work if I don't have the original MDW? Thanks, Mark >From: "Jim Dettman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A97 User Security >Date: Wed, 22 Dec 2004 17:31:12 -0500 > >Mark, > ><> > > Understood. There are various utilities out there, some work on the >database password while others work on the workgroup file. You need the >later. > ><don't have permission to change anything. I can't even view the permission >settings of the groups. I'm guessing there was another workgroup...>> > > Yes. > ><> > ><> > ><never the built in...I'm not sure how they created it with no one having >the >authority to change anything?>> > > You would if you had the workgroup file that had the correct SIDs. In >in >the past, I've setup some DB's with exactly this setup. For development, I >have one MDW. For the clients, they just use the standard MDW file. > > This is possible because the user 'Admin' and the group 'users' have the >same SID (Security ID) no matter what MDW file you use. The group 'admins' >however, is different for each one. > > So in your case, ownership of the objects belongs to someone that was in >a >different admins group, but the ability to run, view, etc was assigned to >the users group (which is the same no matter which MDW you use). > > You need to break user level security and www.lostpassword.com does have >a >utility for that. > >Jim Dettman > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, December 22, 2004 11:49 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] A97 User Security > > >Thanks for the feedback...but there are no passwords on this db...I have my >own app that returns the database password...which the one mentioned below >does...in addition to the user level stuff. The problem is there are no >passwords(database or user level) in this db...and thats what this tool >said >also. But I still can't figure out how to modify permissions. > >Any ideas? > >Thanks, > >Mark > > > > >From: "Jim Dettman" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A97 User Security > >Date: Wed, 22 Dec 2004 07:19:12 -0500 > > > >Mark, > > > > Since it's user level security that's at play here, you'll need a > >utility. www.lostpassword.com is one site that offers such a > >utility. Do a >Google > >search on "access" "password" and you'll turn up a bunch. There are a >few > >Russian sites that have them for free. > > > >Jim Dettman > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Tuesday, December 21, 2004 3:16 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 User Security > > > > > >Hello All, > > > >I'm pretty sure this is a lost cause...but I just received an A97 > >db...there is no password...but I don't have permission to make any > >changes(tables,queries...or even view the macros). My guess is I need to > >know the UserGroup and PID that was used to change/create the >permissions. > >Is this correct...and are there any workarounds? > > > >Thanks, > > > >Mark > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 10:41:20 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 11:41:20 -0500 Subject: [AccessD] Capture That Record Number Message-ID: I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. From cfoust at infostatsystems.com Thu Dec 23 10:47:58 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 08:47:58 -0800 Subject: [AccessD] Capture That Record Number Message-ID: You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Dec 23 10:59:35 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 23 Dec 2004 08:59:35 -0800 Subject: [AccessD] A97 User Security References: Message-ID: <41CAF977.2020405@shaw.ca> You might want to try some these err.. interrogation programs to retrieve passwords I was pointed to this site by Michael Kaplan. The sites sponsor or isp uses SPYLog tracking cookies so you may want to delete and or block them after a visit. The price of getting free webspace in Russia. Mark A Matte wrote: > Thanks Jim. > > Do you know if the www.lostpassword.com utility will work if I don't > have the original MDW? > > Thanks, > > Mark > >> From: "Jim Dettman" >> Reply-To: Access Developers discussion and problem >> solving >> To: "Access Developers discussion and problem >> solving" >> Subject: RE: [AccessD] A97 User Security >> Date: Wed, 22 Dec 2004 17:31:12 -0500 >> >> Mark, >> >> <> >> >> Understood. There are various utilities out there, some work on the >> database password while others work on the workgroup file. You need the >> later. >> >> <> both...but >> don't have permission to change anything. I can't even view the >> permission >> settings of the groups. I'm guessing there was another workgroup...>> >> >> Yes. >> >> <> >> >> <> >> >> <> never the built in...I'm not sure how they created it with no one >> having the >> authority to change anything?>> >> >> You would if you had the workgroup file that had the correct SIDs. >> In in >> the past, I've setup some DB's with exactly this setup. For >> development, I >> have one MDW. For the clients, they just use the standard MDW file. >> >> This is possible because the user 'Admin' and the group 'users' >> have the >> same SID (Security ID) no matter what MDW file you use. The group >> 'admins' >> however, is different for each one. >> >> So in your case, ownership of the objects belongs to someone that >> was in a >> different admins group, but the ability to run, view, etc was >> assigned to >> the users group (which is the same no matter which MDW you use). >> >> You need to break user level security and www.lostpassword.com does >> have a >> utility for that. >> >> Jim Dettman >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> Sent: Wednesday, December 22, 2004 11:49 AM >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] A97 User Security >> >> >> Thanks for the feedback...but there are no passwords on this db...I >> have my >> own app that returns the database password...which the one mentioned >> below >> does...in addition to the user level stuff. The problem is there are no >> passwords(database or user level) in this db...and thats what this >> tool said >> also. But I still can't figure out how to modify permissions. >> >> Any ideas? >> >> Thanks, >> >> Mark >> >> >> >> >From: "Jim Dettman" >> >Reply-To: Access Developers discussion and problem >> >solving >> >To: "Access Developers discussion and problem >> >solving" >> >Subject: RE: [AccessD] A97 User Security >> >Date: Wed, 22 Dec 2004 07:19:12 -0500 >> > >> >Mark, >> > >> > Since it's user level security that's at play here, you'll need a >> >utility. >> >www.lostpassword.com is one site that offers such a utility. Do a >> Google >> >search on "access" "password" and you'll turn up a bunch. There are >> a few >> >Russian sites that have them for free. >> > >> >Jim Dettman >> > >> > >> >-----Original Message----- >> >From: accessd-bounces at databaseadvisors.com >> >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> >Sent: Tuesday, December 21, 2004 3:16 PM >> >To: accessd at databaseadvisors.com >> >Subject: [AccessD] A97 User Security >> > >> > >> >Hello All, >> > >> >I'm pretty sure this is a lost cause...but I just received an A97 >> >db...there >> >is no password...but I don't have permission to make any >> >changes(tables,queries...or even view the macros). My guess is I >> need to >> >know the UserGroup and PID that was used to change/create the >> permissions. >> >Is this correct...and are there any workarounds? >> > >> >Thanks, >> > >> >Mark >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Dec 23 11:00:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 23 Dec 2004 09:00:57 -0800 Subject: [AccessD] A97 User Security References: Message-ID: <41CAF9C9.4040303@shaw.ca> Ooops I guess you need the URL http://accesstools.narod.ru/index.html Mark A Matte wrote: > Thanks Jim. > > Do you know if the www.lostpassword.com utility will work if I don't > have the original MDW? > > Thanks, > > Mark > >> From: "Jim Dettman" >> Reply-To: Access Developers discussion and problem >> solving >> To: "Access Developers discussion and problem >> solving" >> Subject: RE: [AccessD] A97 User Security >> Date: Wed, 22 Dec 2004 17:31:12 -0500 >> >> Mark, >> >> <> >> >> Understood. There are various utilities out there, some work on the >> database password while others work on the workgroup file. You need the >> later. >> >> <> both...but >> don't have permission to change anything. I can't even view the >> permission >> settings of the groups. I'm guessing there was another workgroup...>> >> >> Yes. >> >> <> >> >> <> >> >> <> never the built in...I'm not sure how they created it with no one >> having the >> authority to change anything?>> >> >> You would if you had the workgroup file that had the correct SIDs. >> In in >> the past, I've setup some DB's with exactly this setup. For >> development, I >> have one MDW. For the clients, they just use the standard MDW file. >> >> This is possible because the user 'Admin' and the group 'users' >> have the >> same SID (Security ID) no matter what MDW file you use. The group >> 'admins' >> however, is different for each one. >> >> So in your case, ownership of the objects belongs to someone that >> was in a >> different admins group, but the ability to run, view, etc was >> assigned to >> the users group (which is the same no matter which MDW you use). >> >> You need to break user level security and www.lostpassword.com does >> have a >> utility for that. >> >> Jim Dettman >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> Sent: Wednesday, December 22, 2004 11:49 AM >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] A97 User Security >> >> >> Thanks for the feedback...but there are no passwords on this db...I >> have my >> own app that returns the database password...which the one mentioned >> below >> does...in addition to the user level stuff. The problem is there are no >> passwords(database or user level) in this db...and thats what this >> tool said >> also. But I still can't figure out how to modify permissions. >> >> Any ideas? >> >> Thanks, >> >> Mark >> >> >> >> >From: "Jim Dettman" >> >Reply-To: Access Developers discussion and problem >> >solving >> >To: "Access Developers discussion and problem >> >solving" >> >Subject: RE: [AccessD] A97 User Security >> >Date: Wed, 22 Dec 2004 07:19:12 -0500 >> > >> >Mark, >> > >> > Since it's user level security that's at play here, you'll need a >> >utility. >> >www.lostpassword.com is one site that offers such a utility. Do a >> Google >> >search on "access" "password" and you'll turn up a bunch. There are >> a few >> >Russian sites that have them for free. >> > >> >Jim Dettman >> > >> > >> >-----Original Message----- >> >From: accessd-bounces at databaseadvisors.com >> >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> >Sent: Tuesday, December 21, 2004 3:16 PM >> >To: accessd at databaseadvisors.com >> >Subject: [AccessD] A97 User Security >> > >> > >> >Hello All, >> > >> >I'm pretty sure this is a lost cause...but I just received an A97 >> >db...there >> >is no password...but I don't have permission to make any >> >changes(tables,queries...or even view the macros). My guess is I >> need to >> >know the UserGroup and PID that was used to change/create the >> permissions. >> >Is this correct...and are there any workarounds? >> > >> >Thanks, >> > >> >Mark >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> > >> > >> >-- >> >AccessD mailing list >> >AccessD at databaseadvisors.com >> >http://databaseadvisors.com/mailman/listinfo/accessd >> >Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Thu Dec 23 11:00:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 23 Dec 2004 12:00:03 -0500 Subject: [AccessD] Capture That Record Number In-Reply-To: Message-ID: <000801c4e910$dc2187b0$677aa8c0@ColbyM6805> Yea, presto. Of course in a continuous form the record isn't going to be positioned the same but hey... Works exactly as described for single form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Dec 23 11:10:30 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 23 Dec 2004 22:40:30 +0530 Subject: [AccessD] Code Behind Conditional Formatting References: Message-ID: <009301c4e912$4eb19300$d11865cb@winxp> Karen, Programmatic manipulation of conditional formatting at run time is handled via FormatConditions Collection of the control in question. Maximum limit of 3 conditions at a time continues to hold good in code based solution as well. However, it enables a level of flexibility and control, that may be vital for certain tasks. Another interesting advantage of code based approach is that you are no longer confined to the limited choice of colors offered by the routine dialog box for conditional formatting. The whole spectrum of virtually unlimited color combinations is available to choose from. Sample code (in form's module) for dynamic manipulation of conditional formatting, is given below. Subroutine named P_SetFormat() can be used for setting up new formatting, while P_EditFormat() can be used for editing the existing conditions. Desired color values can be substituted in statements (A) to (F). Regards, A.D.Tejpal =============================== Private Sub P_SetFormat(ByVal Fnm As String) ' Sets Fresh Conditional Formatting in ' text box named Fnm Dim Cnt As Integer, Cdn As String, Bkc As Long With Me(Fnm).FormatConditions .Delete For Cnt = 1 To 3 Select Case Cnt Case 1 Cdn = "[" & Fnm & "] < 0" Bkc = 14001649 ' (A) Case 2 Cdn = "[" & Fnm & "] > 0 And [" & _ Fnm & "] <= 100" Bkc = 10932206 ' (B) Case 3 Cdn = "[" & Fnm & "] > 100" Bkc = 13434293 ' (C) End Select With .Add(acExpression, , Cdn) .BackColor = Bkc .FontBold = True End With Next End With End Sub ----------------------------------------------------- Private Sub P_EditFormat(ByVal Fnm As String) ' Edits existing Conditional Formatting in ' text box named Fnm Dim Fct As Integer, Bkc As Long, Cnt As Integer Fct = Me(Fnm).FormatConditions.Count If Fct = 0 Then Exit Sub End If For Cnt = 0 To Fct - 1 Select Case Cnt Case 0 Bkc = 14001649 ' (D) Case 1 Bkc = 10932206 ' (E) Case 2 Bkc = 13434293 ' (F) End Select Me(Fnm).FormatConditions(Cnt).BackColor = Bkc Next End Sub =============================== ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 20:56 Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. From cyx5 at cdc.gov Thu Dec 23 11:09:45 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 12:09:45 -0500 Subject: [AccessD] Capture That Record Number Message-ID: That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 11:10:24 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 12:10:24 -0500 Subject: [AccessD] Capture That Record Number Message-ID: And the wisest new Dad of all is heard from.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 23, 2004 12:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Capture That Record Number Yea, presto. Of course in a continuous form the record isn't going to be positioned the same but hey... Works exactly as described for single form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 11:18:47 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 12:18:47 -0500 Subject: [AccessD] Code Behind Conditional Formatting Message-ID: Thank you! This is great, a whole new world. I hit the color problem almost immediately, I wanted to make it the default color or transparent and it was not there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Thursday, December 23, 2004 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting Karen, Programmatic manipulation of conditional formatting at run time is handled via FormatConditions Collection of the control in question. Maximum limit of 3 conditions at a time continues to hold good in code based solution as well. However, it enables a level of flexibility and control, that may be vital for certain tasks. Another interesting advantage of code based approach is that you are no longer confined to the limited choice of colors offered by the routine dialog box for conditional formatting. The whole spectrum of virtually unlimited color combinations is available to choose from. Sample code (in form's module) for dynamic manipulation of conditional formatting, is given below. Subroutine named P_SetFormat() can be used for setting up new formatting, while P_EditFormat() can be used for editing the existing conditions. Desired color values can be substituted in statements (A) to (F). Regards, A.D.Tejpal =============================== Private Sub P_SetFormat(ByVal Fnm As String) ' Sets Fresh Conditional Formatting in ' text box named Fnm Dim Cnt As Integer, Cdn As String, Bkc As Long With Me(Fnm).FormatConditions .Delete For Cnt = 1 To 3 Select Case Cnt Case 1 Cdn = "[" & Fnm & "] < 0" Bkc = 14001649 ' (A) Case 2 Cdn = "[" & Fnm & "] > 0 And [" & _ Fnm & "] <= 100" Bkc = 10932206 ' (B) Case 3 Cdn = "[" & Fnm & "] > 100" Bkc = 13434293 ' (C) End Select With .Add(acExpression, , Cdn) .BackColor = Bkc .FontBold = True End With Next End With End Sub ----------------------------------------------------- Private Sub P_EditFormat(ByVal Fnm As String) ' Edits existing Conditional Formatting in ' text box named Fnm Dim Fct As Integer, Bkc As Long, Cnt As Integer Fct = Me(Fnm).FormatConditions.Count If Fct = 0 Then Exit Sub End If For Cnt = 0 To Fct - 1 Select Case Cnt Case 0 Bkc = 14001649 ' (D) Case 1 Bkc = 10932206 ' (E) Case 2 Bkc = 13434293 ' (F) End Select Me(Fnm).FormatConditions(Cnt).BackColor = Bkc Next End Sub =============================== ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 20:56 Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 23 11:22:05 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 23 Dec 2004 12:22:05 -0500 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue References: Message-ID: ..if I were going to change something right now I'd go the GDI dll route which lets you use virtually any format anywhere in your app ...take a look at lebans updates and give it a try. William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 23, 2004 10:39 AM Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue > Hi William > > OK, thanks. Maybe I should give those emfs a closer look. > > /gustav > >>>> dejpolsys at hotmail.com 23-12-2004 15:21:21 >>> > Gustav > > ..off the top of my head, bmps won't handle transparency ...as you > probably > know I tend to standardize and then stick with something until MS > breaks it > ..so using emfs is just something I started doing a few years back > based on > some lebans code I was working with at the time ...I think MS fixed the > > wmf/emf doubling in XP ...it used to load an entire copy of the image > in the > file header for some reason which effectively doubled the file size. > > ..once I get some time to play I'm going to look at distributing the MS > GDI > dll with my runtimes (all my clients use runtimes) which appears to > solve > all the various image format loading, sizing, and printing problems > without > the Office filters and without messing with the registry ...but then I > have > this 25 page list of things to do when I have the time :) > > William Hindman > > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Thursday, December 23, 2004 7:07 AM > Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG > Importdialogue > > >> Hi William >> >> Interesting observation! >> Any advantage, in Access, of emf compared to bmp? >> emf seems to be larger than bmp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Dec 23 11:23:35 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 09:23:35 -0800 Subject: [AccessD] Capture That Record Number Message-ID: It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Dec 23 11:33:56 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 23 Dec 2004 23:03:56 +0530 Subject: [AccessD] Code Behind Conditional Formatting References: Message-ID: <00d101c4e915$944ff6b0$d11865cb@winxp> Karen, Programmatic manipulation of conditional formatting involves FormatConditions collection of the control in question. Maximum limit of three conditions at a time, continues to apply. However, for certain tasks, the level of flexibility and control offered, can make a code based solution the preferred alternative. Another interesting advantage - choice of colors need not be confined to the 40 pre-defined ones offered by the dialog box (invoked by clicking Format > Conditional Formatting in the standard menu bar). The whole spectrum offered by Access for the back color of its forms and text boxes (format tab on the properties dialog box), can be availed of. The variety of custom shades that can be formulated, is virtually unlimited. Sample code (in form's module) for dynamic manipulation of conditional formatting, is given below. Subroutine named P_SetFormat() can be used for setting up new formatting, while P_EditFormat() can be used for editing the existing conditions. Desired color values can be substituted in statements (A) to (F). Regards, A.D.Tejpal -------------- =============================== Private Sub P_SetFormat(ByVal Fnm As String) ' Sets fresh Conditional Formatting in ' text box named Fnm Dim Cnt As Integer, Cdn As String, Bkc As Long With Me(Fnm).FormatConditions .Delete For Cnt = 1 To 3 Select Case Cnt Case 1 Cdn = "[" & Fnm & "] < 0" Bkc = 14001649 ' (A) Case 2 Cdn = "[" & Fnm & "] > 0 And [" & _ Fnm & "] <= 100" Bkc = 10932206 ' (B) Case 3 Cdn = "[" & Fnm & "] > 100" Bkc = 13434293 ' (C) End Select With .Add(acExpression, , Cdn) .BackColor = Bkc .FontBold = True End With Next End With End Sub ----------------------------------------------------- Private Sub P_EditFormat(ByVal Fnm As String) ' Edits existing Conditional Formatting in ' text box named Fnm Dim Fct As Integer, Bkc As Long, Cnt As Integer Fct = Me(Fnm).FormatConditions.Count If Fct = 0 Then Exit Sub End If For Cnt = 0 To Fct - 1 Select Case Cnt Case 0 Bkc = 14001649 ' (D) Case 1 Bkc = 10932206 ' (E) Case 2 Bkc = 13434293 ' (F) End Select Me(Fnm).FormatConditions(Cnt).BackColor = Bkc Next End Sub =============================== ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 20:56 Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. From cyx5 at cdc.gov Thu Dec 23 11:35:40 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 12:35:40 -0500 Subject: [AccessD] Capture That Record Number Message-ID: I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 23 11:56:29 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 09:56:29 -0800 Subject: [AccessD] Capture That Record Number Message-ID: OK, that makes it clearer. In that case, you might do a MovePrevious and store *that* key before the requery. Then you could move back to the stored record afterwards. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Dec 23 12:00:35 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 23 Dec 2004 23:30:35 +0530 Subject: [AccessD] Code Behind Conditional Formatting References: Message-ID: <015101c4e919$64b2cc30$d11865cb@winxp> You are most welcome Karen! A.D.Tejpal -------------- ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 22:48 Subject: RE: [AccessD] Code Behind Conditional Formatting Thank you! This is great, a whole new world. I hit the color problem almost immediately, I wanted to make it the default color or transparent and it was not there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Thursday, December 23, 2004 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting Karen, Programmatic manipulation of conditional formatting at run time is handled via FormatConditions Collection of the control in question. Maximum limit of 3 conditions at a time continues to hold good in code based solution as well. However, it enables a level of flexibility and control, that may be vital for certain tasks. Another interesting advantage of code based approach is that you are no longer confined to the limited choice of colors offered by the routine dialog box for conditional formatting. The whole spectrum of virtually unlimited color combinations is available to choose from. Sample code (in form's module) for dynamic manipulation of conditional formatting, is given below. Subroutine named P_SetFormat() can be used for setting up new formatting, while P_EditFormat() can be used for editing the existing conditions. Desired color values can be substituted in statements (A) to (F). Regards, A.D.Tejpal =============================== Private Sub P_SetFormat(ByVal Fnm As String) ' Sets Fresh Conditional Formatting in ' text box named Fnm Dim Cnt As Integer, Cdn As String, Bkc As Long With Me(Fnm).FormatConditions .Delete For Cnt = 1 To 3 Select Case Cnt Case 1 Cdn = "[" & Fnm & "] < 0" Bkc = 14001649 ' (A) Case 2 Cdn = "[" & Fnm & "] > 0 And [" & _ Fnm & "] <= 100" Bkc = 10932206 ' (B) Case 3 Cdn = "[" & Fnm & "] > 100" Bkc = 13434293 ' (C) End Select With .Add(acExpression, , Cdn) .BackColor = Bkc .FontBold = True End With Next End With End Sub ----------------------------------------------------- Private Sub P_EditFormat(ByVal Fnm As String) ' Edits existing Conditional Formatting in ' text box named Fnm Dim Fct As Integer, Bkc As Long, Cnt As Integer Fct = Me(Fnm).FormatConditions.Count If Fct = 0 Then Exit Sub End If For Cnt = 0 To Fct - 1 Select Case Cnt Case 0 Bkc = 14001649 ' (D) Case 1 Bkc = 10932206 ' (E) Case 2 Bkc = 13434293 ' (F) End Select Me(Fnm).FormatConditions(Cnt).BackColor = Bkc Next End Sub =============================== ----- Original Message ----- From: Nicholson, Karen To: Access Developers discussion and problem solving Sent: Thursday, December 23, 2004 20:56 Subject: RE: [AccessD] Code Behind Conditional Formatting And I want to make controls not visible if criteria is met. Oh boy, what fun it is to ride... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Behind Conditional Formatting Karen, The current Smart Access Newsletter has a good article about this: http://www.smartaccessnewsletter.com/ME2/Audiences/default.asp I haven't used code for conditional formatting, but I probably should for two reasons. Most importantly, for complex conditions, you can trap errors and step through the code to verify correctness. If you only use the conditional format screen, the screen simply displays whatever it can and errors can't be trapped. Guessing what went wrong gets pretty tedious. Secondly, the conditional format screen only allow 3 conditions. In code you can set up as many as you want. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Code Behind Conditional Formatting Lebans doesn't do everything I need. In the meantime, I found this link which is interesting... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k 2/html/odc_conformat.asp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 23, 2004 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Behind Conditional Formatting ..its built into A2K and above Karen but has limited functionality ...I find myself still using lebans conditional formatting functions (www.lebans.com) in most cases because it gives me absolute control and significantly more functionality. William Hindman ----- Original Message ----- From: "Nicholson, Karen" To: Sent: Thursday, December 23, 2004 6:31 AM Subject: [AccessD] Code Behind Conditional Formatting Time check: 6:28 am. I am using conditional formatting (continuous forms) , a great little feature but it has its limitations. The code controlling the conditional formatting must be somewhere, but where? Wishing everyone of every religion, except certain grinches (and you know who you are) , a safe and happy holiday season. From cyx5 at cdc.gov Thu Dec 23 12:12:50 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 13:12:50 -0500 Subject: [AccessD] Capture That Record Number Message-ID: Hmm. Sometimes it does not delete the record as there may be more than one field that needs changing and they may opt not to change all the bad fields until they see if Susie Fingernail meant to change the value or if our value is right. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number OK, that makes it clearer. In that case, you might do a MovePrevious and store *that* key before the requery. Then you could move back to the stored record afterwards. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Dec 23 12:10:46 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 12:10:46 -0600 Subject: [AccessD] Capture That Record Number In-Reply-To: <31675392.1103823533174.JavaMail.root@sniper22.securence.com> Message-ID: <001701c4e91a$b9af4730$de1811d8@danwaters> Nimrods? I learned that when I was little, and I save it for special occasions - just like this one for people who created 855 databases when they needed one! I looked this up and of course there would be a city(?) in Minnesota called Nimrod. It has 65 people. Dan Blaine, MN -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Dec 23 12:27:02 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 12:27:02 -0600 Subject: [AccessD] Capture That Record Number In-Reply-To: <31675392.1103823533174.JavaMail.root@sniper22.securence.com> Message-ID: <001801c4e91c$ffd6f490$de1811d8@danwaters> Karen, Could 'Susie' enter the parts using a form designed for that purpose? I guess the data could go to a 'NewInfo' table. The form could have some data validation where appropriate, and you could avoid the spreadsheet altogether. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 12:29:50 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 13:29:50 -0500 Subject: [AccessD] Capture That Record Number Message-ID: It gets better. They create an additional 30 - 50 new databases per month. One for each assembly that comes in. It is like the "trouble with tribbles"! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 1:11 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Capture That Record Number Nimrods? I learned that when I was little, and I save it for special occasions - just like this one for people who created 855 databases when they needed one! I looked this up and of course there would be a city(?) in Minnesota called Nimrod. It has 65 people. Dan Blaine, MN -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 12:35:28 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 13:35:28 -0500 Subject: [AccessD] Capture That Record Number Message-ID: Wouldn't I love that? This is a process that was put into place a long time ago and is *working*. My plan is to present to them a good database to management, then proposing the idea that the manufacturers should be using a nice little database to present their data to us that we can distribute over the web so they have access to their most recent parts file. Imagine this - each of these manufacturers has to maintain their own data source of their current items and we have over 400 manufacturers. These people are not database people, more like Word folks. One step at a time, one success at a time. Everything that I have done for them has improved their lives and ticked them off as they spent so much money on junk databases for years. I am in a win-win situation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Capture That Record Number Karen, Could 'Susie' enter the parts using a form designed for that purpose? I guess the data could go to a 'NewInfo' table. The form could have some data validation where appropriate, and you could avoid the spreadsheet altogether. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Dec 23 12:40:55 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Dec 2004 12:40:55 -0600 Subject: [AccessD] Capture That Record Number In-Reply-To: <11465020.1103827043572.JavaMail.root@sniper17.securence.com> Message-ID: <001901c4e91e$f0323750$de1811d8@danwaters> Nice! Keep on Winning! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number Wouldn't I love that? This is a process that was put into place a long time ago and is *working*. My plan is to present to them a good database to management, then proposing the idea that the manufacturers should be using a nice little database to present their data to us that we can distribute over the web so they have access to their most recent parts file. Imagine this - each of these manufacturers has to maintain their own data source of their current items and we have over 400 manufacturers. These people are not database people, more like Word folks. One step at a time, one success at a time. Everything that I have done for them has improved their lives and ticked them off as they spent so much money on junk databases for years. I am in a win-win situation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 23, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Capture That Record Number Karen, Could 'Susie' enter the parts using a form designed for that purpose? I guess the data could go to a 'NewInfo' table. The form could have some data validation where appropriate, and you could avoid the spreadsheet altogether. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 23, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 23 13:21:54 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Dec 2004 11:21:54 -0800 Subject: [AccessD] Capture That Record Number Message-ID: OK, then save the current key and THEN move previous and save that one to another variable. After the requery, look for the current one and if you get a NoMatch, look for the previous key. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 10:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number Hmm. Sometimes it does not delete the record as there may be more than one field that needs changing and they may opt not to change all the bad fields until they see if Susie Fingernail meant to change the value or if our value is right. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number OK, that makes it clearer. In that case, you might do a MovePrevious and store *that* key before the requery. Then you could move back to the stored record afterwards. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 23 13:28:35 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 23 Dec 2004 14:28:35 -0500 Subject: [AccessD] Capture That Record Number Message-ID: Got it, it is cool. Wait until they see it. Combined with the conditional formatting to highlight differences, this is neat. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 2:22 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number OK, then save the current key and THEN move previous and save that one to another variable. After the requery, look for the current one and if you get a NoMatch, look for the previous key. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 10:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number Hmm. Sometimes it does not delete the record as there may be more than one field that needs changing and they may opt not to change all the bad fields until they see if Susie Fingernail meant to change the value or if our value is right. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number OK, that makes it clearer. In that case, you might do a MovePrevious and store *that* key before the requery. Then you could move back to the stored record afterwards. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number I have a parts database, it was 855 databases, I have now put it into one. Nimrods. Manufacturers submit via the excel spreadsheet from he** new "assemblies" that can contain up to 850 parts. So, Susie "Data Entry I Broke a Fingernail", enters in the part numbers and descriptions into this excel spreadsheet. I transfer the spreadsheet into SQL backend, then compare the part number and various fields to what we have on the official file and compare it to Susie Fingernail's spreadsheet. I hook the information in the official parts database to the new junk that is sent to us and display those records on a form where there are discrepancies in about 5 different fields. There is category name, drawing number, revision level, description and model number. On the form, they can press a button to change Susie's data to what is in the parts database. Then we have a match! So it is no longer in the datasource. Does that make sense? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number It is simply an ordinal position in the recordset, not a real number. You can find out what the absolute position of the current record is when you enter it, but that's all. When you requery, the order of records may change, since new records are initially added to the end but will sort themselves appropriately on a requery. Why are you requerying after a delete? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number That is what I did, but sometimes when I do the requery, then the record that I change eliminates it from the recordsource and when I tell it to go to that specific task number, it is not there. So I thought it would be nice to go to about the same place as before, or the record after the one that was deleted. There must be a place that the navigator bar gets its count from. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, December 23, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Capture That Record Number You don't. Access doesn't use record numbers in the sense that dBase does. It uses unique keys and the record "numbers" are just position indicators within the recordset. Those numbers can change after a requery. Instead, capture the unique key for that record and store it in a variable. Then find that key again in the form's recordsetclone after the requery and set the form's bookmark to the recordsetclone's bookmark. Hey, presto. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 23, 2004 8:41 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capture That Record Number I am an active puppy today. How do you catch the record number on a continuous form so one can return to that record number after a requery is done? I can see only the higher minds are working today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Thu Dec 23 14:04:31 2004 From: greggs at msn.com (Gregg) Date: Thu, 23 Dec 2004 14:04:31 -0600 Subject: [AccessD] Capture That Record Number References: Message-ID: Is there a wizard or tool out there to make Union Queries? Seems like there ought to be some sort of grid layout format that create the SQL. Thanks... and OT... Merry Christmas! Gregg Steinbrenner From Jim.Hale at FleetPride.com Thu Dec 23 14:16:35 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 23 Dec 2004 14:16:35 -0600 Subject: [AccessD] Capture That Record Number Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337307@corp-es01.fleetpride.com> no wizard but you can make two separate queries using the grid and save them, switch to sql view in one of them, type the word "Union" at the end and cut and paste the sql from the second query. Pretty simple. Of course, the field data types must be the same. Jim Hale -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Thursday, December 23, 2004 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Capture That Record Number Is there a wizard or tool out there to make Union Queries? Seems like there ought to be some sort of grid layout format that create the SQL. Thanks... and OT... Merry Christmas! Gregg Steinbrenner -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From garykjos at gmail.com Thu Dec 23 14:17:29 2004 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 23 Dec 2004 14:17:29 -0600 Subject: [AccessD] Capture That Record Number In-Reply-To: References: Message-ID: I just make a regular select query and then copy and paste the SQL from it into a new query for the Union. On Thu, 23 Dec 2004 14:04:31 -0600, Gregg wrote: > Is there a wizard or tool out there to make Union Queries? Seems like there ought to be some sort of grid layout format that create the SQL. Thanks... and OT... Merry Christmas! > > Gregg Steinbrenner > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From greggs at msn.com Thu Dec 23 15:14:14 2004 From: greggs at msn.com (Gregg) Date: Thu, 23 Dec 2004 15:14:14 -0600 Subject: [AccessD] Union Queries References: <6A6AA9DF57E4F046BDA1E273BDDB6772337307@corp-es01.fleetpride.com> Message-ID: Good Idea.... sorry about the wrong subject line. ----- Original Message ----- From: Hale, Jim To: 'Access Developers discussion and problem solving' Sent: Thursday, December 23, 2004 2:16 PM Subject: RE: [AccessD] Capture That Record Number no wizard but you can make two separate queries using the grid and save them, switch to sql view in one of them, type the word "Union" at the end and cut and paste the sql from the second query. Pretty simple. Of course, the field data types must be the same. Jim Hale -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Thursday, December 23, 2004 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Capture That Record Number Is there a wizard or tool out there to make Union Queries? Seems like there ought to be some sort of grid layout format that create the SQL. Thanks... and OT... Merry Christmas! Gregg Steinbrenner -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email.-- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 23 19:24:08 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 24 Dec 2004 12:24:08 +1100 Subject: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue In-Reply-To: Message-ID: <200412240124.iBO1OERl014722@cooper.uws.edu.au> Thanks to all who replied I will battle on Have a great Christmas and a safe holiday See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, 24 December 2004 4:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue ..if I were going to change something right now I'd go the GDI dll route which lets you use virtually any format anywhere in your app ...take a look at lebans updates and give it a try. William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, December 23, 2004 10:39 AM Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG Importdialogue > Hi William > > OK, thanks. Maybe I should give those emfs a closer look. > > /gustav > >>>> dejpolsys at hotmail.com 23-12-2004 15:21:21 >>> > Gustav > > ..off the top of my head, bmps won't handle transparency ...as you > probably know I tend to standardize and then stick with something > until MS breaks it ..so using emfs is just something I started doing a > few years back based on some lebans code I was working with at the > time ...I think MS fixed the > > wmf/emf doubling in XP ...it used to load an entire copy of the image > in the file header for some reason which effectively doubled the file > size. > > ..once I get some time to play I'm going to look at distributing the > MS GDI dll with my runtimes (all my clients use runtimes) which > appears to solve all the various image format loading, sizing, and > printing problems without the Office filters and without messing with > the registry ...but then I have this 25 page list of things to do when > I have the time :) > > William Hindman > > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Thursday, December 23, 2004 7:07 AM > Subject: Re: [AccessD] A2003: 2 Questions -Splash Screen and JPG > Importdialogue > > >> Hi William >> >> Interesting observation! >> Any advantage, in Access, of emf compared to bmp? >> emf seems to be larger than bmp. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Dec 23 21:34:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 23 Dec 2004 22:34:25 -0500 Subject: [AccessD] Query SQL correct but not visible in design view Message-ID: <001c01c4e969$771a0b90$677aa8c0@ColbyM6805> I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Thu Dec 23 22:05:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 23 Dec 2004 23:05:08 -0500 Subject: [AccessD] Passing Param arrays Message-ID: <001d01c4e96d$c5f21420$677aa8c0@ColbyM6805> I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From Gustav at cactus.dk Fri Dec 24 06:32:09 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 24 Dec 2004 13:32:09 +0100 Subject: [AccessD] Passing Param arrays Message-ID: Hi John I think you need to pass the ParamArray on ByRef as a Variant (containing the array). Or retrieve the single elements of the array and pass these on as single parameters to the next ParamArray. As I read it, what you do now is to pass the array as one element of a new array. /gustav >>> jwcolby at colbyconsulting.com 24-12-2004 05:05:08 >>> I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com From martyconnelly at shaw.ca Fri Dec 24 10:13:47 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 24 Dec 2004 08:13:47 -0800 Subject: [AccessD] VBScript mdb Christmas present from Microsoft References: Message-ID: <41CC403B.4080800@shaw.ca> I have been playing around with vbs scripts and WMI. Got this from Canada Technet Newsletter Today Here is an Access 2000 mdb file with 2200 + vbs scripts to do all the odd things a lot of people ask for here. Watch the OS version for each script, some can be dangerous as they do things like reimaging disks. Just convert the vbs to vba code. I have listed below some simple example titles. There are others that cover LDAP Exchange WMI etc. I think this may become a must have for Access Programmer Toolboxes. The Do-It-Yourself Script Center Kit (1.03 MB Self-Extracting Zip File) Imagine a database containing more than 2,250 scripts, along with sample scripts (and a few pointers) showing how you can create stand-alone .vbs files, HTML pages, or even your own custom HTML Help file. If you don't like the categories we used, you can recategorize everything in the database and, in essence, create a Script Center that works the way you'd like it to. Would you like an HTML Help file that contains only scripts that will work on Windows NT Server 4.0? Well, now you can do that . I convert them to VBA fairly straight forward, as everything is late bound Just convert your dim statements to object etc and response.write to debug.print You can early bind if you can find the library reference. Examples List Time Zone Information for a Computer List the Processes Running on a Computer List the UTC Time on a Computer Title Modify File Extensions Copy a File Copy a Set of Files Delete a File Delete All Files in a Folder List a Specific Set of Files List All the Files in a Folder List All the Files on a Computer List File Attributes List File Properties Modify File Attributes Monitor File Creation Monitor File Deletion Monitor File Modification Move a File Move a Set of Files Move Files Parse a Path Name Perform Actions on Files Rename a File Rename Files List Detailed Summary Information for a File Uncompress a Folder Enumerate Subfolders Using Recursion Bind to a Folder Using the Browse for Folder Dialog Box Search for Folders Using Wildcards Verify that a Folder Exists Create a Network Share Delete a Network Share Delete a Published Folder List Network Shares List Shared Folders Published in Active Directory Map All Network Shares to Local Folders Map a Network Share to a Local Folder Modify a Network Share Publish a Shared Folder in Active Directory -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Fri Dec 24 10:28:58 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 24 Dec 2004 16:28:58 -0000 Subject: [AccessD] Merry Christmas In-Reply-To: <41CC403B.4080800@shaw.ca> Message-ID: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> To anyone still looking in, Merry Christmas and a very Happy New Year. -- Andy Lacey http://www.minstersystems.co.uk From accessd at shaw.ca Fri Dec 24 10:30:27 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 24 Dec 2004 08:30:27 -0800 Subject: [AccessD] VBScript mdb Christmas present from Microsoft In-Reply-To: <41CC403B.4080800@shaw.ca> Message-ID: <0I9800I0EJ7H54@l-daemon> Hi Marty: Thank you very much for sharing a sample code treasure trove. Have a great Christmas Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, December 24, 2004 8:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] VBScript mdb Christmas present from Microsoft I have been playing around with vbs scripts and WMI. Got this from Canada Technet Newsletter Today Here is an Access 2000 mdb file with 2200 + vbs scripts to do all the odd things a lot of people ask for here. Watch the OS version for each script, some can be dangerous as they do things like reimaging disks. Just convert the vbs to vba code. I have listed below some simple example titles. There are others that cover LDAP Exchange WMI etc. I think this may become a must have for Access Programmer Toolboxes. The Do-It-Yourself Script Center Kit (1.03 MB Self-Extracting Zip File) Imagine a database containing more than 2,250 scripts, along with sample scripts (and a few pointers) showing how you can create stand-alone .vbs files, HTML pages, or even your own custom HTML Help file. If you don't like the categories we used, you can recategorize everything in the database and, in essence, create a Script Center that works the way you'd like it to. Would you like an HTML Help file that contains only scripts that will work on Windows NT Server 4.0? Well, now you can do that . I convert them to VBA fairly straight forward, as everything is late bound Just convert your dim statements to object etc and response.write to debug.print You can early bind if you can find the library reference. Examples List Time Zone Information for a Computer List the Processes Running on a Computer List the UTC Time on a Computer Title Modify File Extensions Copy a File Copy a Set of Files Delete a File Delete All Files in a Folder List a Specific Set of Files List All the Files in a Folder List All the Files on a Computer List File Attributes List File Properties Modify File Attributes Monitor File Creation Monitor File Deletion Monitor File Modification Move a File Move a Set of Files Move Files Parse a Path Name Perform Actions on Files Rename a File Rename Files List Detailed Summary Information for a File Uncompress a Folder Enumerate Subfolders Using Recursion Bind to a Folder Using the Browse for Folder Dialog Box Search for Folders Using Wildcards Verify that a Folder Exists Create a Network Share Delete a Network Share Delete a Published Folder List Network Shares List Shared Folders Published in Active Directory Map All Network Shares to Local Folders Map a Network Share to a Local Folder Modify a Network Share Publish a Shared Folder in Active Directory -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Fri Dec 24 10:35:04 2004 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Fri, 24 Dec 2004 16:35:04 -0000 Subject: [AccessD] Merry Christmas In-Reply-To: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> Message-ID: Merry Christmas to you too Andy, and indeed to all AccessDers worldwide. Thanks to everyone for all your help over that last year! Very best regards from Surrey, England Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: 24 December 2004 16:29 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Merry Christmas To anyone still looking in, Merry Christmas and a very Happy New Year. -- Andy Lacey From accessd at shaw.ca Fri Dec 24 10:37:14 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 24 Dec 2004 08:37:14 -0800 Subject: [AccessD] Merry Christmas In-Reply-To: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> Message-ID: <0I9800J0EJIT8A@l-daemon> Hi Andy: Same to you ...and to other on the list. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, December 24, 2004 8:29 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Merry Christmas To anyone still looking in, Merry Christmas and a very Happy New Year. -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Fri Dec 24 11:15:46 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 24 Dec 2004 12:15:46 -0500 Subject: [AccessD] Merry Christmas References: Message-ID: <00c701c4e9dc$34fba340$0a00a8c0@cx470148a> Merry Christmas to all of you and a very sincere "Thank You" for all of the problems you've helped me with!! You're terrific! Barb Ryan ----- Original Message ----- From: "Chris Foote (Spike)" To: "Access Developers discussion and problem solving" Sent: Friday, December 24, 2004 11:35 AM Subject: RE: [AccessD] Merry Christmas > Merry Christmas to you too Andy, and indeed to all AccessDers worldwide. > > Thanks to everyone for all your help over that last year! > > Very best regards from Surrey, England > > Chris Foote > > > 9.05.15 with virus definitions dated 22nd December 2004> > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: 24 December 2004 16:29 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Merry Christmas > > > To anyone still looking in, Merry Christmas and a very Happy New Year. > > -- Andy Lacey > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From pedro at plex.nl Fri Dec 24 11:04:28 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 24 Dec 2004 18:04:28 +0100 Subject: [AccessD] Merry Christmas References: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> Message-ID: <004301c4e9da$a204c360$fbc581d5@pedro> Merry Christmas and a healthy, lucky and happy New Year from the Netherlands. Pedro Janssen ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 24, 2004 5:28 PM Subject: [AccessD] Merry Christmas > To anyone still looking in, Merry Christmas and a very Happy New Year. > > -- Andy Lacey > http://www.minstersystems.co.uk > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From dejpolsys at hotmail.com Fri Dec 24 12:04:56 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 24 Dec 2004 13:04:56 -0500 Subject: [AccessD] VBScript mdb Christmas present from Microsoft References: <41CC403B.4080800@shaw.ca> Message-ID: ..mucho gracias amigo ...felice navidad! :) William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, December 24, 2004 11:13 AM Subject: [AccessD] VBScript mdb Christmas present from Microsoft >I have been playing around with vbs scripts and WMI. Got this from Canada >Technet Newsletter Today > Here is an Access 2000 mdb file with 2200 + vbs scripts to do all the odd > things a lot of people ask for here. > Watch the OS version for each script, some can be dangerous > as they do things like reimaging disks. Just convert the vbs to vba code. > I have listed below some simple example titles. There are others that > cover LDAP > Exchange WMI etc. I think this may become a must have for Access > Programmer Toolboxes. > > The Do-It-Yourself Script Center Kit (1.03 MB Self-Extracting > Zip File) > Imagine a database containing more than 2,250 scripts, along with sample > scripts (and a few pointers) showing how you can create stand-alone .vbs > files, > HTML pages, or even your own custom HTML Help file. If you don't like the > categories we used, you can recategorize everything in the database and, > in > essence, create a Script Center that works the way you'd like it to. Would > you > like an HTML Help file that contains only scripts that will work on > Windows NT > Server 4.0? Well, now you can do that > . > > I convert them to VBA fairly straight forward, as everything is late bound > Just convert your dim statements to object etc and response.write to > debug.print > You can early bind if you can find the library reference. > > Examples > > List Time Zone Information for a Computer > List the Processes Running on a Computer > List the UTC Time on a Computer > Title > Modify File Extensions > Copy a File > Copy a Set of Files > Delete a File > Delete All Files in a Folder > List a Specific Set of Files > List All the Files in a Folder > List All the Files on a Computer > List File Attributes > List File Properties > Modify File Attributes > Monitor File Creation > Monitor File Deletion > Monitor File Modification > Move a File > Move a Set of Files > Move Files > Parse a Path Name > Perform Actions on Files > Rename a File > Rename Files > List Detailed Summary Information for a File > Uncompress a Folder > Enumerate Subfolders Using Recursion > Bind to a Folder Using the Browse for Folder Dialog Box > Search for Folders Using Wildcards > Verify that a Folder Exists > Create a Network Share > Delete a Network Share > Delete a Published Folder > List Network Shares > List Shared Folders Published in Active Directory > Map All Network Shares to Local Folders > Map a Network Share to a Local Folder > Modify a Network Share > Publish a Shared Folder in Active Directory > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Fri Dec 24 12:07:28 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 24 Dec 2004 13:07:28 -0500 Subject: [AccessD] Merry Christmas References: <0I9800J0EJIT8A@l-daemon> Message-ID: ..may all of you end this year better off than the last one ...happy holidays :) William Hindman ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 24, 2004 11:37 AM Subject: RE: [AccessD] Merry Christmas > Hi Andy: > > Same to you ...and to other on the list. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Friday, December 24, 2004 8:29 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Merry Christmas > > To anyone still looking in, Merry Christmas and a very Happy New Year. > > -- Andy Lacey > http://www.minstersystems.co.uk > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Fri Dec 24 23:19:56 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 25 Dec 2004 00:19:56 -0500 Subject: [AccessD] OT In-Reply-To: References: Message-ID: <41CCF87C.5010601@rogers.com> I know it's way off topic but I want to say Merry Christmas and Happy Hanukah and Rollicking Ramadan and whatever else might be appropriate to your persuasion. I love this list and I have met some cyber-friends here of genuine quality, the sort of people you never forget. I thank you all for being here and making my life richer by your presence. Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 12/22/2004 From artful at rogers.com Fri Dec 24 23:35:04 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 25 Dec 2004 00:35:04 -0500 Subject: [AccessD] Query SQL correct but not visible in design view In-Reply-To: <001c01c4e969$771a0b90$677aa8c0@ColbyM6805> References: <001c01c4e969$771a0b90$677aa8c0@ColbyM6805> Message-ID: <41CCFC08.7040703@rogers.com> Trust me on this, JWC. Don't use SELECT * ever. Really ugly things can happen when dealing with MS-SQL -- not in any simple query but insert a column in some table referenced by views or sprocs that say SELECT * and let's go get drunk. I'm guessing, but I think that the underlying reason is that the query optimizer/compiler refers to columns numerically not by name, and if you suddenly change a table or a view that uses SELECT * then all hell can break loose. I haven't exhaustively tested this thesis to see what breaks under what conditions, but I have been bitten enough times to stay away from the SELECT * dog. Next and perhaps more important, why are you building a SQL statement on the fly? This is a bad habit inherited from Access MDB development, I think. True, there are times when no other approach is possible, but I think that those times amount to maybe 10% at most of the typical app's requirements. I suggest that you re-think this part of the app and think about feeding the parms to one or more sprocs instead of constructing a dynamic query. A tip from one of my SQL Tips columns.... Allow nulls to be passed to the sproc, then CASE the parms and then branch to the appropriate sproc. That way each sproc is optimized for the parms and won't screw up with choosing the wrong plan. If you write a sproc that involves different order by's etc. all in the same sproc, you can get ghastly performance because SQL will use the existing plan unless you specifically tell it not to. Arthur John W. Colby wrote: >I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL >runs but only the tables and their joins are visible in the QBE grid. There >are no fields visible etc. Does anyone understand what causes Access to do >this? I have had the same thing occur even with something as simple as a >SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but >nothing in the grid. The query executes correctly. > >Anyone? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 12/22/2004 From stuart at lexacorp.com.pg Sat Dec 25 02:57:07 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 25 Dec 2004 18:57:07 +1000 Subject: [AccessD] OT In-Reply-To: <41CCF87C.5010601@rogers.com> References: Message-ID: <41CDB803.24845.155EDA54@lexacorp.com.pg> On 25 Dec 2004 at 0:19, Arthur Fuller wrote: > I know it's way off topic but I want to say Merry Christmas and Happy > Hanukah and Rollicking Ramadan and whatever else might be appropriate to > your persuasion. Alternatively :-) Please accept with no obligation, implied or implicit our best wishes for an environmentally conscious, socially responsible, low stress, non- addictive, gender neutral, celebration of the winter solstice holiday, practiced within the most enjoyable traditions of the religious persuasion of your choice, or secular practices of your choice, with respect for the religious/secular persuasions and/or traditions of others, or their choice not to practice religious or secular traditions at all . . . . . and a fiscally successful, personally fulfilling, and medically uncomplicated recognition of the onset of the generally accepted calendar year 2005, but not without due respect for the calendars of choice of other cultures whose contributions to society have helped to make civilisation in this world great, (not to imply that civilisation is necessarily better than any other alternative) , and without regard to the race, creed, color, age, physical ability, religious faith, choice of computer platform, or sexual preference of the wishee. (By accepting this greeting, you are accepting these terms. This greeting is subject to clarification or withdrawal. It is freely transferable with no alteration to the original greeting. It implies no promise by the wisher to actually implement any of the wishes for her/himself or others, and is void where prohibited by law, and is revocable at the sole discretion of the wisher. This wish is warranted to perform as expected within the usual application of good tidings for a period of one year, or until the issuance of a subsequent holiday greeting, whichever comes first, and warranty is limited to replacement of this wish or issuance of a new wish at the sole discretion of the wisher.) -- Stuart From jwcolby at colbyconsulting.com Sat Dec 25 10:21:18 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 25 Dec 2004 11:21:18 -0500 Subject: [AccessD] Query SQL correct but not visible in design view In-Reply-To: <41CCFC08.7040703@rogers.com> Message-ID: <000301c4ea9d$c6d06e10$6c01a8c0@ColbyM6805> >Next and perhaps more important, why are you building a SQL statement on the fly? This is a bad habit inherited from Access MDB development, I think. True, there are times when no other approach is possible, but I think that those times amount to maybe 10% at most of the typical app's requirements. I suggest that you re-think this part of the app and think about feeding the parms to one or more sprocs instead of constructing a dynamic query. 1) This is an Access database, not a SQL server database. 2) I am building a system that is used to import professional license lists provided by the states. These are lists of people who hold licenses such a physical therapy, occupational therapy etc. Each state has their own system for generating these lists, from word or excel documents to Access or paradox databases. Likewise, each state, and even list within each state, has different information (and field names) that they capture about the individual. Thus the Florida OT list may have 15 fields named Fname, Lname etc, while the FLORIDA PT list has 12 fields named Last Name, First Name etc. In order to handle this process in a flexible "end user programmable" way, I ask a technically savvy person in the organization to get the various files into a single file format (Excel or Paradox). I specifically tell that person to NOT attempt to modify the field names provided by the states for any given list. The reason is that with dozens of lists from dozens of states, the probability that they would be able to manually "rename" the fields to a consistent naming convention is remote. "Just give me the original field names and let me deal with it". I further ask that person to name the files using a file name of SSDDD.XLS where SS = the state code and DDD = the "discipline" code (license type). Thus I can pull the first two characters out and look it up in the state field. If it is found I have the PK of the license state ready to go. I then take everything after that up to the "dot" and look that up in the discipline table. If it is found, I have the PK of the discipline (license type). I build a pair of tables to handle the import specification. tblImportFile holds the path to the file being imported, the name of the file, the State PK and the discipline PK, and the date that the file was imported - these files are received every 3 months or so depending on the state. tblImportSpec allows me to map the field names - their field name, my field name. I have a parent / child form with the tblImportFile as the parent and tblImportSpec as the child. For each file to import I can map the field name in my table with the field name in the import file. I then generated an import "Raw data table" with the specific set of fields that we want to import IF AVAILABLE in the list. In the child form I use the fields collection of the linked table to full the list of field names and display that in a combo. I do the same thing in another combo for the field names in my raw data table. Thus the user now selects a file one time in the parent form, then in the child uses these two combos to match or pair up their field to our field. Each file is different, they all have basic first name / last name / address / phone info but some have license number some don't (for "privacy reasons"?!), none have a SSN. At any rate, when the user is finished I now have a list of the fields in the import file that we wish to extract data from, and a matching set of fields in our raw data table. I then build "on-the-fly" a query to append their data to my raw data table. The whole point of this conversation - On-The-Fly. This process allows the user to do this field matching process a single time and then, assuming that the state doesn't change their field names, the process just works. As the user selects a file to import, I read out the list of their field names we captured previously, then I compare those field names to the fields in the linked tabledef.Fields() collection. Thus if a field we were capturing changes name, I discover that and inform the user. When I am done, I have dozens of files in tblFile and hundreds of field names (a dozen +/- per file) in the tblImport. As the user selects the file, I build the append query and then when they press a button, I check that the link to the table functions (the file is there), and generate the query to pull the data from that file into the raw data table for further processing. After AI import the file into the raw data table, I mark the import file as imported (time stamp field added by my tech user) so that it never gets imported into raw data twice. At this point the data is ready to be processed. Processing is another whole issue. I have to map the records to a specific person in my live data table, which is trivial if I am given a license number by the state. I have the State PK, the Discipline PK, and the license number, that maps to a specific record in my live data table just by joining these fields between raw data and live data. If the state does not provide a license number, then all hell breaks loose. It turns out that well over 50% of these people are women which means they marry, change names, addresses, phone numbers etc. With no "unique identifier" such as a SSN or License number it is a crap shoot trying to find them in the live data table. Obviously I do things like joining the phone number (if any), the first N characters of Addr1 plus the city etc. It is just a PITA and requires an iterative "try these fields, next try these fields" etc. As we "find" these people in the raw data that appear to match the live data, we examine "changes" between the raw data and the live data. IF we get a license number (we already have the state and discipline) I can discover those in the database, and thus from that those NOT in the database, and I append those NOT IN to our live data. The whole point of this process is to get a clean record that can be mailed to or called to offer them a job. There are currently more than 30 lists from a dozen states, with more lists and states added as the company gets business in those areas. We have about 150 thousand people in our live data table. We get updates from the states periodically. New people have to be merged in to our live data. Changes in address / phone reported to the state need to be updated in our live data. The process was done completely manually, i.e. the lists were just examined by hand and compared to the live data. We are attempting to automate the process such that new records can just be pulled in, records with no changes can be identified and excluded, then the remaining that have changes can be examined or called, And resulting changes entered into the live data. As we all know, any given problem can be solved a dozen different ways. I went with the "field matching" method to try and minimize the problems created by our people trying to standardize the field names directly out in the lists. They used to import the lists into paradox, changing the filed names as they went and they ended up with dozens of differences just caused by this field renaming process. I say "leave the original field names" and I'll do the mapping to what our field names are. Then as long as the field names out in the original lists don't change we are good to go. I check the field names we have against the import table each time to discover changes if any. It seemed logical to me. Given the process I don't see any way to avoid "on-the-fly" building of queries. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, December 25, 2004 12:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view Trust me on this, JWC. Don't use SELECT * ever. Really ugly things can happen when dealing with MS-SQL -- not in any simple query but insert a column in some table referenced by views or sprocs that say SELECT * and let's go get drunk. I'm guessing, but I think that the underlying reason is that the query optimizer/compiler refers to columns numerically not by name, and if you suddenly change a table or a view that uses SELECT * then all hell can break loose. I haven't exhaustively tested this thesis to see what breaks under what conditions, but I have been bitten enough times to stay away from the SELECT * dog. Next and perhaps more important, why are you building a SQL statement on the fly? This is a bad habit inherited from Access MDB development, I think. True, there are times when no other approach is possible, but I think that those times amount to maybe 10% at most of the typical app's requirements. I suggest that you re-think this part of the app and think about feeding the parms to one or more sprocs instead of constructing a dynamic query. A tip from one of my SQL Tips columns.... Allow nulls to be passed to the sproc, then CASE the parms and then branch to the appropriate sproc. That way each sproc is optimized for the parms and won't screw up with choosing the wrong plan. If you write a sproc that involves different order by's etc. all in the same sproc, you can get ghastly performance because SQL will use the existing plan unless you specifically tell it not to. Arthur John W. Colby wrote: >I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. >The SQL runs but only the tables and their joins are visible in the QBE >grid. There are no fields visible etc. Does anyone understand what >causes Access to do this? I have had the same thing occur even with >something as simple as a SELECT * from tbl1 inserted into the SQL view. >Tbl1 is displayed, but nothing in the grid. The query executes >correctly. > >Anyone? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 12/22/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Sat Dec 25 11:22:48 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Sat, 25 Dec 2004 22:52:48 +0530 Subject: [AccessD] Query SQL correct but not visible in design view References: <001c01c4e969$771a0b90$677aa8c0@ColbyM6805> Message-ID: <003701c4eaa6$9fe8c780$ee1865cb@winxp> John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Dec 25 12:39:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 25 Dec 2004 13:39:56 -0500 Subject: [AccessD] Query SQL correct but not visible in design view In-Reply-To: <003701c4eaa6$9fe8c780$ee1865cb@winxp> Message-ID: <000401c4eab1$251c2910$6c01a8c0@ColbyM6805> That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Sun Dec 26 07:06:19 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 27 Dec 2004 00:06:19 +1100 Subject: [AccessD] Merry Christmas In-Reply-To: <004c01c4e9d5$ab9e9860$b274d0d5@minster33c3r25> Message-ID: <200412261306.iBQD6LRl010581@cooper.uws.edu.au> And to you too Andy and your lovely wife - from Oz with love See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Saturday, 25 December 2004 3:29 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Merry Christmas To anyone still looking in, Merry Christmas and a very Happy New Year. -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Sun Dec 26 07:11:26 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 27 Dec 2004 00:11:26 +1100 Subject: [AccessD] OT In-Reply-To: <41CDB803.24845.155EDA54@lexacorp.com.pg> Message-ID: <200412261311.iBQDBSRl012090@cooper.uws.edu.au> Nope >From where I am it's merry Christmas >From where you guys are I hope it's brilliant See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, 25 December 2004 7:57 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT On 25 Dec 2004 at 0:19, Arthur Fuller wrote: > I know it's way off topic but I want to say Merry Christmas and Happy > Hanukah and Rollicking Ramadan and whatever else might be appropriate > to your persuasion. Alternatively :-) Please accept with no obligation, implied or implicit our best wishes for an environmentally conscious, socially responsible, low stress, non- addictive, gender neutral, celebration of the winter solstice holiday, practiced within the most enjoyable traditions of the religious persuasion of your choice, or secular practices of your choice, with respect for the religious/secular persuasions and/or traditions of others, or their choice not to practice religious or secular traditions at all . . . . . and a fiscally successful, personally fulfilling, and medically uncomplicated recognition of the onset of the generally accepted calendar year 2005, but not without due respect for the calendars of choice of other cultures whose contributions to society have helped to make civilisation in this world great, (not to imply that civilisation is necessarily better than any other alternative) , and without regard to the race, creed, color, age, physical ability, religious faith, choice of computer platform, or sexual preference of the wishee. (By accepting this greeting, you are accepting these terms. This greeting is subject to clarification or withdrawal. It is freely transferable with no alteration to the original greeting. It implies no promise by the wisher to actually implement any of the wishes for her/himself or others, and is void where prohibited by law, and is revocable at the sole discretion of the wisher. This wish is warranted to perform as expected within the usual application of good tidings for a period of one year, or until the issuance of a subsequent holiday greeting, whichever comes first, and warranty is limited to replacement of this wish or issuance of a new wish at the sole discretion of the wisher.) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Mon Dec 27 10:19:44 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 27 Dec 2004 10:19:44 -0600 Subject: [AccessD] OT Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337309@corp-es01.fleetpride.com> Except, of course, Mac users, all of whom are lost souls who actually enjoy living in the blue states. :0 Jim -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Saturday, December 25, 2004 2:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT On 25 Dec 2004 at 0:19, Arthur Fuller wrote: > I know it's way off topic but I want to say Merry Christmas and Happy > Hanukah and Rollicking Ramadan and whatever else might be appropriate to > your persuasion. Alternatively :-) Please accept with no obligation, implied or implicit our best wishes for an environmentally conscious, socially responsible, low stress, non- addictive, gender neutral, celebration of the winter solstice holiday, practiced within the most enjoyable traditions of the religious persuasion of your choice, or secular practices of your choice, with respect for the religious/secular persuasions and/or traditions of others, or their choice not to practice religious or secular traditions at all . . . . . and a fiscally successful, personally fulfilling, and medically uncomplicated recognition of the onset of the generally accepted calendar year 2005, but not without due respect for the calendars of choice of other cultures whose contributions to society have helped to make civilisation in this world great, (not to imply that civilisation is necessarily better than any other alternative) , and without regard to the race, creed, color, age, physical ability, religious faith, choice of computer platform, or sexual preference of the wishee. (By accepting this greeting, you are accepting these terms. This greeting is subject to clarification or withdrawal. It is freely transferable with no alteration to the original greeting. It implies no promise by the wisher to actually implement any of the wishes for her/himself or others, and is void where prohibited by law, and is revocable at the sole discretion of the wisher. This wish is warranted to perform as expected within the usual application of good tidings for a period of one year, or until the issuance of a subsequent holiday greeting, whichever comes first, and warranty is limited to replacement of this wish or issuance of a new wish at the sole discretion of the wisher.) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From artful at rogers.com Mon Dec 27 10:39:46 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 27 Dec 2004 11:39:46 -0500 Subject: [AccessD] OT In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB6772337309@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB6772337309@corp-es01.fleetpride.com> Message-ID: <41D03AD2.6050901@rogers.com> Hey, ever since they finally moved to UNIX, they have a genuine OS, and face it, the design of their boxes and monitors blows the doors off any PC-compatible box. Plus, at my favorite store I recently saw a Mac monitor that was about as wide as my dual-monitors, with about the same aspect ratio. They also had another monitor for Mac that you could rotate 90 degrees, then press a button and it would reconfigure. Great for designing web pages, newspaper layouts etc. They pay twice as much as we do for their hardware, but when was the last time you heard from a Mac user that her box crashed? For me it's been years. Mind you, I like it when the box crashes. Gives me an excuse to avoid real work :) And besides, how many people do you know that are employed fixing Mac OS/net problems? They don't seem to have them. Long live buggy OSes and apps! Else most of us might be standing in a kiosk in a mall and selling cell phones. Arthur Hale, Jim wrote: > >Except, of course, Mac users, all of whom are lost souls who actually enjoy >living in the blue states. :0 >Jim > >-----Original Message----- >From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] >Sent: Saturday, December 25, 2004 2:57 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT > > >On 25 Dec 2004 at 0:19, Arthur Fuller wrote: > > > >>I know it's way off topic but I want to say Merry Christmas and Happy >>Hanukah and Rollicking Ramadan and whatever else might be appropriate to >>your persuasion. >> >> > >Alternatively :-) > >Please accept with no obligation, implied or implicit our best wishes for >an environmentally conscious, socially responsible, low stress, non- >addictive, gender neutral, celebration of the winter solstice holiday, >practiced within the most enjoyable traditions of the religious persuasion >of your choice, or secular practices of your choice, with respect for the >religious/secular persuasions and/or traditions of others, or their choice >not to practice religious or secular traditions at all . . . . . and a >fiscally successful, personally fulfilling, and medically uncomplicated >recognition of the onset of the generally accepted calendar year 2005, but >not without due respect for the calendars of choice of other cultures whose >contributions to society have helped to make civilisation in this world >great, (not to imply that civilisation is necessarily better than any other >alternative) , and without regard to the race, creed, color, age, physical >ability, religious faith, choice of computer platform, or sexual >preference of the wishee. (By accepting this greeting, you are accepting >these terms. This greeting is subject to clarification or withdrawal. It is >freely transferable with no alteration to the original greeting. It implies >no promise by the wisher to actually implement any of the wishes for >her/himself or others, and is void where prohibited by law, and is >revocable at the sole discretion of the wisher. This wish is warranted to >perform as expected within the usual application of good tidings for a >period of one year, or until the issuance of a subsequent holiday >greeting, whichever comes first, and warranty is limited to replacement of >this wish or issuance of a new wish at the sole discretion of the wisher.) > > -- >Stuart > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From Jim.Hale at FleetPride.com Mon Dec 27 10:41:29 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 27 Dec 2004 10:41:29 -0600 Subject: [AccessD] Query SQL correct but not visible in design view Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233730B@corp-es01.fleetpride.com> Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From markamatte at hotmail.com Mon Dec 27 12:12:15 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 27 Dec 2004 18:12:15 +0000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB677233730B@corp-es01.fleetpride.com> Message-ID: Hello All, I'm working on a small A2k app that needs a 'kinda dynamic' approach. I want a form to be displayed with buttons ( of stuff to click on ie text box, piture, whatever)...but I want to buttons to be displayed depending on the number of records in a table. If there are 4 records...then I want 4 buttons...6 records then 6 buttons. Each time the form opens...it may have to add or remove a button depending on the values in the table. Does anyone have any suggestions/ideas/examples of the best approach for this? Thanks, Mark A. Matte From bchacc at san.rr.com Mon Dec 27 12:46:21 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Dec 2004 10:46:21 -0800 Subject: [AccessD] A2k Build Form from Table References: Message-ID: <00e301c4ec44$5c49fae0$6401a8c0@HAL9002> Mark: How about a continuous form where one of the fields is a button (not sure how to do this - I'm a concept guy) Rocky ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 10:12 AM Subject: [AccessD] A2k Build Form from Table > Hello All, > > I'm working on a small A2k app that needs a 'kinda dynamic' approach. I > want a form to be displayed with buttons ( of stuff to click on ie text > box, piture, whatever)...but I want to buttons to be displayed depending > on the number of records in a table. If there are 4 records...then I want > 4 buttons...6 records then 6 buttons. Each time the form opens...it may > have to add or remove a button depending on the values in the table. > > Does anyone have any suggestions/ideas/examples of the best approach for > this? > > Thanks, > > Mark A. Matte > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Mon Dec 27 13:12:49 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 27 Dec 2004 19:12:49 +0000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: <00e301c4ec44$5c49fae0$6401a8c0@HAL9002> Message-ID: Rocky, On a different topic...searched the web a couple of weeks ago for some access stuff and your name and picture from an Access conference came up...hadn't noticed your name on the list in awhile. Hope all's well. Back on topic: Thanks for the feedback...That was the first approach I thought of...but I was concerned about scrolling and I don't want any scrolling if there are more choices. I used 4 and 6 as examples...but as reallity goes...I would probably need more like 30 to 40 records in the tables for some instances. I thought of using multiple subforms side by side ( same subform but with different selects)...with 4 subforms, when the user configures the data...they would have an option of which subform(column from there perspective) the data would appear in. I'm basically looking for a direction...or concept as you called it. Hoping someone has done something like this before...and would be willing to share the experience/problems/tips. Thanks Again, Mark A. Matte >From: "Rocky Smolin - Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] A2k Build Form from Table >Date: Mon, 27 Dec 2004 10:46:21 -0800 > >Mark: > >How about a continuous form where one of the fields is a button (not sure >how to do this - I'm a concept guy) > >Rocky > >----- Original Message ----- From: "Mark A Matte" >To: >Sent: Monday, December 27, 2004 10:12 AM >Subject: [AccessD] A2k Build Form from Table > > >>Hello All, >> >>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>want a form to be displayed with buttons ( of stuff to click on ie text >>box, piture, whatever)...but I want to buttons to be displayed depending >>on the number of records in a table. If there are 4 records...then I want >>4 buttons...6 records then 6 buttons. Each time the form opens...it may >>have to add or remove a button depending on the values in the table. >> >>Does anyone have any suggestions/ideas/examples of the best approach for >>this? >> >>Thanks, >> >>Mark A. Matte >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Mon Dec 27 13:19:25 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 28 Dec 2004 00:49:25 +0530 Subject: [AccessD] Passing Param arrays References: <001d01c4e96d$c5f21420$677aa8c0@ColbyM6805> Message-ID: <017b01c4ec49$19e8ee40$651865cb@winxp> ================================ Nested Functions Using Arrays As Arguments ================================ This pertains to functions using array arguments and then returning an array as the result. Observations placed below are based upon tests conducted on Access XP (running on Win XP). A function using ParamArray as the keyword for its array argument is governed by the following limitations. (a) Each element of the array is required to be mentioned individually. Simply using an array variable (or a function that returns an array) in lieu, will not do. (b) ParamArray keyword is not to be preceded with ByVal, ByRef, or Optional keywords. (c) ParamArray type argument is to be used only as the last argument in arglist to indicate that the final argument is an optional array of Variant elements. On the other hand, if the array argument is handled without using the keyword ParamArray, there is far greater flexibility regarding the manner in which the array argument can be supplied. Any of the following alternatives will do. (a) An array variable (b) A function returning an array (c) A literal array using the built-in Array() function. Example - Array(2,4,8,16,32,64) It would thus be seen that, if functions returning array values are to be nested, those having ParamArray as the keyword stand disqualified, except for being used as the very first step. All higher layer functions have to be those using an array variable as their argument, without ParamArray keyword. As an illustration, two sample functions are given below. Fn_PAr() uses ParamArray as the keyword for its array argument, while Fn_Ar() uses a normal array variable as its argument, without the keyword ParamArray. Both these functions double the value of each element of the input array argument and return the result as an array. Sample test procedures for verifying the performance of above functions under three layers of nesting are also given below. Brief details - (a) Sub P_TestArrayFunctions_A() Three level nesting of array functions. Function having ParamArray as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (b) Sub P_TestArrayFunctions_B() Three level nesting of array functions. Function having an array variable as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (c) Sub P_TestArrayFunctions_C() Three level nesting of array functions. Function having a literal Array() function as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. Conclusion -------------- Considering its superior flexibility as explained above, a function using a straight array variable as its argument (without being preceded by the keyword ParamArray) should prove universally more convenient as compared to one with ParamArray keyword. While it is amenable to multi-level nesting, accepting array variable (or function returning an array) as its argument, it can also mimic the ParamArray style input (i.e. literal supply of individual elements of array argument) as demonstrated in test procedure Sub P_TestArrayFunctions_C() below. A.D.Tejpal -------------- =================================== Function Fn_PAr(ParamArray Pa() _ As Variant) As Variant ' Doubles each element of ParamArray ' argument Pa() and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Pa)) For Cnt = LBound(Pa) To UBound(Pa) La(Cnt) = 2 * Pa(Cnt) Next Fn_PAr = La End Function '------------------------------------ Function Fn_Ar(ByVal Ar As Variant) As Variant ' Doubles each element of array argument Ar ' and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Ar)) For Cnt = LBound(Ar) To UBound(Ar) La(Cnt) = 2 * Ar(Cnt) Next Fn_Ar = La End Function '------------------------------------ Sub P_TestArrayFunctions_A() ' Three level nesting of array functions. ' Function having ParamArray as its ' argument is used as an array argument for ' another function, which in turn, is used as ' an array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_PAr(2, 4, 8, 16, 32, 64))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_B() ' Three level nesting of array functions. ' Function having an array variable as its ' argument is used as an array argument ' for another function, which in turn, is used ' as an array argument for the final function. Dim Rtv As Variant Dim Cnt As Long, Ar As Variant Ar = Array(2, 4, 8, 16, 32, 64) Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Ar))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_C() ' Three level nesting of array functions. ' Function having a literal Array() function as ' its argument is used as an array argument for ' another function, which in turn, is used as an ' array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Array(2, 4, 8, 16, 32, 64)))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub =================================== ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:35 Subject: [AccessD] Passing Param arrays I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com From bchacc at san.rr.com Mon Dec 27 13:39:19 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Dec 2004 11:39:19 -0800 Subject: [AccessD] A2k Build Form from Table References: Message-ID: <010501c4ec4b$c23063b0$6401a8c0@HAL9002> Mark: Everything's perfect here. Thanks. If you don't know how many records are going to be in the table or what the maximum will be, I'm not sure how you can organize a screen which won't have scrolling. You could put 40 invisible buttons on the form and make them visible and change their captions depending on how many records were present in the table. But if they go over 40 records, you've got a problem. Maybe describe more what you're trying to do and there will be a different approach to solving the problem. On the other topic: IS it time for the AccessD list to try another abortive attempt at organizing a conference somewhere? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 11:12 AM Subject: Re: [AccessD] A2k Build Form from Table > Rocky, > > On a different topic...searched the web a couple of weeks ago for some > access stuff and your name and picture from an Access conference came > up...hadn't noticed your name on the list in awhile. Hope all's well. > > Back on topic: > Thanks for the feedback...That was the first approach I thought of...but I > was concerned about scrolling and I don't want any scrolling if there are > more choices. I used 4 and 6 as examples...but as reallity goes...I would > probably need more like 30 to 40 records in the tables for some instances. > I thought of using multiple subforms side by side ( same subform but with > different selects)...with 4 subforms, when the user configures the > data...they would have an option of which subform(column from there > perspective) the data would appear in. > > I'm basically looking for a direction...or concept as you called it. > Hoping someone has done something like this before...and would be willing > to share the experience/problems/tips. > > Thanks Again, > > Mark A. Matte >>From: "Rocky Smolin - Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: Re: [AccessD] A2k Build Form from Table >>Date: Mon, 27 Dec 2004 10:46:21 -0800 >> >>Mark: >> >>How about a continuous form where one of the fields is a button (not sure >>how to do this - I'm a concept guy) >> >>Rocky >> >>----- Original Message ----- From: "Mark A Matte" >>To: >>Sent: Monday, December 27, 2004 10:12 AM >>Subject: [AccessD] A2k Build Form from Table >> >> >>>Hello All, >>> >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>>want a form to be displayed with buttons ( of stuff to click on ie text >>>box, piture, whatever)...but I want to buttons to be displayed depending >>>on the number of records in a table. If there are 4 records...then I >>>want 4 buttons...6 records then 6 buttons. Each time the form opens...it >>>may have to add or remove a button depending on the values in the table. >>> >>>Does anyone have any suggestions/ideas/examples of the best approach for >>>this? >>> >>>Thanks, >>> >>>Mark A. Matte >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dmcafee at pacbell.net Mon Dec 27 14:11:28 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Mon, 27 Dec 2004 12:11:28 -0800 Subject: [AccessD] A2k Build Form from Table In-Reply-To: <010501c4ec4b$c23063b0$6401a8c0@HAL9002> Message-ID: Mark, as Rocky has mentioned, this will be hard if you set a max number of possible buttons. I was going to do a similar task once using the switchboard concept, only opening it up a bit to allow ten or twelve choices, but I never had more than 5 minutes to spend on it Basically have a dozen (or so) "picture buttons" on the form, all hidden. Number them consecutively such as imj1, imj2... Open a given recordset (at form load), which a column containing the name of a function or sub to run. You can use the count to figure how many buttons to unhide. The OnClick event of each button will have to figure out it own name such as Right(Me.ActiveControl.Name,1). Now take that "button number" and go to the given record in the recordset and call the column's function using EVAL() HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, December 27, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2k Build Form from Table Mark: Everything's perfect here. Thanks. If you don't know how many records are going to be in the table or what the maximum will be, I'm not sure how you can organize a screen which won't have scrolling. You could put 40 invisible buttons on the form and make them visible and change their captions depending on how many records were present in the table. But if they go over 40 records, you've got a problem. Maybe describe more what you're trying to do and there will be a different approach to solving the problem. On the other topic: IS it time for the AccessD list to try another abortive attempt at organizing a conference somewhere? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 11:12 AM Subject: Re: [AccessD] A2k Build Form from Table > Rocky, > > On a different topic...searched the web a couple of weeks ago for some > access stuff and your name and picture from an Access conference came > up...hadn't noticed your name on the list in awhile. Hope all's well. > > Back on topic: > Thanks for the feedback...That was the first approach I thought of...but I > was concerned about scrolling and I don't want any scrolling if there are > more choices. I used 4 and 6 as examples...but as reallity goes...I would > probably need more like 30 to 40 records in the tables for some instances. > I thought of using multiple subforms side by side ( same subform but with > different selects)...with 4 subforms, when the user configures the > data...they would have an option of which subform(column from there > perspective) the data would appear in. > > I'm basically looking for a direction...or concept as you called it. > Hoping someone has done something like this before...and would be willing > to share the experience/problems/tips. > > Thanks Again, > > Mark A. Matte >>From: "Rocky Smolin - Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: Re: [AccessD] A2k Build Form from Table >>Date: Mon, 27 Dec 2004 10:46:21 -0800 >> >>Mark: >> >>How about a continuous form where one of the fields is a button (not sure >>how to do this - I'm a concept guy) >> >>Rocky >> >>----- Original Message ----- From: "Mark A Matte" >>To: >>Sent: Monday, December 27, 2004 10:12 AM >>Subject: [AccessD] A2k Build Form from Table >> >> >>>Hello All, >>> >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>>want a form to be displayed with buttons ( of stuff to click on ie text >>>box, piture, whatever)...but I want to buttons to be displayed depending >>>on the number of records in a table. If there are 4 records...then I >>>want 4 buttons...6 records then 6 buttons. Each time the form opens...it >>>may have to add or remove a button depending on the values in the table. >>> >>>Does anyone have any suggestions/ideas/examples of the best approach for >>>this? >>> >>>Thanks, >>> >>>Mark A. Matte >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Mon Dec 27 15:26:14 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 27 Dec 2004 16:26:14 -0500 Subject: [AccessD] A2k Build Form from Table References: Message-ID: William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, December 27, 2004 3:11 PM Subject: RE: [AccessD] A2k Build Form from Table > Mark, as Rocky has mentioned, this will be hard if you set a max number of > possible buttons. I was going to do a similar task once using the > switchboard concept, only opening it up a bit to allow ten or twelve > choices, but I never had more than 5 minutes to spend on it > > Basically have a dozen (or so) "picture buttons" on the form, all hidden. > Number them consecutively such as imj1, imj2... > > Open a given recordset (at form load), which a column containing the name > of > a function or sub to run. You can use the count to figure how many buttons > to unhide. The OnClick event of each button will have to figure out it own > name such as Right(Me.ActiveControl.Name,1). Now take that "button number" > and go to the given record in the recordset and call the column's function > using EVAL() > > > HTH > David McAfee > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, December 27, 2004 11:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2k Build Form from Table > > > Mark: > > Everything's perfect here. Thanks. > > If you don't know how many records are going to be in the table or what > the > maximum will be, I'm not sure how you can organize a screen which won't > have > scrolling. > > You could put 40 invisible buttons on the form and make them visible and > change their captions depending on how many records were present in the > table. But if they go over 40 records, you've got a problem. > > Maybe describe more what you're trying to do and there will be a different > approach to solving the problem. > > On the other topic: IS it time for the AccessD list to try another > abortive > attempt at organizing a conference somewhere? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > > ----- Original Message ----- > From: "Mark A Matte" > To: > Sent: Monday, December 27, 2004 11:12 AM > Subject: Re: [AccessD] A2k Build Form from Table > > >> Rocky, >> >> On a different topic...searched the web a couple of weeks ago for some >> access stuff and your name and picture from an Access conference came >> up...hadn't noticed your name on the list in awhile. Hope all's well. >> >> Back on topic: >> Thanks for the feedback...That was the first approach I thought of...but >> I >> was concerned about scrolling and I don't want any scrolling if there are >> more choices. I used 4 and 6 as examples...but as reallity goes...I >> would >> probably need more like 30 to 40 records in the tables for some >> instances. >> I thought of using multiple subforms side by side ( same subform but with >> different selects)...with 4 subforms, when the user configures the >> data...they would have an option of which subform(column from there >> perspective) the data would appear in. >> >> I'm basically looking for a direction...or concept as you called it. >> Hoping someone has done something like this before...and would be willing >> to share the experience/problems/tips. >> >> Thanks Again, >> >> Mark A. Matte >>>From: "Rocky Smolin - Beach Access Software" >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: "Access Developers discussion and problem >>>solving" >>>Subject: Re: [AccessD] A2k Build Form from Table >>>Date: Mon, 27 Dec 2004 10:46:21 -0800 >>> >>>Mark: >>> >>>How about a continuous form where one of the fields is a button (not sure >>>how to do this - I'm a concept guy) >>> >>>Rocky >>> >>>----- Original Message ----- From: "Mark A Matte" >>> >>>To: >>>Sent: Monday, December 27, 2004 10:12 AM >>>Subject: [AccessD] A2k Build Form from Table >>> >>> >>>>Hello All, >>>> >>>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>>>want a form to be displayed with buttons ( of stuff to click on ie text >>>>box, piture, whatever)...but I want to buttons to be displayed depending >>>>on the number of records in a table. If there are 4 records...then I >>>>want 4 buttons...6 records then 6 buttons. Each time the form >>>>opens...it >>>>may have to add or remove a button depending on the values in the table. >>>> >>>>Does anyone have any suggestions/ideas/examples of the best approach for >>>>this? >>>> >>>>Thanks, >>>> >>>>Mark A. Matte >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Mon Dec 27 15:31:04 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Mon, 27 Dec 2004 16:31:04 -0500 Subject: [AccessD] A2k Build Form from Table References: Message-ID: ..sorry 'bout that :( ..anyway ...JC did some work with the switchboard a couple years back that basically allowed you to assign an almost unlimited number of buttons ...and since that is table record driven I'd think it would be adaptable to your needs with a bit of spit 'n polish on the code ...try his site where I'm sure he still has a sample posted ...if not, let me know since I never throw any sample code out ...even JC's ...which just goes to show how desperate one person can be :)) William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, December 27, 2004 3:11 PM Subject: RE: [AccessD] A2k Build Form from Table > Mark, as Rocky has mentioned, this will be hard if you set a max number of > possible buttons. I was going to do a similar task once using the > switchboard concept, only opening it up a bit to allow ten or twelve > choices, but I never had more than 5 minutes to spend on it > > Basically have a dozen (or so) "picture buttons" on the form, all hidden. > Number them consecutively such as imj1, imj2... > > Open a given recordset (at form load), which a column containing the name > of > a function or sub to run. You can use the count to figure how many buttons > to unhide. The OnClick event of each button will have to figure out it own > name such as Right(Me.ActiveControl.Name,1). Now take that "button number" > and go to the given record in the recordset and call the column's function > using EVAL() > > > HTH > David McAfee > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, December 27, 2004 11:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2k Build Form from Table > > > Mark: > > Everything's perfect here. Thanks. > > If you don't know how many records are going to be in the table or what > the > maximum will be, I'm not sure how you can organize a screen which won't > have > scrolling. > > You could put 40 invisible buttons on the form and make them visible and > change their captions depending on how many records were present in the > table. But if they go over 40 records, you've got a problem. > > Maybe describe more what you're trying to do and there will be a different > approach to solving the problem. > > On the other topic: IS it time for the AccessD list to try another > abortive > attempt at organizing a conference somewhere? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > > ----- Original Message ----- > From: "Mark A Matte" > To: > Sent: Monday, December 27, 2004 11:12 AM > Subject: Re: [AccessD] A2k Build Form from Table > > >> Rocky, >> >> On a different topic...searched the web a couple of weeks ago for some >> access stuff and your name and picture from an Access conference came >> up...hadn't noticed your name on the list in awhile. Hope all's well. >> >> Back on topic: >> Thanks for the feedback...That was the first approach I thought of...but >> I >> was concerned about scrolling and I don't want any scrolling if there are >> more choices. I used 4 and 6 as examples...but as reallity goes...I >> would >> probably need more like 30 to 40 records in the tables for some >> instances. >> I thought of using multiple subforms side by side ( same subform but with >> different selects)...with 4 subforms, when the user configures the >> data...they would have an option of which subform(column from there >> perspective) the data would appear in. >> >> I'm basically looking for a direction...or concept as you called it. >> Hoping someone has done something like this before...and would be willing >> to share the experience/problems/tips. >> >> Thanks Again, >> >> Mark A. Matte >>>From: "Rocky Smolin - Beach Access Software" >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: "Access Developers discussion and problem >>>solving" >>>Subject: Re: [AccessD] A2k Build Form from Table >>>Date: Mon, 27 Dec 2004 10:46:21 -0800 >>> >>>Mark: >>> >>>How about a continuous form where one of the fields is a button (not sure >>>how to do this - I'm a concept guy) >>> >>>Rocky >>> >>>----- Original Message ----- From: "Mark A Matte" >>> >>>To: >>>Sent: Monday, December 27, 2004 10:12 AM >>>Subject: [AccessD] A2k Build Form from Table >>> >>> >>>>Hello All, >>>> >>>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. I >>>>want a form to be displayed with buttons ( of stuff to click on ie text >>>>box, piture, whatever)...but I want to buttons to be displayed depending >>>>on the number of records in a table. If there are 4 records...then I >>>>want 4 buttons...6 records then 6 buttons. Each time the form >>>>opens...it >>>>may have to add or remove a button depending on the values in the table. >>>> >>>>Does anyone have any suggestions/ideas/examples of the best approach for >>>>this? >>>> >>>>Thanks, >>>> >>>>Mark A. Matte >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Mon Dec 27 15:41:05 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 27 Dec 2004 21:41:05 +0000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: Message-ID: Rocky, Lets use the example of BEER...If a place has 10 beers listed in their inventory...I want 10 beer buttons to show on the 'Beer Selection' Screen. If they add 15 more to inventory table...I want 25 buttons on the selection screen. My goal is no program or coding changes for an inventory change...and avoid scrolling when they do this. I could build ALL buttons that would fit on the page...hide them unless there are records in the table. It might be a little tricky if they mark one of the selections inactive(in the table)...which in theory would cause all of the buttons below the inactive one...to be shifted up by one position. I think I can work with this though. Thanks David and Rocky. ...but I am still open to ANY ideas or thoughts anyone has. Thanks Again, Mark A. Matte >From: >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A2k Build Form from Table >Date: Mon, 27 Dec 2004 12:11:28 -0800 > >Mark, as Rocky has mentioned, this will be hard if you set a max number of >possible buttons. I was going to do a similar task once using the >switchboard concept, only opening it up a bit to allow ten or twelve >choices, but I never had more than 5 minutes to spend on it > >Basically have a dozen (or so) "picture buttons" on the form, all hidden. >Number them consecutively such as imj1, imj2... > >Open a given recordset (at form load), which a column containing the name >of >a function or sub to run. You can use the count to figure how many buttons >to unhide. The OnClick event of each button will have to figure out it own >name such as Right(Me.ActiveControl.Name,1). Now take that "button number" >and go to the given record in the recordset and call the column's function >using EVAL() > > >HTH >David McAfee > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - >Beach Access Software >Sent: Monday, December 27, 2004 11:39 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2k Build Form from Table > > >Mark: > >Everything's perfect here. Thanks. > >If you don't know how many records are going to be in the table or what the >maximum will be, I'm not sure how you can organize a screen which won't >have >scrolling. > >You could put 40 invisible buttons on the form and make them visible and >change their captions depending on how many records were present in the >table. But if they go over 40 records, you've got a problem. > >Maybe describe more what you're trying to do and there will be a different >approach to solving the problem. > >On the other topic: IS it time for the AccessD list to try another >abortive >attempt at organizing a conference somewhere? > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > > > >----- Original Message ----- >From: "Mark A Matte" >To: >Sent: Monday, December 27, 2004 11:12 AM >Subject: Re: [AccessD] A2k Build Form from Table > > > > Rocky, > > > > On a different topic...searched the web a couple of weeks ago for some > > access stuff and your name and picture from an Access conference came > > up...hadn't noticed your name on the list in awhile. Hope all's well. > > > > Back on topic: > > Thanks for the feedback...That was the first approach I thought of...but >I > > was concerned about scrolling and I don't want any scrolling if there >are > > more choices. I used 4 and 6 as examples...but as reallity goes...I >would > > probably need more like 30 to 40 records in the tables for some >instances. > > I thought of using multiple subforms side by side ( same subform but >with > > different selects)...with 4 subforms, when the user configures the > > data...they would have an option of which subform(column from there > > perspective) the data would appear in. > > > > I'm basically looking for a direction...or concept as you called it. > > Hoping someone has done something like this before...and would be >willing > > to share the experience/problems/tips. > > > > Thanks Again, > > > > Mark A. Matte > >>From: "Rocky Smolin - Beach Access Software" > >>Reply-To: Access Developers discussion and problem > >>solving > >>To: "Access Developers discussion and problem > >>solving" > >>Subject: Re: [AccessD] A2k Build Form from Table > >>Date: Mon, 27 Dec 2004 10:46:21 -0800 > >> > >>Mark: > >> > >>How about a continuous form where one of the fields is a button (not >sure > >>how to do this - I'm a concept guy) > >> > >>Rocky > >> > >>----- Original Message ----- From: "Mark A Matte" > > >>To: > >>Sent: Monday, December 27, 2004 10:12 AM > >>Subject: [AccessD] A2k Build Form from Table > >> > >> > >>>Hello All, > >>> > >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. >I > >>>want a form to be displayed with buttons ( of stuff to click on ie text > >>>box, piture, whatever)...but I want to buttons to be displayed >depending > >>>on the number of records in a table. If there are 4 records...then I > >>>want 4 buttons...6 records then 6 buttons. Each time the form >opens...it > >>>may have to add or remove a button depending on the values in the >table. > >>> > >>>Does anyone have any suggestions/ideas/examples of the best approach >for > >>>this? > >>> > >>>Thanks, > >>> > >>>Mark A. Matte > >>> > >>> > >>>-- > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>Website: http://www.databaseadvisors.com > >>> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Dec 27 16:39:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 28 Dec 2004 08:39:19 +1000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: References: Message-ID: <41D11BB7.27300.229C4203@lexacorp.com.pg> On 27 Dec 2004 at 21:41, Mark A Matte wrote: > I could build ALL buttons that would fit on the page...hide them unless > there are records in the table. It might be a little tricky if they mark > one of the selections inactive(in the table)...which in theory would cause > all of the buttons below the inactive one...to be shifted up by one > position. > > I think I can work with this though. Thanks David and Rocky. > You should be able to do this easily by modifying the standard Switchboard and its underlying code. You can have as many buttons on the switchboard as you want, just add extra buttons using the same naming scheme and change the value of "Const conNumButtons." In the Fill_options code, you could display but disable the respective button if the item is "Inactive" -- Stuart From dmcafee at pacbell.net Mon Dec 27 16:58:56 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Mon, 27 Dec 2004 14:58:56 -0800 Subject: [AccessD] A2k Build Form from Table In-Reply-To: Message-ID: Ah, you are building a "McDonald's" order entry screen :) I thought you were building a fancy menu system. The same applies as what I mentioned earlier. You just need to handle the possibility of more "beers" being added over time than you have buttons for. You can either do this my selecting top 25 (if you can only fit 25 buttons on the form) or if record count >25 then unhide a "next" button that will basically re-format the screen for the next group of 25 "beers". What do you want to happen when the user clicks on one of these pictures? are you adding inventory to a pick list? David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Monday, December 27, 2004 1:41 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A2k Build Form from Table Rocky, Lets use the example of BEER...If a place has 10 beers listed in their inventory...I want 10 beer buttons to show on the 'Beer Selection' Screen. If they add 15 more to inventory table...I want 25 buttons on the selection screen. My goal is no program or coding changes for an inventory change...and avoid scrolling when they do this. I could build ALL buttons that would fit on the page...hide them unless there are records in the table. It might be a little tricky if they mark one of the selections inactive(in the table)...which in theory would cause all of the buttons below the inactive one...to be shifted up by one position. I think I can work with this though. Thanks David and Rocky. ...but I am still open to ANY ideas or thoughts anyone has. Thanks Again, Mark A. Matte >From: >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] A2k Build Form from Table >Date: Mon, 27 Dec 2004 12:11:28 -0800 > >Mark, as Rocky has mentioned, this will be hard if you set a max number of >possible buttons. I was going to do a similar task once using the >switchboard concept, only opening it up a bit to allow ten or twelve >choices, but I never had more than 5 minutes to spend on it > >Basically have a dozen (or so) "picture buttons" on the form, all hidden. >Number them consecutively such as imj1, imj2... > >Open a given recordset (at form load), which a column containing the name >of >a function or sub to run. You can use the count to figure how many buttons >to unhide. The OnClick event of each button will have to figure out it own >name such as Right(Me.ActiveControl.Name,1). Now take that "button number" >and go to the given record in the recordset and call the column's function >using EVAL() > > >HTH >David McAfee > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - >Beach Access Software >Sent: Monday, December 27, 2004 11:39 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2k Build Form from Table > > >Mark: > >Everything's perfect here. Thanks. > >If you don't know how many records are going to be in the table or what the >maximum will be, I'm not sure how you can organize a screen which won't >have >scrolling. > >You could put 40 invisible buttons on the form and make them visible and >change their captions depending on how many records were present in the >table. But if they go over 40 records, you've got a problem. > >Maybe describe more what you're trying to do and there will be a different >approach to solving the problem. > >On the other topic: IS it time for the AccessD list to try another >abortive >attempt at organizing a conference somewhere? > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > > > >----- Original Message ----- >From: "Mark A Matte" >To: >Sent: Monday, December 27, 2004 11:12 AM >Subject: Re: [AccessD] A2k Build Form from Table > > > > Rocky, > > > > On a different topic...searched the web a couple of weeks ago for some > > access stuff and your name and picture from an Access conference came > > up...hadn't noticed your name on the list in awhile. Hope all's well. > > > > Back on topic: > > Thanks for the feedback...That was the first approach I thought of...but >I > > was concerned about scrolling and I don't want any scrolling if there >are > > more choices. I used 4 and 6 as examples...but as reallity goes...I >would > > probably need more like 30 to 40 records in the tables for some >instances. > > I thought of using multiple subforms side by side ( same subform but >with > > different selects)...with 4 subforms, when the user configures the > > data...they would have an option of which subform(column from there > > perspective) the data would appear in. > > > > I'm basically looking for a direction...or concept as you called it. > > Hoping someone has done something like this before...and would be >willing > > to share the experience/problems/tips. > > > > Thanks Again, > > > > Mark A. Matte > >>From: "Rocky Smolin - Beach Access Software" > >>Reply-To: Access Developers discussion and problem > >>solving > >>To: "Access Developers discussion and problem > >>solving" > >>Subject: Re: [AccessD] A2k Build Form from Table > >>Date: Mon, 27 Dec 2004 10:46:21 -0800 > >> > >>Mark: > >> > >>How about a continuous form where one of the fields is a button (not >sure > >>how to do this - I'm a concept guy) > >> > >>Rocky > >> > >>----- Original Message ----- From: "Mark A Matte" > > >>To: > >>Sent: Monday, December 27, 2004 10:12 AM > >>Subject: [AccessD] A2k Build Form from Table > >> > >> > >>>Hello All, > >>> > >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. >I > >>>want a form to be displayed with buttons ( of stuff to click on ie text > >>>box, piture, whatever)...but I want to buttons to be displayed >depending > >>>on the number of records in a table. If there are 4 records...then I > >>>want 4 buttons...6 records then 6 buttons. Each time the form >opens...it > >>>may have to add or remove a button depending on the values in the >table. > >>> > >>>Does anyone have any suggestions/ideas/examples of the best approach >for > >>>this? > >>> > >>>Thanks, > >>> > >>>Mark A. Matte > >>> > >>> > >>>-- > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>Website: http://www.databaseadvisors.com > >>> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Dec 27 19:27:38 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 27 Dec 2004 20:27:38 -0500 Subject: [AccessD] A2k Build Form from Table In-Reply-To: Message-ID: Mark, I've got an old cash register program I wrote that I'm sending along. Think it will give you a few ideas. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Monday, December 27, 2004 1:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] A2k Build Form from Table Hello All, I'm working on a small A2k app that needs a 'kinda dynamic' approach. I want a form to be displayed with buttons ( of stuff to click on ie text box, piture, whatever)...but I want to buttons to be displayed depending on the number of records in a table. If there are 4 records...then I want 4 buttons...6 records then 6 buttons. Each time the form opens...it may have to add or remove a button depending on the values in the table. Does anyone have any suggestions/ideas/examples of the best approach for this? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Dec 27 20:06:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 27 Dec 2004 21:06:45 -0500 Subject: [AccessD] Query SQL correct but not visible in design view In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB677233730B@corp-es01.fleetpride.com> Message-ID: <001c01c4ec81$e55d4d90$0300a8c0@ColbyM6805> Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwcolby at colbyconsulting.com Mon Dec 27 20:10:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 27 Dec 2004 21:10:51 -0500 Subject: [AccessD] A2k Build Form from Table In-Reply-To: Message-ID: <001d01c4ec82$77e868c0$0300a8c0@ColbyM6805> ROTFL! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, December 27, 2004 4:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2k Build Form from Table ..sorry 'bout that :( ..anyway ...JC did some work with the switchboard a couple years back that basically allowed you to assign an almost unlimited number of buttons ...and since that is table record driven I'd think it would be adaptable to your needs with a bit of spit 'n polish on the code ...try his site where I'm sure he still has a sample posted ...if not, let me know since I never throw any sample code out ...even JC's ...which just goes to show how desperate one person can be :)) William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, December 27, 2004 3:11 PM Subject: RE: [AccessD] A2k Build Form from Table > Mark, as Rocky has mentioned, this will be hard if you set a max > number of possible buttons. I was going to do a similar task once > using the switchboard concept, only opening it up a bit to allow ten > or twelve choices, but I never had more than 5 minutes to spend on it > > Basically have a dozen (or so) "picture buttons" on the form, all > hidden. Number them consecutively such as imj1, imj2... > > Open a given recordset (at form load), which a column containing the > name > of > a function or sub to run. You can use the count to figure how many buttons > to unhide. The OnClick event of each button will have to figure out it own > name such as Right(Me.ActiveControl.Name,1). Now take that "button number" > and go to the given record in the recordset and call the column's function > using EVAL() > > > HTH > David McAfee > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, December 27, 2004 11:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2k Build Form from Table > > > Mark: > > Everything's perfect here. Thanks. > > If you don't know how many records are going to be in the table or > what > the > maximum will be, I'm not sure how you can organize a screen which won't > have > scrolling. > > You could put 40 invisible buttons on the form and make them visible > and change their captions depending on how many records were present > in the table. But if they go over 40 records, you've got a problem. > > Maybe describe more what you're trying to do and there will be a > different approach to solving the problem. > > On the other topic: IS it time for the AccessD list to try another > abortive > attempt at organizing a conference somewhere? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > > ----- Original Message ----- > From: "Mark A Matte" > To: > Sent: Monday, December 27, 2004 11:12 AM > Subject: Re: [AccessD] A2k Build Form from Table > > >> Rocky, >> >> On a different topic...searched the web a couple of weeks ago for >> some access stuff and your name and picture from an Access conference >> came up...hadn't noticed your name on the list in awhile. Hope all's >> well. >> >> Back on topic: >> Thanks for the feedback...That was the first approach I thought >> of...but >> I >> was concerned about scrolling and I don't want any scrolling if there are >> more choices. I used 4 and 6 as examples...but as reallity goes...I >> would >> probably need more like 30 to 40 records in the tables for some >> instances. >> I thought of using multiple subforms side by side ( same subform but with >> different selects)...with 4 subforms, when the user configures the >> data...they would have an option of which subform(column from there >> perspective) the data would appear in. >> >> I'm basically looking for a direction...or concept as you called it. >> Hoping someone has done something like this before...and would be >> willing to share the experience/problems/tips. >> >> Thanks Again, >> >> Mark A. Matte >>>From: "Rocky Smolin - Beach Access Software" >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: "Access Developers discussion and problem >>>solving" >>>Subject: Re: [AccessD] A2k Build Form from Table >>>Date: Mon, 27 Dec 2004 10:46:21 -0800 >>> >>>Mark: >>> >>>How about a continuous form where one of the fields is a button (not >>>sure how to do this - I'm a concept guy) >>> >>>Rocky >>> >>>----- Original Message ----- From: "Mark A Matte" >>> >>>To: >>>Sent: Monday, December 27, 2004 10:12 AM >>>Subject: [AccessD] A2k Build Form from Table >>> >>> >>>>Hello All, >>>> >>>>I'm working on a small A2k app that needs a 'kinda dynamic' >>>>approach. I want a form to be displayed with buttons ( of stuff to >>>>click on ie text box, piture, whatever)...but I want to buttons to >>>>be displayed depending on the number of records in a table. If >>>>there are 4 records...then I want 4 buttons...6 records then 6 >>>>buttons. Each time the form opens...it may have to add or remove a >>>>button depending on the values in the table. >>>> >>>>Does anyone have any suggestions/ideas/examples of the best approach >>>>for this? >>>> >>>>Thanks, >>>> >>>>Mark A. Matte >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Dec 27 20:16:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 27 Dec 2004 21:16:56 -0500 Subject: [AccessD] Passing Param arrays In-Reply-To: <017b01c4ec49$19e8ee40$651865cb@winxp> Message-ID: <001e01c4ec83$514035d0$0300a8c0@ColbyM6805> In this case, the function is called from a query, where I need to be able to pass in N fields from the query. The number can change. There is no place to dimension or set up the array. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Monday, December 27, 2004 2:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Passing Param arrays ================================ Nested Functions Using Arrays As Arguments ================================ This pertains to functions using array arguments and then returning an array as the result. Observations placed below are based upon tests conducted on Access XP (running on Win XP). A function using ParamArray as the keyword for its array argument is governed by the following limitations. (a) Each element of the array is required to be mentioned individually. Simply using an array variable (or a function that returns an array) in lieu, will not do. (b) ParamArray keyword is not to be preceded with ByVal, ByRef, or Optional keywords. (c) ParamArray type argument is to be used only as the last argument in arglist to indicate that the final argument is an optional array of Variant elements. On the other hand, if the array argument is handled without using the keyword ParamArray, there is far greater flexibility regarding the manner in which the array argument can be supplied. Any of the following alternatives will do. (a) An array variable (b) A function returning an array (c) A literal array using the built-in Array() function. Example - Array(2,4,8,16,32,64) It would thus be seen that, if functions returning array values are to be nested, those having ParamArray as the keyword stand disqualified, except for being used as the very first step. All higher layer functions have to be those using an array variable as their argument, without ParamArray keyword. As an illustration, two sample functions are given below. Fn_PAr() uses ParamArray as the keyword for its array argument, while Fn_Ar() uses a normal array variable as its argument, without the keyword ParamArray. Both these functions double the value of each element of the input array argument and return the result as an array. Sample test procedures for verifying the performance of above functions under three layers of nesting are also given below. Brief details - (a) Sub P_TestArrayFunctions_A() Three level nesting of array functions. Function having ParamArray as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (b) Sub P_TestArrayFunctions_B() Three level nesting of array functions. Function having an array variable as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (c) Sub P_TestArrayFunctions_C() Three level nesting of array functions. Function having a literal Array() function as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. Conclusion -------------- Considering its superior flexibility as explained above, a function using a straight array variable as its argument (without being preceded by the keyword ParamArray) should prove universally more convenient as compared to one with ParamArray keyword. While it is amenable to multi-level nesting, accepting array variable (or function returning an array) as its argument, it can also mimic the ParamArray style input (i.e. literal supply of individual elements of array argument) as demonstrated in test procedure Sub P_TestArrayFunctions_C() below. A.D.Tejpal -------------- =================================== Function Fn_PAr(ParamArray Pa() _ As Variant) As Variant ' Doubles each element of ParamArray ' argument Pa() and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Pa)) For Cnt = LBound(Pa) To UBound(Pa) La(Cnt) = 2 * Pa(Cnt) Next Fn_PAr = La End Function '------------------------------------ Function Fn_Ar(ByVal Ar As Variant) As Variant ' Doubles each element of array argument Ar ' and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Ar)) For Cnt = LBound(Ar) To UBound(Ar) La(Cnt) = 2 * Ar(Cnt) Next Fn_Ar = La End Function '------------------------------------ Sub P_TestArrayFunctions_A() ' Three level nesting of array functions. ' Function having ParamArray as its ' argument is used as an array argument for ' another function, which in turn, is used as ' an array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_PAr(2, 4, 8, 16, 32, 64))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_B() ' Three level nesting of array functions. ' Function having an array variable as its ' argument is used as an array argument ' for another function, which in turn, is used ' as an array argument for the final function. Dim Rtv As Variant Dim Cnt As Long, Ar As Variant Ar = Array(2, 4, 8, 16, 32, 64) Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Ar))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_C() ' Three level nesting of array functions. ' Function having a literal Array() function as ' its argument is used as an array argument for ' another function, which in turn, is used as an ' array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Array(2, 4, 8, 16, 32, 64)))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub =================================== ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:35 Subject: [AccessD] Passing Param arrays I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Dec 27 22:08:00 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 27 Dec 2004 20:08:00 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC In-Reply-To: Message-ID: <0I9E00M67ZG68N@l-daemon> Hi All Never having used an ODBC connection, to MS SQL, since pre 1997, I am having some issues when linking the tables, to Access. The tables link OK but each table is prefixed with the owner code, in this case DBO. Example table 'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? Any help would be greatly appreciated as the prospect of manually renaming 250 odd tables does not excite. MTIA Jim From bchacc at san.rr.com Tue Dec 28 00:22:23 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Dec 2004 22:22:23 -0800 Subject: [AccessD] A2k Build Form from Table References: Message-ID: <025601c4eca5$983fe620$6401a8c0@HAL9002> Mark: "If they add 15 more to inventory table...I want 25 buttons on the selection screen. My goal is no program or coding changes for an inventory change...and avoid scrolling when they do this." I don't think you can get there. Let's take the simple case: they add 3500 beers to inventory. Do you want 2500 buttons on the screen even if you allow scrolling? Without scrolling there's only one way to do it: create the buttons on the fly and size them so they'll all fit on the screen. However, if you get enough buttons the captions or pictures won't be legible. IS there some practical limit you can set on the number of records you need reflected in buttons on the screen? Rocky ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 1:41 PM Subject: RE: [AccessD] A2k Build Form from Table > Rocky, > > Lets use the example of BEER...If a place has 10 beers listed in their > inventory...I want 10 beer buttons to show on the 'Beer Selection' Screen. > If they add 15 more to inventory table...I want 25 buttons on the > selection screen. > > My goal is no program or coding changes for an inventory change...and > avoid scrolling when they do this. > > I could build ALL buttons that would fit on the page...hide them unless > there are records in the table. It might be a little tricky if they mark > one of the selections inactive(in the table)...which in theory would cause > all of the buttons below the inactive one...to be shifted up by one > position. > > I think I can work with this though. Thanks David and Rocky. > > ...but I am still open to ANY ideas or thoughts anyone has. > > Thanks Again, > > Mark A. Matte > >>From: >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: RE: [AccessD] A2k Build Form from Table >>Date: Mon, 27 Dec 2004 12:11:28 -0800 >> >>Mark, as Rocky has mentioned, this will be hard if you set a max number of >>possible buttons. I was going to do a similar task once using the >>switchboard concept, only opening it up a bit to allow ten or twelve >>choices, but I never had more than 5 minutes to spend on it >> >>Basically have a dozen (or so) "picture buttons" on the form, all hidden. >>Number them consecutively such as imj1, imj2... >> >>Open a given recordset (at form load), which a column containing the name >>of >>a function or sub to run. You can use the count to figure how many buttons >>to unhide. The OnClick event of each button will have to figure out it own >>name such as Right(Me.ActiveControl.Name,1). Now take that "button number" >>and go to the given record in the recordset and call the column's function >>using EVAL() >> >> >>HTH >>David McAfee >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - >>Beach Access Software >>Sent: Monday, December 27, 2004 11:39 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] A2k Build Form from Table >> >> >>Mark: >> >>Everything's perfect here. Thanks. >> >>If you don't know how many records are going to be in the table or what >>the >>maximum will be, I'm not sure how you can organize a screen which won't >>have >>scrolling. >> >>You could put 40 invisible buttons on the form and make them visible and >>change their captions depending on how many records were present in the >>table. But if they go over 40 records, you've got a problem. >> >>Maybe describe more what you're trying to do and there will be a different >>approach to solving the problem. >> >>On the other topic: IS it time for the AccessD list to try another >>abortive >>attempt at organizing a conference somewhere? >> >>Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >> >> >> >>----- Original Message ----- >>From: "Mark A Matte" >>To: >>Sent: Monday, December 27, 2004 11:12 AM >>Subject: Re: [AccessD] A2k Build Form from Table >> >> >> > Rocky, >> > >> > On a different topic...searched the web a couple of weeks ago for some >> > access stuff and your name and picture from an Access conference came >> > up...hadn't noticed your name on the list in awhile. Hope all's well. >> > >> > Back on topic: >> > Thanks for the feedback...That was the first approach I thought >> > of...but >>I >> > was concerned about scrolling and I don't want any scrolling if there >>are >> > more choices. I used 4 and 6 as examples...but as reallity goes...I >>would >> > probably need more like 30 to 40 records in the tables for some >>instances. >> > I thought of using multiple subforms side by side ( same subform but >>with >> > different selects)...with 4 subforms, when the user configures the >> > data...they would have an option of which subform(column from there >> > perspective) the data would appear in. >> > >> > I'm basically looking for a direction...or concept as you called it. >> > Hoping someone has done something like this before...and would be >>willing >> > to share the experience/problems/tips. >> > >> > Thanks Again, >> > >> > Mark A. Matte >> >>From: "Rocky Smolin - Beach Access Software" >> >>Reply-To: Access Developers discussion and problem >> >>solving >> >>To: "Access Developers discussion and problem >> >>solving" >> >>Subject: Re: [AccessD] A2k Build Form from Table >> >>Date: Mon, 27 Dec 2004 10:46:21 -0800 >> >> >> >>Mark: >> >> >> >>How about a continuous form where one of the fields is a button (not >>sure >> >>how to do this - I'm a concept guy) >> >> >> >>Rocky >> >> >> >>----- Original Message ----- From: "Mark A Matte" >> >> >>To: >> >>Sent: Monday, December 27, 2004 10:12 AM >> >>Subject: [AccessD] A2k Build Form from Table >> >> >> >> >> >>>Hello All, >> >>> >> >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. >>I >> >>>want a form to be displayed with buttons ( of stuff to click on ie >> >>>text >> >>>box, piture, whatever)...but I want to buttons to be displayed >>depending >> >>>on the number of records in a table. If there are 4 records...then I >> >>>want 4 buttons...6 records then 6 buttons. Each time the form >>opens...it >> >>>may have to add or remove a button depending on the values in the >>table. >> >>> >> >>>Does anyone have any suggestions/ideas/examples of the best approach >>for >> >>>this? >> >>> >> >>>Thanks, >> >>> >> >>>Mark A. Matte >> >>> >> >>> >> >>>-- >> >>>AccessD mailing list >> >>>AccessD at databaseadvisors.com >> >>>http://databaseadvisors.com/mailman/listinfo/accessd >> >>>Website: http://www.databaseadvisors.com >> >>> >> >> >> >>-- >> >>AccessD mailing list >> >>AccessD at databaseadvisors.com >> >>http://databaseadvisors.com/mailman/listinfo/accessd >> >>Website: http://www.databaseadvisors.com >> > >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Dec 28 00:49:52 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 27 Dec 2004 22:49:52 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC References: <0I9E00M67ZG68N@l-daemon> Message-ID: <41D10210.3000401@shaw.ca> There is a "MYSQL/ODBC list" Join the mailing list from this page about 2/3 down. http://lists.mysql.com Some of ODBC drivers for MaxDB don't always work and you might have to go back a release from the latest one. At least it was that way a year ago. I had Access 97 with WinXP connected at that time to MaxDB not MySQL Maybe look through the archives when you are subscribing to the list Jim Lawrence wrote: >Hi All > >Never having used an ODBC connection, to MS SQL, since pre 1997, I am having >some issues when linking the tables, to Access. The tables link OK but each >table is prefixed with the owner code, in this case DBO. Example table >'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? > >Any help would be greatly appreciated as the prospect of manually renaming >250 odd tables does not excite. > >MTIA >Jim > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Tue Dec 28 01:41:21 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 27 Dec 2004 23:41:21 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC In-Reply-To: <41D10210.3000401@shaw.ca> Message-ID: <0I9F0040P9BQGQ@l-daemon> Thanks Marty: ...But the question is to do with MS SQL not MySQL. The ODBC driver is actually Microsoft's driver. I am having an issue with the way it retrieves the table names from the MS SQL DB. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, December 27, 2004 10:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking Tables from MS SQL using ODBC There is a "MYSQL/ODBC list" Join the mailing list from this page about 2/3 down. http://lists.mysql.com Some of ODBC drivers for MaxDB don't always work and you might have to go back a release from the latest one. At least it was that way a year ago. I had Access 97 with WinXP connected at that time to MaxDB not MySQL Maybe look through the archives when you are subscribing to the list Jim Lawrence wrote: >Hi All > >Never having used an ODBC connection, to MS SQL, since pre 1997, I am having >some issues when linking the tables, to Access. The tables link OK but each >table is prefixed with the owner code, in this case DBO. Example table >'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? > >Any help would be greatly appreciated as the prospect of manually renaming >250 odd tables does not excite. > >MTIA >Jim > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Dec 28 02:58:18 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Dec 2004 09:58:18 +0100 Subject: [AccessD] Linking Tables from MS SQL using ODBC Message-ID: Hi Jim It is normal, but no big deal. Just loop through the DAO.TableDefs collection and adjust the Name property if this begins with "dbo_". /gustav >>> accessd at shaw.ca 28-12-2004 05:08:00 >>> Hi All Never having used an ODBC connection, to MS SQL, since pre 1997, I am having some issues when linking the tables, to Access. The tables link OK but each table is prefixed with the owner code, in this case DBO. Example table 'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? Any help would be greatly appreciated as the prospect of manually renaming 250 odd tables does not excite. MTIA Jim From viner at EUnet.yu Tue Dec 28 06:29:34 2004 From: viner at EUnet.yu (ErvinBrindza) Date: Tue, 28 Dec 2004 13:29:34 +0100 Subject: [AccessD] A2k Build Form from Table References: Message-ID: <007d01c4ecd8$ea712070$5b00a8c0@RazvojErvin> And what about the code behind all those buttons? Maybe a simple combo box would be suitable... Ervin ----- Original Message ----- From: "Mark A Matte" To: Sent: Monday, December 27, 2004 10:41 PM Subject: RE: [AccessD] A2k Build Form from Table > Rocky, > > Lets use the example of BEER...If a place has 10 beers listed in their > inventory...I want 10 beer buttons to show on the 'Beer Selection' Screen. > If they add 15 more to inventory table...I want 25 buttons on the selection > screen. > > My goal is no program or coding changes for an inventory change...and avoid > scrolling when they do this. > > I could build ALL buttons that would fit on the page...hide them unless > there are records in the table. It might be a little tricky if they mark > one of the selections inactive(in the table)...which in theory would cause > all of the buttons below the inactive one...to be shifted up by one > position. > > I think I can work with this though. Thanks David and Rocky. > > ...but I am still open to ANY ideas or thoughts anyone has. > > Thanks Again, > > Mark A. Matte > > >From: > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] A2k Build Form from Table > >Date: Mon, 27 Dec 2004 12:11:28 -0800 > > > >Mark, as Rocky has mentioned, this will be hard if you set a max number of > >possible buttons. I was going to do a similar task once using the > >switchboard concept, only opening it up a bit to allow ten or twelve > >choices, but I never had more than 5 minutes to spend on it > > > >Basically have a dozen (or so) "picture buttons" on the form, all hidden. > >Number them consecutively such as imj1, imj2... > > > >Open a given recordset (at form load), which a column containing the name > >of > >a function or sub to run. You can use the count to figure how many buttons > >to unhide. The OnClick event of each button will have to figure out it own > >name such as Right(Me.ActiveControl.Name,1). Now take that "button number" > >and go to the given record in the recordset and call the column's function > >using EVAL() > > > > > >HTH > >David McAfee > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > >Beach Access Software > >Sent: Monday, December 27, 2004 11:39 AM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] A2k Build Form from Table > > > > > >Mark: > > > >Everything's perfect here. Thanks. > > > >If you don't know how many records are going to be in the table or what the > >maximum will be, I'm not sure how you can organize a screen which won't > >have > >scrolling. > > > >You could put 40 invisible buttons on the form and make them visible and > >change their captions depending on how many records were present in the > >table. But if they go over 40 records, you've got a problem. > > > >Maybe describe more what you're trying to do and there will be a different > >approach to solving the problem. > > > >On the other topic: IS it time for the AccessD list to try another > >abortive > >attempt at organizing a conference somewhere? > > > >Regards, > > > >Rocky Smolin > >Beach Access Software > >http://www.e-z-mrp.com > >858-259-4334 > > > > > > > > > >----- Original Message ----- > >From: "Mark A Matte" > >To: > >Sent: Monday, December 27, 2004 11:12 AM > >Subject: Re: [AccessD] A2k Build Form from Table > > > > > > > Rocky, > > > > > > On a different topic...searched the web a couple of weeks ago for some > > > access stuff and your name and picture from an Access conference came > > > up...hadn't noticed your name on the list in awhile. Hope all's well. > > > > > > Back on topic: > > > Thanks for the feedback...That was the first approach I thought of...but > >I > > > was concerned about scrolling and I don't want any scrolling if there > >are > > > more choices. I used 4 and 6 as examples...but as reallity goes...I > >would > > > probably need more like 30 to 40 records in the tables for some > >instances. > > > I thought of using multiple subforms side by side ( same subform but > >with > > > different selects)...with 4 subforms, when the user configures the > > > data...they would have an option of which subform(column from there > > > perspective) the data would appear in. > > > > > > I'm basically looking for a direction...or concept as you called it. > > > Hoping someone has done something like this before...and would be > >willing > > > to share the experience/problems/tips. > > > > > > Thanks Again, > > > > > > Mark A. Matte > > >>From: "Rocky Smolin - Beach Access Software" > > >>Reply-To: Access Developers discussion and problem > > >>solving > > >>To: "Access Developers discussion and problem > > >>solving" > > >>Subject: Re: [AccessD] A2k Build Form from Table > > >>Date: Mon, 27 Dec 2004 10:46:21 -0800 > > >> > > >>Mark: > > >> > > >>How about a continuous form where one of the fields is a button (not > >sure > > >>how to do this - I'm a concept guy) > > >> > > >>Rocky > > >> > > >>----- Original Message ----- From: "Mark A Matte" > > > > >>To: > > >>Sent: Monday, December 27, 2004 10:12 AM > > >>Subject: [AccessD] A2k Build Form from Table > > >> > > >> > > >>>Hello All, > > >>> > > >>>I'm working on a small A2k app that needs a 'kinda dynamic' approach. > >I > > >>>want a form to be displayed with buttons ( of stuff to click on ie text > > >>>box, piture, whatever)...but I want to buttons to be displayed > >depending > > >>>on the number of records in a table. If there are 4 records...then I > > >>>want 4 buttons...6 records then 6 buttons. Each time the form > >opens...it > > >>>may have to add or remove a button depending on the values in the > >table. > > >>> > > >>>Does anyone have any suggestions/ideas/examples of the best approach > >for > > >>>this? > > >>> > > >>>Thanks, > > >>> > > >>>Mark A. Matte > > >>> > > >>> > > >>>-- > > >>>AccessD mailing list > > >>>AccessD at databaseadvisors.com > > >>>http://databaseadvisors.com/mailman/listinfo/accessd > > >>>Website: http://www.databaseadvisors.com > > >>> > > >> > > >>-- > > >>AccessD mailing list > > >>AccessD at databaseadvisors.com > > >>http://databaseadvisors.com/mailman/listinfo/accessd > > >>Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Dec 28 06:52:10 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 28 Dec 2004 22:52:10 +1000 Subject: [AccessD] A2k Build Form from Table In-Reply-To: <007d01c4ecd8$ea712070$5b00a8c0@RazvojErvin> Message-ID: <41D1E39A.647.25A90764@lexacorp.com.pg> On 28 Dec 2004 at 13:29, ErvinBrindza wrote: > And what about the code behind all those buttons? Maybe a simple combo box > would be suitable... > Ervin > Each button just needs an on_click action of "=Handlebuttonclick(index)" -- Stuart From dwaters at usinternet.com Tue Dec 28 08:30:28 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 08:30:28 -0600 Subject: [AccessD] Naming Convention (Query SQL correct but not visible in design view) In-Reply-To: <22946221.1104199670491.JavaMail.root@sniper21.securence.com> Message-ID: <000401c4ece9$c78df180$de1811d8@danwaters> John, You've really thought this through! I will no longer give FK's the same name as the primary key. I do one thing for a specific reason. When naming sub forms or reports they go like this: frmPeople or frmPeopleMain, and frmPeopleSub. I do this so that all the People related forms are adjacent in the database window. Something else I do that is to almost never use an abbreviation in a field, variable, control, or label name. This allows me or someone else to pretty much be able to read the code to see what's happening without my having to put in explanatory comments. It seems that I take more time writing and modifying comments than I do writing code, so minimizing comments is good. Also, when I can read code, I cannot misinterpret what is happening. My names could look like: tblPeopleMain tblPeopleSub lblDesignEngineer txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field name = DesignEngineerApproval dteDesignEngineer - field name = DesignEngineerDate stgDesignEngineer varDesignEngineer . . . . and so on. You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, December 27, 2004 8:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Dec 28 08:47:54 2004 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 28 Dec 2004 06:47:54 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC In-Reply-To: Message-ID: <0I9F0082GT2KGI@l-daemon> Thanks for your help Gustav. I will set up a function to do that. In the place that I am currently working their application was originally designed in Access. When it came to updating the system to work with larger DBs the solution cobbled together was a non-Access front-end and an Access MDB backend that uses ODBC to connect to all the data. Scary :-( Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 28, 2004 12:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linking Tables from MS SQL using ODBC Hi Jim It is normal, but no big deal. Just loop through the DAO.TableDefs collection and adjust the Name property if this begins with "dbo_". /gustav >>> accessd at shaw.ca 28-12-2004 05:08:00 >>> Hi All Never having used an ODBC connection, to MS SQL, since pre 1997, I am having some issues when linking the tables, to Access. The tables link OK but each table is prefixed with the owner code, in this case DBO. Example table 'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? Any help would be greatly appreciated as the prospect of manually renaming 250 odd tables does not excite. MTIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Dec 28 08:52:47 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Dec 2004 15:52:47 +0100 Subject: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) Message-ID: Hi Dan >From a macro you can recompile your code after adjusting the references. I have found no other way to do that (and no, the SysCmd(SomeCompileConstant) doesn't work except when run from the debug window). /gustav >>> dwaters at usinternet.com 28-12-2004 15:30:28 >>> You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? From Subscriptions at servicexp.com Tue Dec 28 09:09:16 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Tue, 28 Dec 2004 10:09:16 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <000401c4ece9$c78df180$de1811d8@danwaters> Message-ID: Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie From dwaters at usinternet.com Tue Dec 28 09:25:43 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 09:25:43 -0600 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <28216779.1104246709045.JavaMail.root@sniper19.securence.com> Message-ID: <000701c4ecf1$7f139600$de1811d8@danwaters> Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Dec 28 09:27:22 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 09:27:22 -0600 Subject: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) In-Reply-To: <30640609.1104245728737.JavaMail.root@sniper20.securence.com> Message-ID: <000801c4ecf1$ba440570$de1811d8@danwaters> Thanks Gustav - That's new for me! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 28, 2004 8:53 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) Hi Dan >From a macro you can recompile your code after adjusting the references. I have found no other way to do that (and no, the SysCmd(SomeCompileConstant) doesn't work except when run from the debug window). /gustav >>> dwaters at usinternet.com 28-12-2004 15:30:28 >>> You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Tue Dec 28 09:29:07 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 28 Dec 2004 10:29:07 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) References: Message-ID: "From a macro you can recompile your code after adjusting the references." gustav ..ok ...I'm confused ...why would I want to use a macro to do that? William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 28, 2004 9:52 AM Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) > Hi Dan > >>From a macro you can recompile your code after adjusting the > references. > I have found no other way to do that (and no, the > SysCmd(SomeCompileConstant) doesn't work except when run from the debug > window). > > /gustav > >>>> dwaters at usinternet.com 28-12-2004 15:30:28 >>> > > You said you use an autoexec macro (I've never used macros in Access). > I > use an invisible startup form, which calls a list of procedures and > functions in a standard module. Do you know of an advantage one way or > the > other? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mastercafe at ctv.es Tue Dec 28 09:46:35 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 28 Dec 2004 16:46:35 +0100 Subject: [AccessD] Vba with SOAP experiences In-Reply-To: Message-ID: <000001c4ecf4$6aa77030$0500a8c0@masterserv> Hi group, we are searching information about SOAP to include on an application for POS (Point of sale). We are trying to put a service to credit card for pay the bill. Thank you very much Juan =========================================== MASTERCAFE S.L. NIF - B 82.617.614 Juan Men?ndez Crespo Plaza Puerta de Europa 2, 1-D (33011 Oviedo) www.mastercafe.com info at mastercafe.com =========================================== El contenido del presente correo es privado. Todos los archivos adjuntos han sido revisados y escaneados con McAfee VirusScan 8. Solo ser?n v?lidos aquellos archivos que est?n identificados en el cuerpo del correo y que se describa su composici?n y contenido del mismo. From Gustav at cactus.dk Tue Dec 28 09:58:39 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Dec 2004 16:58:39 +0100 Subject: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Message-ID: Hi William At lunch, sorry launch time, if you check the references and one is missing and you get it reestablished, your code is left uncompiled. Your code cannot compile itself, thus you'll need to do that from the "outside" and - seen from the code's view - a macro is such an outside place. Another outside place place is a form with a timer event. As the AutoExec macro will run before anything else, you can let it first check and repair the references, then - if needed - recompile the app; it only takes a few seconds. /gustav >>> dejpolsys at hotmail.com 28-12-2004 16:29:07 >>> "From a macro you can recompile your code after adjusting the references." gustav ..ok ...I'm confused ...why would I want to use a macro to do that? William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, December 28, 2004 9:52 AM Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisible indesign view) > Hi Dan > >>From a macro you can recompile your code after adjusting the > references. > I have found no other way to do that (and no, the > SysCmd(SomeCompileConstant) doesn't work except when run from the debug > window). > > /gustav > >>>> dwaters at usinternet.com 28-12-2004 15:30:28 >>> > > You said you use an autoexec macro (I've never used macros in Access). > I use an invisible startup form, which calls a list of procedures and > functions in a standard module. Do you know of an advantage one way or > the other? From john at winhaven.net Tue Dec 28 10:14:52 2004 From: john at winhaven.net (John Bartow) Date: Tue, 28 Dec 2004 10:14:52 -0600 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <000701c4ecf1$7f139600$de1811d8@danwaters> Message-ID: <200412281016359.SM03308@ScuzzPaq> JC's Timer class sample on his website should be a good starting point. Www.colbyconsulting.com HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 28 10:29:03 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 08:29:03 -0800 Subject: [AccessD] Passing Param arrays Message-ID: John, Use variants. They handle paramarrays quite nicely. If you return a paramarray in a variant to the calling routine and assign it to a variant in that routine, you'll be able to address its elements and test the ubound, etc., just as you would any other paramarray. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, December 27, 2004 6:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Passing Param arrays In this case, the function is called from a query, where I need to be able to pass in N fields from the query. The number can change. There is no place to dimension or set up the array. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Monday, December 27, 2004 2:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Passing Param arrays ================================ Nested Functions Using Arrays As Arguments ================================ This pertains to functions using array arguments and then returning an array as the result. Observations placed below are based upon tests conducted on Access XP (running on Win XP). A function using ParamArray as the keyword for its array argument is governed by the following limitations. (a) Each element of the array is required to be mentioned individually. Simply using an array variable (or a function that returns an array) in lieu, will not do. (b) ParamArray keyword is not to be preceded with ByVal, ByRef, or Optional keywords. (c) ParamArray type argument is to be used only as the last argument in arglist to indicate that the final argument is an optional array of Variant elements. On the other hand, if the array argument is handled without using the keyword ParamArray, there is far greater flexibility regarding the manner in which the array argument can be supplied. Any of the following alternatives will do. (a) An array variable (b) A function returning an array (c) A literal array using the built-in Array() function. Example - Array(2,4,8,16,32,64) It would thus be seen that, if functions returning array values are to be nested, those having ParamArray as the keyword stand disqualified, except for being used as the very first step. All higher layer functions have to be those using an array variable as their argument, without ParamArray keyword. As an illustration, two sample functions are given below. Fn_PAr() uses ParamArray as the keyword for its array argument, while Fn_Ar() uses a normal array variable as its argument, without the keyword ParamArray. Both these functions double the value of each element of the input array argument and return the result as an array. Sample test procedures for verifying the performance of above functions under three layers of nesting are also given below. Brief details - (a) Sub P_TestArrayFunctions_A() Three level nesting of array functions. Function having ParamArray as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (b) Sub P_TestArrayFunctions_B() Three level nesting of array functions. Function having an array variable as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (c) Sub P_TestArrayFunctions_C() Three level nesting of array functions. Function having a literal Array() function as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. Conclusion -------------- Considering its superior flexibility as explained above, a function using a straight array variable as its argument (without being preceded by the keyword ParamArray) should prove universally more convenient as compared to one with ParamArray keyword. While it is amenable to multi-level nesting, accepting array variable (or function returning an array) as its argument, it can also mimic the ParamArray style input (i.e. literal supply of individual elements of array argument) as demonstrated in test procedure Sub P_TestArrayFunctions_C() below. A.D.Tejpal -------------- =================================== Function Fn_PAr(ParamArray Pa() _ As Variant) As Variant ' Doubles each element of ParamArray ' argument Pa() and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Pa)) For Cnt = LBound(Pa) To UBound(Pa) La(Cnt) = 2 * Pa(Cnt) Next Fn_PAr = La End Function '------------------------------------ Function Fn_Ar(ByVal Ar As Variant) As Variant ' Doubles each element of array argument Ar ' and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Ar)) For Cnt = LBound(Ar) To UBound(Ar) La(Cnt) = 2 * Ar(Cnt) Next Fn_Ar = La End Function '------------------------------------ Sub P_TestArrayFunctions_A() ' Three level nesting of array functions. ' Function having ParamArray as its ' argument is used as an array argument for ' another function, which in turn, is used as ' an array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_PAr(2, 4, 8, 16, 32, 64))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_B() ' Three level nesting of array functions. ' Function having an array variable as its ' argument is used as an array argument ' for another function, which in turn, is used ' as an array argument for the final function. Dim Rtv As Variant Dim Cnt As Long, Ar As Variant Ar = Array(2, 4, 8, 16, 32, 64) Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Ar))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_C() ' Three level nesting of array functions. ' Function having a literal Array() function as ' its argument is used as an array argument for ' another function, which in turn, is used as an ' array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Array(2, 4, 8, 16, 32, 64)))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub =================================== ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:35 Subject: [AccessD] Passing Param arrays I have a function which has a ParamArray FieldNames() This function calls another function with the same ParamArray FieldNames() The first function attempts to call the second function, passing the paramarray Fieldnames on to the second function. In debug mode I can step through the ParamArray(0), etc and see that there is indeed data in the param array. The 2nd function receives the paramarray, but it is empty. Does anyone know if it is possible to pass a paramarray back out to a second function? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Dec 28 11:09:08 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 12:09:08 -0500 Subject: [AccessD] A2k Build Form from Table In-Reply-To: References: Message-ID: <41D19334.80002@rogers.com> You have a way with backhand compliments don't you? William Hindman wrote: > ..sorry 'bout that :( > > ..anyway ...JC did some work with the switchboard a couple years back > that basically allowed you to assign an almost unlimited number of > buttons ...and since that is table record driven I'd think it would be > adaptable to your needs with a bit of spit 'n polish on the code > ...try his site where I'm sure he still has a sample posted ...if not, > let me know since I never throw any sample code out ...even JC's > ...which just goes to show how desperate one person can be :)) > > William Hindman > >> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From martyconnelly at shaw.ca Tue Dec 28 11:22:00 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Dec 2004 09:22:00 -0800 Subject: [AccessD] Linking Tables from MS SQL using ODBC References: <0I9F0040P9BQGQ@l-daemon> Message-ID: <41D19638.5030901@shaw.ca> Must be the Eggnog causing blurry vision.. Prepping for Hogmanay. Or just having answered 3 similar questions on MySQL. Jim Lawrence wrote: >Thanks Marty: > >...But the question is to do with MS SQL not MySQL. The ODBC driver is >actually Microsoft's driver. I am having an issue with the way it retrieves >the table names from the MS SQL DB. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Monday, December 27, 2004 10:50 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Linking Tables from MS SQL using ODBC > > >There is a "MYSQL/ODBC list" >Join the mailing list from this page about 2/3 down. >http://lists.mysql.com >Some of ODBC drivers for MaxDB don't always work and you might have >to go back a release from the latest one. At least it was that way a >year ago. I had Access 97 with WinXP connected at that time to MaxDB not >MySQL > >Maybe look through the archives when you are subscribing to the list > > > >Jim Lawrence wrote: > > > >>Hi All >> >>Never having used an ODBC connection, to MS SQL, since pre 1997, I am >> >> >having > > >>some issues when linking the tables, to Access. The tables link OK but each >>table is prefixed with the owner code, in this case DBO. Example table >>'test' becomes 'dbo_test'. Is this normal? Did I miss some flag? >> >>Any help would be greatly appreciated as the prospect of manually renaming >>250 odd tables does not excite. >> >>MTIA >>Jim >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From carbonnb at sympatico.ca Tue Dec 28 11:44:05 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 28 Dec 2004 12:44:05 -0500 Subject: [AccessD] Linking Tables from MS SQL using ODBC In-Reply-To: <41D19638.5030901@shaw.ca> Message-ID: <41D15515.14821.5EF00C@localhost> On 28 Dec 2004 at 9:22, MartyConnelly wrote: > Must be the Eggnog causing blurry vision.. Prepping for Hogmanay. Or > just having answered 3 similar questions on MySQL. It's gotta be the air north of the 49th Marty. I read it as MySQL as well. -- Bryan Carbonnell - carbonnb at sympatico.ca From Lambert.Heenan at AIG.com Tue Dec 28 11:59:28 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 28 Dec 2004 12:59:28 -0500 Subject: [AccessD] Union Queries Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2A0D@xlivmbx21.aig.com> Or, alternatively... Create the two (or more) queries that you want to wind up being part of a union query, all done using the grid and save them all as regular queries, for the sake of this discussion call them 'Query1', 'Query2' etc. Then you can create another new query, open the empty SQL view and type in Select * from Query1 Union Select * from Query2; (and so on). The great advantage of this is that if you need to do any maintenance on any or all parts of the union query you can do so in the query design grid with each of the separate queries that combine to make the union query. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Gregg > Sent: Thursday, December 23, 2004 4:14 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Union Queries > > Good Idea.... sorry about the wrong subject line. > ----- Original Message ----- > From: Hale, Jim > To: 'Access Developers discussion and problem > solving' > Sent: Thursday, December 23, 2004 2:16 PM > Subject: RE: [AccessD] Capture That Record Number > > > no wizard but you can make two separate queries using the grid and save > them, switch to sql view in one of them, type the word "Union" at the > end > and cut and paste the sql from the second query. Pretty simple. Of > course, > the field data types must be the same. > Jim Hale > > -----Original Message----- > From: Gregg [mailto:greggs at msn.com] > Sent: Thursday, December 23, 2004 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Capture That Record Number > > > Is there a wizard or tool out there to make Union Queries? Seems like > there > ought to be some sort of grid layout format that create the SQL. > Thanks... > and OT... Merry Christmas! > > Gregg Steinbrenner > -- > AccessD mailing list > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd rs.com/mailman/listinfo/accessd> > Website: > http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email.-- > AccessD mailing list > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd rs.com/mailman/listinfo/accessd> > Website: > http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Tue Dec 28 12:03:09 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 28 Dec 2004 13:03:09 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: Message-ID: Robert, <> I don't understand why not. The solutions you suggested are no different in terms of the end result. I have a hidden form I open at the startup of my apps and use for a bunch of purposes, one of which is firing off a timer to support background tasks. The only "tweak" is that I have a flag to turn it off to aid debugging. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 10:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Dec 28 12:18:52 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Dec 2004 10:18:52 -0800 Subject: [AccessD] Vba with SOAP experiences References: <000001c4ecf4$6aa77030$0500a8c0@masterserv> Message-ID: <41D1A38C.9020504@shaw.ca> Since MS is downgrading (or whatever metaphor is in vogue today, for no support) their soap toolkits, they are trying to force everything to dotNet web services. You could download Web Service References Tool 2.0 from MS and run with Access 2003. Not sure if it runs with lower versions. You could run with 2003 generate the classes then put them in say Access XP or 2000 If using MS, I might go with Simon Fell's Pocket Soap toolkit, he had his version out a year before Microsoft's tollkit appeared. It works for Java and Pocket Pc's http://www.pocketsoap.com If it is a simple web service say just credit card verification against an asmx or wsdl file, you might get away with just building your own soap mesage and envelope in xml and sending via xmlhttp then parsing the response. Needs a lot of xml and soap basic knowledege to handle errors. You build your Soap envelope and message by looking at the wsdl file. easier if they have Disco (Discovery) service. PS a lot of vendors describe their web service as SOAP but it isn't even close to standard. I looked at Amazon 18 months ago and they were way off. This will work with Access 97 if web service still up. Dim objStyle As MSXML2.DOMDocument Dim objXMLDOM As MSXML2.DOMDocument Const checked As Boolean = True Function BuildSoapEnvelopeSmall(strAddress As String, _ strCity As String, strState As String) As String 'Function builds the SOAP Envelope Dim SOAPEnvelope As String Dim xmlInit As String ' POST /zipcoderesolver/zipcoderesolver.asmx HTTP/1.1 'Host: webservices.eraserver.net 'Content-Type: text/xml; charset=utf-8 'Content -length: length 'SOAPAction: "http://webservices.eraserver.net/FullZipCode" ' 'strAddress = "Microsoft" 'strCity = "Redmond" 'strState = "WA" 'strAddress = "1151 Marina Village" 'strCity = "Alameda" 'strState = "CA" 'Build SOAPEnvelope SOAPEnvelope = " " & _ " " & _ " " & _ " " & "9999" & "" & _ "
" & strAddress & "
" & _ " " & strCity & "" & _ " " & strState & "" & _ "
" & _ "
" & _ "
" xmlInit = "" SOAPEnvelope = xmlInit & SOAPEnvelope BuildSoapEnvelopeSmall = SOAPEnvelope Debug.Print BuildSoapEnvelopeSmall End Function Function SubmitFormSmall(strAddress As String, _ strCity As String, strState As String) As String 'returns Address Zip Code 'Submit Soap Envelope to ASMX net Server Page 'sample call '?SubmitFormSmall ("1151 Marina Village","Alameda", "CA") '? SubmitFormSmall("Microsoft", "Redmond", "WA") Dim objXMLHTTP As New MSXML2.XMLHTTP Dim HTMLResponse As String Dim SoapResponse As String Dim SoapRequest As String Dim objXMLDOM As MSXML2.DOMDocument Set objStyle = New DOMDocument Set objXMLDOM = New DOMDocument objXMLDOM.async = False 'Send SOAP Request Set objXMLHTTP = New MSXML2.XMLHTTP ' objXMLHTTP.setRequestHeader "Content-Type", "text/xml" objXMLHTTP.Open "POST", "http://webservices.eraserver.net/zipcoderesolver/zi" & _ "pcoderesolver.asmx", False objXMLHTTP.setRequestHeader "SOAPAction", "http://webservices.eraserver.net/" & _ "FullZipCode " objXMLHTTP.setRequestHeader "Content-Type", "text/xml" 'On Error Resume Next objXMLHTTP.send BuildSoapEnvelopeSmall(strAddress, _ strCity, strState) MsgBox "XML Status=" & objXMLHTTP.status If (objXMLHTTP.status <> 200) Then 'SoapResponse.innerHTML = objXMLHTTP.responseText Debug.Print "Error=" & objXMLHTTP.responseText Else 'Show SOAP Response MsgBox "returned=" & objXMLHTTP.responseXML.xml Debug.Print "returned=" & objXMLHTTP.responseXML.xml objXMLDOM.loadXML (objXMLHTTP.responseXML.xml) 'Translate SOAP Response from xml and show response Dim strLoginResult As String strLoginResult = objXMLDOM.selectSingleNode("soap:Envelope").xml Debug.Print "xml=" & strLoginResult strLoginResult = objXMLDOM.selectSingleNode _ ("soap:Envelope/soap:Body/FullZipCodeResponse/FullZipCodeResult").xml Debug.Print "text=" & strLoginResult strLoginResult = objXMLDOM.selectSingleNode _ ("soap:Envelope/soap:Body/FullZipCodeResponse/FullZipCodeResult").nodeTypedValue Debug.Print "Zip code value=" & strLoginResult 'If the zip + 4 code all zeroes address not found End If SubmitFormSmall = strLoginResult End Function MastercafeCTV wrote: >Hi group, we are searching information about SOAP to include on an >application for POS (Point of sale). We are trying to put a service to >credit card for pay the bill. > >Thank you very much > >Juan > > >=========================================== >MASTERCAFE S.L. NIF - B 82.617.614 >Juan Men?ndez Crespo >Plaza Puerta de Europa 2, 1-D (33011 Oviedo) >www.mastercafe.com >info at mastercafe.com >=========================================== >El contenido del presente correo es privado. Todos los archivos adjuntos han >sido revisados y escaneados con McAfee VirusScan 8. Solo ser?n v?lidos >aquellos archivos que est?n identificados en el cuerpo del correo y que se >describa su composici?n y contenido del mismo. > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Tue Dec 28 12:58:33 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 13:58:33 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) In-Reply-To: <000401c4ece9$c78df180$de1811d8@danwaters> Message-ID: <003701c4ed0f$3d9f02e0$0300a8c0@ColbyM6805> I cannot count the number of times I've had to work on databases with no naming convention. So I go to find the people table (no tbl of course) and there are forms named people, queries named people, combos named people, reports named people. My rates go up 50% if I have to deal with that. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) John, You've really thought this through! I will no longer give FK's the same name as the primary key. I do one thing for a specific reason. When naming sub forms or reports they go like this: frmPeople or frmPeopleMain, and frmPeopleSub. I do this so that all the People related forms are adjacent in the database window. Something else I do that is to almost never use an abbreviation in a field, variable, control, or label name. This allows me or someone else to pretty much be able to read the code to see what's happening without my having to put in explanatory comments. It seems that I take more time writing and modifying comments than I do writing code, so minimizing comments is good. Also, when I can read code, I cannot misinterpret what is happening. My names could look like: tblPeopleMain tblPeopleSub lblDesignEngineer txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field name = DesignEngineerApproval dteDesignEngineer - field name = DesignEngineerDate stgDesignEngineer varDesignEngineer . . . . and so on. You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, December 27, 2004 8:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Tue Dec 28 13:02:03 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 28 Dec 2004 20:02:03 +0100 Subject: [AccessD] Vba with SOAP experiences In-Reply-To: <41D1A38C.9020504@shaw.ca> Message-ID: <001601c4ed0f$b859c600$0500a8c0@masterserv> Great, thank you very much, we try to study this and check this information. Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: martes, 28 de diciembre de 2004 19:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Vba with SOAP experiences Since MS is downgrading (or whatever metaphor is in vogue today, for no support) their soap toolkits, they are trying to force everything to dotNet web services. You could download Web Service References Tool 2.0 from MS and run with Access 2003. Not sure if it runs with lower versions. You could run with 2003 generate the classes then put them in say Access XP or 2000 If using MS, I might go with Simon Fell's Pocket Soap toolkit, he had his version out a year before Microsoft's tollkit appeared. It works for Java and Pocket Pc's http://www.pocketsoap.com If it is a simple web service say just credit card verification against an asmx or wsdl file, you might get away with just building your own soap mesage and envelope in xml and sending via xmlhttp then parsing the response. Needs a lot of xml and soap basic knowledege to handle errors. You build your Soap envelope and message by looking at the wsdl file. easier if they have Disco (Discovery) service. PS a lot of vendors describe their web service as SOAP but it isn't even close to standard. I looked at Amazon 18 months ago and they were way off. This will work with Access 97 if web service still up. Dim objStyle As MSXML2.DOMDocument Dim objXMLDOM As MSXML2.DOMDocument Const checked As Boolean = True Function BuildSoapEnvelopeSmall(strAddress As String, _ strCity As String, strState As String) As String 'Function builds the SOAP Envelope Dim SOAPEnvelope As String Dim xmlInit As String ' POST /zipcoderesolver/zipcoderesolver.asmx HTTP/1.1 'Host: webservices.eraserver.net 'Content-Type: text/xml; charset=utf-8 'Content -length: length 'SOAPAction: "http://webservices.eraserver.net/FullZipCode" ' 'strAddress = "Microsoft" 'strCity = "Redmond" 'strState = "WA" 'strAddress = "1151 Marina Village" 'strCity = "Alameda" 'strState = "CA" 'Build SOAPEnvelope SOAPEnvelope = " " & _ " " & _ " " & _ " " & "9999" & "" & _ "
" & strAddress & "
" & _ " " & strCity & "" & _ " " & strState & "" & _ "
" & _ "
" & _ "
" xmlInit = "" SOAPEnvelope = xmlInit & SOAPEnvelope BuildSoapEnvelopeSmall = SOAPEnvelope Debug.Print BuildSoapEnvelopeSmall End Function Function SubmitFormSmall(strAddress As String, _ strCity As String, strState As String) As String 'returns Address Zip Code 'Submit Soap Envelope to ASMX net Server Page 'sample call '?SubmitFormSmall ("1151 Marina Village","Alameda", "CA") '? SubmitFormSmall("Microsoft", "Redmond", "WA") Dim objXMLHTTP As New MSXML2.XMLHTTP Dim HTMLResponse As String Dim SoapResponse As String Dim SoapRequest As String Dim objXMLDOM As MSXML2.DOMDocument Set objStyle = New DOMDocument Set objXMLDOM = New DOMDocument objXMLDOM.async = False 'Send SOAP Request Set objXMLHTTP = New MSXML2.XMLHTTP ' objXMLHTTP.setRequestHeader "Content-Type", "text/xml" objXMLHTTP.Open "POST", "http://webservices.eraserver.net/zipcoderesolver/zi" & _ "pcoderesolver.asmx", False objXMLHTTP.setRequestHeader "SOAPAction", "http://webservices.eraserver.net/" & _ "FullZipCode " objXMLHTTP.setRequestHeader "Content-Type", "text/xml" 'On Error Resume Next objXMLHTTP.send BuildSoapEnvelopeSmall(strAddress, _ strCity, strState) MsgBox "XML Status=" & objXMLHTTP.status If (objXMLHTTP.status <> 200) Then 'SoapResponse.innerHTML = objXMLHTTP.responseText Debug.Print "Error=" & objXMLHTTP.responseText Else 'Show SOAP Response MsgBox "returned=" & objXMLHTTP.responseXML.xml Debug.Print "returned=" & objXMLHTTP.responseXML.xml objXMLDOM.loadXML (objXMLHTTP.responseXML.xml) 'Translate SOAP Response from xml and show response Dim strLoginResult As String strLoginResult = objXMLDOM.selectSingleNode("soap:Envelope").xml Debug.Print "xml=" & strLoginResult strLoginResult = objXMLDOM.selectSingleNode _ ("soap:Envelope/soap:Body/FullZipCodeResponse/FullZipCodeResult").xml Debug.Print "text=" & strLoginResult strLoginResult = objXMLDOM.selectSingleNode _ ("soap:Envelope/soap:Body/FullZipCodeResponse/FullZipCodeResult").nodeTypedV alue Debug.Print "Zip code value=" & strLoginResult 'If the zip + 4 code all zeroes address not found End If SubmitFormSmall = strLoginResult End Function MastercafeCTV wrote: >Hi group, we are searching information about SOAP to include on an >application for POS (Point of sale). We are trying to put a service to >credit card for pay the bill. > >Thank you very much > >Juan > > >=========================================== >MASTERCAFE S.L. NIF - B 82.617.614 >Juan Men?ndez Crespo >Plaza Puerta de Europa 2, 1-D (33011 Oviedo) www.mastercafe.com >info at mastercafe.com >=========================================== >El contenido del presente correo es privado. Todos los archivos adjuntos han >sido revisados y escaneados con McAfee VirusScan 8. Solo ser?n v?lidos >aquellos archivos que est?n identificados en el cuerpo del correo y que se >describa su composici?n y contenido del mismo. > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Dec 28 13:21:24 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 13:21:24 -0600 Subject: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) In-Reply-To: <8654425.1104260480240.JavaMail.root@sniper20.securence.com> Message-ID: <001301c4ed12$6c351970$de1811d8@danwaters> Hmmmm . . . How do you find databases like that where you can raise your rates? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 12:59 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) I cannot count the number of times I've had to work on databases with no naming convention. So I go to find the people table (no tbl of course) and there are forms named people, queries named people, combos named people, reports named people. My rates go up 50% if I have to deal with that. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) John, You've really thought this through! I will no longer give FK's the same name as the primary key. I do one thing for a specific reason. When naming sub forms or reports they go like this: frmPeople or frmPeopleMain, and frmPeopleSub. I do this so that all the People related forms are adjacent in the database window. Something else I do that is to almost never use an abbreviation in a field, variable, control, or label name. This allows me or someone else to pretty much be able to read the code to see what's happening without my having to put in explanatory comments. It seems that I take more time writing and modifying comments than I do writing code, so minimizing comments is good. Also, when I can read code, I cannot misinterpret what is happening. My names could look like: tblPeopleMain tblPeopleSub lblDesignEngineer txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field name = DesignEngineerApproval dteDesignEngineer - field name = DesignEngineerDate stgDesignEngineer varDesignEngineer . . . . and so on. You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, December 27, 2004 8:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 28 13:35:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 14:35:05 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) In-Reply-To: <001301c4ed12$6c351970$de1811d8@danwaters> Message-ID: <003e01c4ed14$55423e30$0300a8c0@ColbyM6805> LOL, I don't find databases where I can raise my rates, I find databases where it is such a mess I don't want to work on it. If they are willing to pay more... Usually I find these jobs generally demand a rewrite anyway and I say so. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 2:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Hmmmm . . . How do you find databases like that where you can raise your rates? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 12:59 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) I cannot count the number of times I've had to work on databases with no naming convention. So I go to find the people table (no tbl of course) and there are forms named people, queries named people, combos named people, reports named people. My rates go up 50% if I have to deal with that. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) John, You've really thought this through! I will no longer give FK's the same name as the primary key. I do one thing for a specific reason. When naming sub forms or reports they go like this: frmPeople or frmPeopleMain, and frmPeopleSub. I do this so that all the People related forms are adjacent in the database window. Something else I do that is to almost never use an abbreviation in a field, variable, control, or label name. This allows me or someone else to pretty much be able to read the code to see what's happening without my having to put in explanatory comments. It seems that I take more time writing and modifying comments than I do writing code, so minimizing comments is good. Also, when I can read code, I cannot misinterpret what is happening. My names could look like: tblPeopleMain tblPeopleSub lblDesignEngineer txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field name = DesignEngineerApproval dteDesignEngineer - field name = DesignEngineerDate stgDesignEngineer varDesignEngineer . . . . and so on. You said you use an autoexec macro (I've never used macros in Access). I use an invisible startup form, which calls a list of procedures and functions in a standard module. Do you know of an advantage one way or the other? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, December 27, 2004 8:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Jim, I actually have a very rigorous naming convention that I do follow, religiously. My convention is: I NEVER use special characters in any object name - `~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object name (as well as a space). I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - and of course I don't use macros except for autoexec and autokeys, neither of which can have a mac prefix. I do NOT prefix fields with fld I do NOT put the data type in the field name. I have just had too many instances where the data type changes, and it is a PITA doing the search and replace to make the change. In field names, I use the first two characters of the table name, unless the name is multiple words, in which case I use the first letter of each word. tblPeople = PE tblAutos = AU tblPeopleAutos = PA Etc. I then use an underscore to delineate the end of the table name prefix PE_ PA_ I then use ID for the PK PE_ID PA_ID I use words, sometimes abbreviations for the words PE_LastName or PE_LName Foreign keys are the PK name in the "parent" table, with the underscore removed, and the 'ID' coming first tblPeople PE_ID <<< PE_Lname tblAutos AU_ID <<<< AU_Model AU_Color tblPeopleAutos PA_ID PA_IDPE <<<< PA_IDAU <<<< I place all FKs at the top of the table so that they can be easily found in any table. I "swap" the ID and the table prefix so that it is obvious that a field is a FK. If there is an ID after the underscore, then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. This convention makes it dead simple to work with tables. There is NEVER a field name in two different tables with the same field name, since the table name prefix is always unique. I never get the "can't figure out what table this field comes from" message from the query builder. It is dead simple to look at a FK and "see" what the PK is called in the "parent" table: PA_IDPE << Take the IDPE, swap the ID and PE, and place an underscore between them PE_ID After using this convention for a little while, it "just works" and makes the process of finding relationships between tables a breeze. I have run into a few instances where there are hundreds of tables where I have to maintain a table of prefixes to ensure that there aren't collisions (two tables with the same prefix). In those instances it I usually have to go with more than two characters to denote a table name word. I have used this convention since about 1995 or thereabouts. I have shown many developers how to use it and most of them love it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, December 27, 2004 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view Do you use foreign key field names that are different from the primary key name in the parent tables? What sort of naming convention do you use? I always find it easier to understand a database when I can track fields such as fldFirstName throughout a table structure. However, I must confess I don't religiously follow this naming convention myself. Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, December 25, 2004 12:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query SQL correct but not visible in design view That would explain it. I do not use the table qualifier unless the field name is the same in different tables which is generally not the case in my systems. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, December 25, 2004 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query SQL correct but not visible in design view John, If an SQL statement is put directly in SQL view of QBE, without having first dragged any field into the QBE grid, relevant fields get displayed in the grid only if their names in SELECT clause are qualified by the table name. For example - (a) SELECT * FROM tbl1 - will not show any field in QBE grid. (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE grid. Note - This is as per tests conducted on Access XP running on Win XP. A.D.Tejpal -------------- ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Friday, December 24, 2004 09:04 Subject: [AccessD] Query SQL correct but not visible in design view I am building a SQL statement "on the fly" which essentially compares matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL runs but only the tables and their joins are visible in the QBE grid. There are no fields visible etc. Does anyone understand what causes Access to do this? I have had the same thing occur even with something as simple as a SELECT * from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in the grid. The query executes correctly. Anyone? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Dec 28 13:46:27 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 14:46:27 -0500 Subject: [AccessD] Question about SubForms In-Reply-To: <41D19638.5030901@shaw.ca> References: <0I9F0040P9BQGQ@l-daemon> <41D19638.5030901@shaw.ca> Message-ID: <41D1B813.5060300@rogers.com> I have a tabbed form on which each tab contains a subform. One of these subforms can also be opened independently. It contains a form header which contains a "finder" (i.e. combo-box that does the find-thing). When it's opened as an independent form, I want the header to show, but when opened as a sub-form I want it to be hidden. Unsure of the syntax here. My OnOpen code simply says (so far) If IsSubForm(Me) Then ' various failed attempts go here End If The function IsOpen() is pretty much standard. Check the form's parent.name attribute. But I am unsure how to hide the header given a True response from IsSubForm(). TIA, Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From artful at rogers.com Tue Dec 28 13:57:55 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 14:57:55 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but not visible indesign view) In-Reply-To: <003701c4ed0f$3d9f02e0$0300a8c0@ColbyM6805> References: <003701c4ed0f$3d9f02e0$0300a8c0@ColbyM6805> Message-ID: <41D1BAC3.1020608@rogers.com> Well, JC, I beg to differ. In fact I wrote a SQL Tip for builder.com on this subject, proposing a new convention, and that tip received more responses that any other tip ever published by builder.com. I have grown extremely tired of classic Hungarian notation, because I feel that it increases noise at the expense of signal. I call my new convention Object-Action. It subscribes to most of your rules but insists that the "prefix" become a "suffix" -- the reason for this change may have to do with the fact that by and large I live in the MS-SQL world rather than the MDB world, but still, I like things to sort in an intelligent way -- without having to read past the prefixes before obtaining useful information. This is especially true in AXP, where the Queries tab rolls in views and sprocs within a single tab. I DO NOT want to have to ignore the first N letters in order to read the information. If every single value begins with "tbl" or "vue" or "sproc" then why bother? Make that a suffix instead, so the stuff related to "Customer" sorts alphabetically in the place where I would expect to find it. Having located the object of interest, I can then examine the suffix and determine what sort of object it is. Again, this may pertain more to MS-SQL than Access. But let's suppose that there are 3 objects related to the Customer table: Customer_Select_sproc Customer_Select_udf Customer_Select_vue Customer_tbl In a normal sort they are presented in exactly this way, and assuming that the developer was throrough enough to include description attributes, then I know what I'm dealing with right away. If I need to do something to the customers table, I know exactly where to look, and everything sorts accordingly. Not to say that your convention doesn't work. Merely to say that mine works better. LOL! Arthur John W. Colby wrote: >I cannot count the number of times I've had to work on databases with no >naming convention. So I go to find the people table (no tbl of course) and >there are forms named people, queries named people, combos named people, >reports named people. My rates go up 50% if I have to deal with that. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, December 28, 2004 9:30 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Naming Convention (Query SQL correct but not visible >indesign view) > > >John, > >You've really thought this through! I will no longer give FK's the same >name as the primary key. > >I do one thing for a specific reason. When naming sub forms or reports they >go like this: > >frmPeople or frmPeopleMain, and frmPeopleSub. > >I do this so that all the People related forms are adjacent in the database >window. > >Something else I do that is to almost never use an abbreviation in a field, >variable, control, or label name. This allows me or someone else to pretty >much be able to read the code to see what's happening without my having to >put in explanatory comments. It seems that I take more time writing and >modifying comments than I do writing code, so minimizing comments is good. >Also, when I can read code, I cannot misinterpret what is happening. > >My names could look like: > >tblPeopleMain >tblPeopleSub >lblDesignEngineer >txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - field >name = DesignEngineerApproval dteDesignEngineer - field name = >DesignEngineerDate stgDesignEngineer varDesignEngineer > >. . . . and so on. > >You said you use an autoexec macro (I've never used macros in Access). I >use an invisible startup form, which calls a list of procedures and >functions in a standard module. Do you know of an advantage one way or the >other? > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Monday, December 27, 2004 8:07 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > >Jim, > >I actually have a very rigorous naming convention that I do follow, >religiously. My convention is: > >I NEVER use special characters in any object name - >`~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an object >name (as well as a space). > >I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), tbl/tlkp/tmm, - >and of course I don't use macros except for autoexec and autokeys, neither >of which can have a mac prefix. > >I do NOT prefix fields with fld > >I do NOT put the data type in the field name. I have just had too many >instances where the data type changes, and it is a PITA doing the search and >replace to make the change. > >In field names, I use the first two characters of the table name, unless the >name is multiple words, in which case I use the first letter of each word. > >tblPeople = PE >tblAutos = AU >tblPeopleAutos = PA >Etc. > >I then use an underscore to delineate the end of the table name prefix > >PE_ >PA_ > >I then use ID for the PK > >PE_ID >PA_ID > >I use words, sometimes abbreviations for the words > >PE_LastName or >PE_LName > >Foreign keys are the PK name in the "parent" table, with the underscore >removed, and the 'ID' coming first > >tblPeople >PE_ID <<< >PE_Lname > >tblAutos >AU_ID <<<< >AU_Model >AU_Color > >tblPeopleAutos >PA_ID >PA_IDPE <<<< >PA_IDAU <<<< > >I place all FKs at the top of the table so that they can be easily found in >any table. I "swap" the ID and the table prefix so that it is obvious that >a field is a FK. If there is an ID after the underscore, then the field is >a FK (or the PK of the table). _IDPE, _IDAU etc. > >This convention makes it dead simple to work with tables. There is NEVER a >field name in two different tables with the same field name, since the table >name prefix is always unique. I never get the "can't figure out what table >this field comes from" message from the query builder. > >It is dead simple to look at a FK and "see" what the PK is called in the >"parent" table: > >PA_IDPE << > >Take the IDPE, swap the ID and PE, and place an underscore between them > >PE_ID > >After using this convention for a little while, it "just works" and makes >the process of finding relationships between tables a breeze. > >I have run into a few instances where there are hundreds of tables where I >have to maintain a table of prefixes to ensure that there aren't collisions >(two tables with the same prefix). In those instances it I usually have to >go with more than two characters to denote a table name word. > >I have used this convention since about 1995 or thereabouts. I have shown >many developers how to use it and most of them love it. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Monday, December 27, 2004 11:41 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >Do you use foreign key field names that are different from the primary key >name in the parent tables? What sort of naming convention do you use? I >always find it easier to understand a database when I can track fields such >as fldFirstName throughout a table structure. However, I must confess I >don't religiously follow this naming convention myself. Jim Hale > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Saturday, December 25, 2004 12:40 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >That would explain it. I do not use the table qualifier unless the field >name is the same in different tables which is generally not the case in my >systems. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal >Sent: Saturday, December 25, 2004 12:23 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Query SQL correct but not visible in design view > > >John, > > If an SQL statement is put directly in SQL view of QBE, without having >first dragged any field into the QBE grid, relevant fields get displayed in >the grid only if their names in SELECT clause are qualified by the table >name. > > For example - > (a) SELECT * FROM tbl1 - will not show any field in QBE grid. > (b) SELECT tbl1.* FROM tbl1 - will result in correct display in QBE >grid. > > Note - This is as per tests conducted on Access XP running on Win XP. > >A.D.Tejpal >-------------- > > ----- Original Message ----- > From: John W. Colby > To: 'Access Developers discussion and problem solving' > Sent: Friday, December 24, 2004 09:04 > Subject: [AccessD] Query SQL correct but not visible in design view > > > I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. The SQL >runs but only the tables and their joins are visible in the QBE grid. There >are no fields visible etc. Does anyone understand what causes Access to do > this? > I have had the same thing occur even with something as simple as a SELECT >* from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in >the grid. The query executes correctly. > > Anyone? > > John W. Colby > www.ColbyConsulting.com > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From donald.a.Mcgillivray at mail.sprint.com Tue Dec 28 14:00:20 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Tue, 28 Dec 2004 14:00:20 -0600 Subject: [AccessD] Question about SubForms Message-ID: <988E2AC88CCB54459286C4077DB662F503189D3A@PDAWB03C.ad.sprint.com> Looks like you want to control this from the subform side, but how about doing it on open of the main form: Me.SubForm.Form.FormHeader.Visible = False Tested this in AccessXP and seems to work. HTH, Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, December 28, 2004 11:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Question about SubForms I have a tabbed form on which each tab contains a subform. One of these subforms can also be opened independently. It contains a form header which contains a "finder" (i.e. combo-box that does the find-thing). When it's opened as an independent form, I want the header to show, but when opened as a sub-form I want it to be hidden. Unsure of the syntax here. My OnOpen code simply says (so far) If IsSubForm(Me) Then ' various failed attempts go here End If The function IsOpen() is pretty much standard. Check the form's parent.name attribute. But I am unsure how to hide the header given a True response from IsSubForm(). TIA, Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Dec 28 14:13:47 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Dec 2004 21:13:47 +0100 Subject: [AccessD] Question about SubForms Message-ID: Hi Arthur This works here: Private Sub Form_Open(Cancel As Integer) If IsSubform() Then Me.Section(acHeader).Visible = False End If End Sub However, I don't test for Me.Parent: Private Function IsSubform() As Boolean Static booSubform As Boolean Static lngFormsCount As Long If lngFormsCount = 0 Then lngFormsCount = Forms.Count booSubform = StrComp(Forms(lngFormsCount - 1).Name, Me.Name, vbTextCompare) End If IsSubform = booSubform End Function /gustav >>> artful at rogers.com 28-12-2004 20:46:27 >>> I have a tabbed form on which each tab contains a subform. One of these subforms can also be opened independently. It contains a form header which contains a "finder" (i.e. combo-box that does the find-thing). When it's opened as an independent form, I want the header to show, but when opened as a sub-form I want it to be hidden. Unsure of the syntax here. My OnOpen code simply says (so far) If IsSubForm(Me) Then ' various failed attempts go here End If The function IsOpen() is pretty much standard. Check the form's parent.name attribute. But I am unsure how to hide the header given a True response from IsSubForm(). TIA, Arthur From jwcolby at colbyconsulting.com Tue Dec 28 14:14:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 15:14:56 -0500 Subject: [AccessD] Question about SubForms In-Reply-To: <41D1B813.5060300@rogers.com> Message-ID: <004001c4ed19$e9972aa0$0300a8c0@ColbyM6805> You need to check for me.parent. If that property contains something then it is a subform. If checking the property generates an error then there is no parent. Typically you can do something like: Function IsSubForm(frm as form) as boolean Dim str as string on error resume next str = me.parent.name if err = 0 then IsSubForm = true else IsSubForm = false endif End function This function is "compiled in Outlook" but I use a function pretty much like this so it should run pretty much as is. A subform's parent is a subform control by the way. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, December 28, 2004 2:46 PM To: Access Developers discussion and problem solving Subject: [AccessD] Question about SubForms I have a tabbed form on which each tab contains a subform. One of these subforms can also be opened independently. It contains a form header which contains a "finder" (i.e. combo-box that does the find-thing). When it's opened as an independent form, I want the header to show, but when opened as a sub-form I want it to be hidden. Unsure of the syntax here. My OnOpen code simply says (so far) If IsSubForm(Me) Then ' various failed attempts go here End If The function IsOpen() is pretty much standard. Check the form's parent.name attribute. But I am unsure how to hide the header given a True response from IsSubForm(). TIA, Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 28 14:25:35 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 15:25:35 -0500 Subject: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) In-Reply-To: <41D1BAC3.1020608@rogers.com> Message-ID: <004301c4ed1b$6619e710$0300a8c0@ColbyM6805> Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, December 28, 2004 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) Well, JC, I beg to differ. In fact I wrote a SQL Tip for builder.com on this subject, proposing a new convention, and that tip received more responses that any other tip ever published by builder.com. I have grown extremely tired of classic Hungarian notation, because I feel that it increases noise at the expense of signal. I call my new convention Object-Action. It subscribes to most of your rules but insists that the "prefix" become a "suffix" -- the reason for this change may have to do with the fact that by and large I live in the MS-SQL world rather than the MDB world, but still, I like things to sort in an intelligent way -- without having to read past the prefixes before obtaining useful information. This is especially true in AXP, where the Queries tab rolls in views and sprocs within a single tab. I DO NOT want to have to ignore the first N letters in order to read the information. If every single value begins with "tbl" or "vue" or "sproc" then why bother? Make that a suffix instead, so the stuff related to "Customer" sorts alphabetically in the place where I would expect to find it. Having located the object of interest, I can then examine the suffix and determine what sort of object it is. Again, this may pertain more to MS-SQL than Access. But let's suppose that there are 3 objects related to the Customer table: Customer_Select_sproc Customer_Select_udf Customer_Select_vue Customer_tbl In a normal sort they are presented in exactly this way, and assuming that the developer was throrough enough to include description attributes, then I know what I'm dealing with right away. If I need to do something to the customers table, I know exactly where to look, and everything sorts accordingly. Not to say that your convention doesn't work. Merely to say that mine works better. LOL! Arthur John W. Colby wrote: >I cannot count the number of times I've had to work on databases with >no naming convention. So I go to find the people table (no tbl of >course) and there are forms named people, queries named people, combos >named people, reports named people. My rates go up 50% if I have to deal with that. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, December 28, 2004 9:30 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Naming Convention (Query SQL correct but not >visible indesign view) > > >John, > >You've really thought this through! I will no longer give FK's the >same name as the primary key. > >I do one thing for a specific reason. When naming sub forms or reports >they go like this: > >frmPeople or frmPeopleMain, and frmPeopleSub. > >I do this so that all the People related forms are adjacent in the >database window. > >Something else I do that is to almost never use an abbreviation in a >field, variable, control, or label name. This allows me or someone >else to pretty much be able to read the code to see what's happening >without my having to put in explanatory comments. It seems that I take >more time writing and modifying comments than I do writing code, so >minimizing comments is good. Also, when I can read code, I cannot >misinterpret what is happening. > >My names could look like: > >tblPeopleMain >tblPeopleSub >lblDesignEngineer >txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - >field name = DesignEngineerApproval dteDesignEngineer - field name = >DesignEngineerDate stgDesignEngineer varDesignEngineer > >. . . . and so on. > >You said you use an autoexec macro (I've never used macros in Access). >I use an invisible startup form, which calls a list of procedures and >functions in a standard module. Do you know of an advantage one way or >the other? > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. >Colby >Sent: Monday, December 27, 2004 8:07 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > >Jim, > >I actually have a very rigorous naming convention that I do follow, >religiously. My convention is: > >I NEVER use special characters in any object name - >`~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an >object name (as well as a space). > >I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), >tbl/tlkp/tmm, - and of course I don't use macros except for autoexec >and autokeys, neither of which can have a mac prefix. > >I do NOT prefix fields with fld > >I do NOT put the data type in the field name. I have just had too many >instances where the data type changes, and it is a PITA doing the >search and replace to make the change. > >In field names, I use the first two characters of the table name, >unless the name is multiple words, in which case I use the first letter >of each word. > >tblPeople = PE >tblAutos = AU >tblPeopleAutos = PA >Etc. > >I then use an underscore to delineate the end of the table name prefix > >PE_ >PA_ > >I then use ID for the PK > >PE_ID >PA_ID > >I use words, sometimes abbreviations for the words > >PE_LastName or >PE_LName > >Foreign keys are the PK name in the "parent" table, with the underscore >removed, and the 'ID' coming first > >tblPeople >PE_ID <<< >PE_Lname > >tblAutos >AU_ID <<<< >AU_Model >AU_Color > >tblPeopleAutos >PA_ID >PA_IDPE <<<< >PA_IDAU <<<< > >I place all FKs at the top of the table so that they can be easily >found in any table. I "swap" the ID and the table prefix so that it is >obvious that a field is a FK. If there is an ID after the underscore, >then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. > >This convention makes it dead simple to work with tables. There is >NEVER a field name in two different tables with the same field name, >since the table name prefix is always unique. I never get the "can't >figure out what table this field comes from" message from the query builder. > >It is dead simple to look at a FK and "see" what the PK is called in >the "parent" table: > >PA_IDPE << > >Take the IDPE, swap the ID and PE, and place an underscore between them > >PE_ID > >After using this convention for a little while, it "just works" and >makes the process of finding relationships between tables a breeze. > >I have run into a few instances where there are hundreds of tables >where I have to maintain a table of prefixes to ensure that there >aren't collisions (two tables with the same prefix). In those >instances it I usually have to go with more than two characters to >denote a table name word. > >I have used this convention since about 1995 or thereabouts. I have >shown many developers how to use it and most of them love it. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Monday, December 27, 2004 11:41 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >Do you use foreign key field names that are different from the primary >key name in the parent tables? What sort of naming convention do you >use? I always find it easier to understand a database when I can track >fields such as fldFirstName throughout a table structure. However, I >must confess I don't religiously follow this naming convention myself. >Jim Hale > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Saturday, December 25, 2004 12:40 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >That would explain it. I do not use the table qualifier unless the >field name is the same in different tables which is generally not the >case in my systems. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal >Sent: Saturday, December 25, 2004 12:23 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Query SQL correct but not visible in design view > > >John, > > If an SQL statement is put directly in SQL view of QBE, without >having first dragged any field into the QBE grid, relevant fields get >displayed in the grid only if their names in SELECT clause are >qualified by the table name. > > For example - > (a) SELECT * FROM tbl1 - will not show any field in QBE grid. > (b) SELECT tbl1.* FROM tbl1 - will result in correct display in >QBE grid. > > Note - This is as per tests conducted on Access XP running on Win > XP. > >A.D.Tejpal >-------------- > > ----- Original Message ----- > From: John W. Colby > To: 'Access Developers discussion and problem solving' > Sent: Friday, December 24, 2004 09:04 > Subject: [AccessD] Query SQL correct but not visible in design view > > > I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. >The SQL runs but only the tables and their joins are visible in the QBE >grid. There are no fields visible etc. Does anyone understand what >causes Access to do > this? > I have had the same thing occur even with something as simple as a SELECT >* from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in >the grid. The query executes correctly. > > Anyone? > > John W. Colby > www.ColbyConsulting.com > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 28 15:01:01 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 13:01:01 -0800 Subject: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Message-ID: I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, December 28, 2004 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Naming Convention (Query SQL correct but not visibleindesign view) Well, JC, I beg to differ. In fact I wrote a SQL Tip for builder.com on this subject, proposing a new convention, and that tip received more responses that any other tip ever published by builder.com. I have grown extremely tired of classic Hungarian notation, because I feel that it increases noise at the expense of signal. I call my new convention Object-Action. It subscribes to most of your rules but insists that the "prefix" become a "suffix" -- the reason for this change may have to do with the fact that by and large I live in the MS-SQL world rather than the MDB world, but still, I like things to sort in an intelligent way -- without having to read past the prefixes before obtaining useful information. This is especially true in AXP, where the Queries tab rolls in views and sprocs within a single tab. I DO NOT want to have to ignore the first N letters in order to read the information. If every single value begins with "tbl" or "vue" or "sproc" then why bother? Make that a suffix instead, so the stuff related to "Customer" sorts alphabetically in the place where I would expect to find it. Having located the object of interest, I can then examine the suffix and determine what sort of object it is. Again, this may pertain more to MS-SQL than Access. But let's suppose that there are 3 objects related to the Customer table: Customer_Select_sproc Customer_Select_udf Customer_Select_vue Customer_tbl In a normal sort they are presented in exactly this way, and assuming that the developer was throrough enough to include description attributes, then I know what I'm dealing with right away. If I need to do something to the customers table, I know exactly where to look, and everything sorts accordingly. Not to say that your convention doesn't work. Merely to say that mine works better. LOL! Arthur John W. Colby wrote: >I cannot count the number of times I've had to work on databases with >no naming convention. So I go to find the people table (no tbl of >course) and there are forms named people, queries named people, combos >named people, reports named people. My rates go up 50% if I have to deal with that. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, December 28, 2004 9:30 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Naming Convention (Query SQL correct but not >visible indesign view) > > >John, > >You've really thought this through! I will no longer give FK's the >same name as the primary key. > >I do one thing for a specific reason. When naming sub forms or reports >they go like this: > >frmPeople or frmPeopleMain, and frmPeopleSub. > >I do this so that all the People related forms are adjacent in the >database window. > >Something else I do that is to almost never use an abbreviation in a >field, variable, control, or label name. This allows me or someone >else to pretty much be able to read the code to see what's happening >without my having to put in explanatory comments. It seems that I take >more time writing and modifying comments than I do writing code, so >minimizing comments is good. Also, when I can read code, I cannot >misinterpret what is happening. > >My names could look like: > >tblPeopleMain >tblPeopleSub >lblDesignEngineer >txtDesignEngineer - field name = DesignEngineer chkDesignEngineer - >field name = DesignEngineerApproval dteDesignEngineer - field name = >DesignEngineerDate stgDesignEngineer varDesignEngineer > >. . . . and so on. > >You said you use an autoexec macro (I've never used macros in Access). >I use an invisible startup form, which calls a list of procedures and >functions in a standard module. Do you know of an advantage one way or >the other? > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. >Colby >Sent: Monday, December 27, 2004 8:07 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > >Jim, > >I actually have a very rigorous naming convention that I do follow, >religiously. My convention is: > >I NEVER use special characters in any object name - >`~!@#$%^&*()_-+=|\}]{["':;?/>.<,|\ are all forbidden characters in an >object name (as well as a space). > >I ALWAYS prefix objects - frm/sfrm, rpt/srpt, qry (or qxx), >tbl/tlkp/tmm, - and of course I don't use macros except for autoexec >and autokeys, neither of which can have a mac prefix. > >I do NOT prefix fields with fld > >I do NOT put the data type in the field name. I have just had too many >instances where the data type changes, and it is a PITA doing the >search and replace to make the change. > >In field names, I use the first two characters of the table name, >unless the name is multiple words, in which case I use the first letter >of each word. > >tblPeople = PE >tblAutos = AU >tblPeopleAutos = PA >Etc. > >I then use an underscore to delineate the end of the table name prefix > >PE_ >PA_ > >I then use ID for the PK > >PE_ID >PA_ID > >I use words, sometimes abbreviations for the words > >PE_LastName or >PE_LName > >Foreign keys are the PK name in the "parent" table, with the underscore >removed, and the 'ID' coming first > >tblPeople >PE_ID <<< >PE_Lname > >tblAutos >AU_ID <<<< >AU_Model >AU_Color > >tblPeopleAutos >PA_ID >PA_IDPE <<<< >PA_IDAU <<<< > >I place all FKs at the top of the table so that they can be easily >found in any table. I "swap" the ID and the table prefix so that it is >obvious that a field is a FK. If there is an ID after the underscore, >then the field is a FK (or the PK of the table). _IDPE, _IDAU etc. > >This convention makes it dead simple to work with tables. There is >NEVER a field name in two different tables with the same field name, >since the table name prefix is always unique. I never get the "can't >figure out what table this field comes from" message from the query builder. > >It is dead simple to look at a FK and "see" what the PK is called in >the "parent" table: > >PA_IDPE << > >Take the IDPE, swap the ID and PE, and place an underscore between them > >PE_ID > >After using this convention for a little while, it "just works" and >makes the process of finding relationships between tables a breeze. > >I have run into a few instances where there are hundreds of tables >where I have to maintain a table of prefixes to ensure that there >aren't collisions (two tables with the same prefix). In those >instances it I usually have to go with more than two characters to >denote a table name word. > >I have used this convention since about 1995 or thereabouts. I have >shown many developers how to use it and most of them love it. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Monday, December 27, 2004 11:41 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >Do you use foreign key field names that are different from the primary >key name in the parent tables? What sort of naming convention do you >use? I always find it easier to understand a database when I can track >fields such as fldFirstName throughout a table structure. However, I >must confess I don't religiously follow this naming convention myself. >Jim Hale > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Saturday, December 25, 2004 12:40 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Query SQL correct but not visible in design view > > >That would explain it. I do not use the table qualifier unless the >field name is the same in different tables which is generally not the >case in my systems. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal >Sent: Saturday, December 25, 2004 12:23 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Query SQL correct but not visible in design view > > >John, > > If an SQL statement is put directly in SQL view of QBE, without >having first dragged any field into the QBE grid, relevant fields get >displayed in the grid only if their names in SELECT clause are >qualified by the table name. > > For example - > (a) SELECT * FROM tbl1 - will not show any field in QBE grid. > (b) SELECT tbl1.* FROM tbl1 - will result in correct display in >QBE grid. > > Note - This is as per tests conducted on Access XP running on Win > XP. > >A.D.Tejpal >-------------- > > ----- Original Message ----- > From: John W. Colby > To: 'Access Developers discussion and problem solving' > Sent: Friday, December 24, 2004 09:04 > Subject: [AccessD] Query SQL correct but not visible in design view > > > I am building a SQL statement "on the fly" which essentially compares >matching fields in two different tables - Tbl1.Lname <> Tbl2.Lname. >The SQL runs but only the tables and their joins are visible in the QBE >grid. There are no fields visible etc. Does anyone understand what >causes Access to do > this? > I have had the same thing occur even with something as simple as a SELECT >* from tbl1 inserted into the SQL view. Tbl1 is displayed, but nothing in >the grid. The query executes correctly. > > Anyone? > > John W. Colby > www.ColbyConsulting.com > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Subscriptions at servicexp.com Tue Dec 28 15:10:53 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Tue, 28 Dec 2004 16:10:53 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <000701c4ecf1$7f139600$de1811d8@danwaters> Message-ID: Thanks Dan, I guess I will need to see if the code below, running inside a referenced mde, will detect the FE screen. On Error Resume Next ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ExpiredTime = ExpiredTime + Me.TimerInterval End If Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 10:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Tue Dec 28 15:17:16 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 28 Dec 2004 16:17:16 -0500 Subject: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) In-Reply-To: Message-ID: <000001c4ed22$9dd576e0$0b08a845@hargrove.internal> Not using some sort of notation at all can get messy really fast. I find myself using a mix of prefixes and suffixes to keep things straight -- particularly in the query tab because when you are working in an Access ADP, there is no distinction between sprocs, views and functions other than by looking at the icon. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From jwcolby at colbyconsulting.com Tue Dec 28 15:17:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 16:17:25 -0500 Subject: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) In-Reply-To: Message-ID: <004601c4ed22$a44569e0$0300a8c0@ColbyM6805> Well.. You and I are the only experts that really matter in our world right? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, December 28, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com From Subscriptions at servicexp.com Tue Dec 28 15:27:06 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Tue, 28 Dec 2004 16:27:06 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: Message-ID: Jim. Apparently Access A2K and AXP (not sure about 2003)have problems running a form timer inside any fairly complex .mdb. I have several fairly complex .mdb's that continue to raise weird anomalies when running a timer. Shut the timer down and every anomaly ends with it.. I don't know why this happens, but I sure need a working solution.... Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, December 28, 2004 1:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Timer Alternitive Robert, <> I don't understand why not. The solutions you suggested are no different in terms of the end result. I have a hidden form I open at the startup of my apps and use for a bunch of purposes, one of which is firing off a timer to support background tasks. The only "tweak" is that I have a flag to turn it off to aid debugging. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 10:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Robert at servicexp.com Tue Dec 28 15:30:17 2004 From: Robert at servicexp.com (Robert Gracie) Date: Tue, 28 Dec 2004 16:30:17 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: <200412281016359.SM03308@ScuzzPaq> Message-ID: Thank You John, I will check it out... Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, December 28, 2004 11:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive JC's Timer class sample on his website should be a good starting point. Www.colbyconsulting.com HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 28 15:43:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 16:43:41 -0500 Subject: [AccessD] Form Timer Alternitive In-Reply-To: Message-ID: <004701c4ed26$4d8b9530$0300a8c0@ColbyM6805> Robert, My timer class allows TIMING how long something runs, not firing a process. Something you said though sure makes me wonder. Would it be possible to have an MDB that is linked to the database needing a process fired. That external mdb has a form timer running which fires every N seconds or whatever. It calls a function in the MDB being controlled. I suspect that the real issue is the single threaded nature of VB not liking being interrupted inside certain types of operations such as a function called in a query for example. It really probably won't matter whether the function is interrupted by a form timer inside the same database or a timer in a form in an external database. It would certainly be good to check out though. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 4:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Thank You John, I will check it out... Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, December 28, 2004 11:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive JC's Timer class sample on his website should be a good starting point. Www.colbyconsulting.com HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 28, 2004 9:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Timer Alternitive Robert, I use a form timer to see if the System Administrator wants to force all users to log off. The form timer opens a recordset once per minute to see if a flag has been set in a small table in the BE. This has worked fine for years. The form timer itself does not try to keep track of the elapsed time. Suggestions: Put a small table into the FE to capture a time. At certain key events run a recordset to update that time. Have a form timer run once per minute(?) to see if you have exceeded your elapsed time - then take the action you need to take. You could also use a form timer in a referenced mde or mdb to look up the elapsed time in the FE table. But, the referenced mde or mdb cannot call a procedure or function in the referencing mdb or mde. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Gracie Sent: Tuesday, December 28, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Timer Alternitive Hello All, Has anyone come up with an alternative to using a form timer? I have great need now to come up with a solution for monitoring inactivity. Access form timers, used in a complex program, seems to reek havoc, and creates a wide variety of anomalies. So I need to come up with an alternative. Does anyone know if these possible solution would work? Solution 1 Create a form timer class in a referenced MDE that will raise events that I can grab in the front .mdb. What I'm not sure is if the timer class code can monitor activity in the .mdb. The other question is if this form timer is going to cause the same anomalies. Solution 2 Using the same basic idea as above, but with a completely separate mde (un-referenced) to monitor activity in the mdb in question. Solution 3 Using Windows API's (Have no clue about this one) for the timer & monitoring. The only thing I do know for sure is, I simply cannot have a form timer running inside of the same mdb. Any idea's? Robert Gracie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Dec 28 15:51:47 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Dec 2004 15:51:47 -0600 Subject: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) In-Reply-To: <5557905.1104268751836.JavaMail.root@sniper17.securence.com> Message-ID: <001901c4ed27$6e6bc300$de1811d8@danwaters> If DA.Expert1.Opinion(varOpinion) = DA.Expert2.Opinion(varOpinion) Then If MsgBox ("Does Everyone Agree?",vbQuestion+vbYesNo) = vbTrue then Call AskQuestionAgain(varOpinion) Else DA.AllExperts(varOpinion).Agreement = False End If End If ... It's just hard to get there! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 3:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) Well.. You and I are the only experts that really matter in our world right? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, December 28, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Dec 28 16:36:04 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 17:36:04 -0500 Subject: [AccessD] Question about SubForms In-Reply-To: References: Message-ID: <41D1DFD4.9050906@rogers.com> Beauty! Thanks, my fave Dane! Arthur Gustav Brock wrote: >Hi Arthur > >This works here: > >Private Sub Form_Open(Cancel As Integer) > > If IsSubform() Then > Me.Section(acHeader).Visible = False > End If > >End Sub > >However, I don't test for Me.Parent: > >Private Function IsSubform() As Boolean > > Static booSubform As Boolean > Static lngFormsCount As Long > > If lngFormsCount = 0 Then > lngFormsCount = Forms.Count > booSubform = StrComp(Forms(lngFormsCount - 1).Name, Me.Name, >vbTextCompare) > End If > > IsSubform = booSubform > >End Function > >/gustav > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From artful at rogers.com Tue Dec 28 16:38:02 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 17:38:02 -0500 Subject: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) In-Reply-To: <000001c4ed22$9dd576e0$0b08a845@hargrove.internal> References: <000001c4ed22$9dd576e0$0b08a845@hargrove.internal> Message-ID: <41D1E04A.5060401@rogers.com> Which is precisely why I moved the prefixes to the suffixes. The icon says it all. Mike & Doris Manning wrote: >Not using some sort of notation at all can get messy really fast. I find >myself using a mix of prefixes and suffixes to keep things straight -- >particularly in the query tab because when you are working in an Access ADP, >there is no distinction between sprocs, views and functions other than by >looking at the icon. > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From cfoust at infostatsystems.com Tue Dec 28 16:55:11 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 14:55:11 -0800 Subject: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) Message-ID: LOL, of course! It's irritating to have to live with a convention that isn't fully rationalized and that the originator isn't yet using because he's not programming in .Net yet. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) Well.. You and I are the only experts that really matter in our world right? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, December 28, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 28 16:56:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 14:56:27 -0800 Subject: [AccessD] Naming Convention (Query SQLcorrectbutnotvisibleindesign view) Message-ID: ROTFL I like the vbYesNo = vbTrue part, especially! Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Tuesday, December 28, 2004 1:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQLcorrectbutnotvisibleindesign view) If DA.Expert1.Opinion(varOpinion) = DA.Expert2.Opinion(varOpinion) Then If MsgBox ("Does Everyone Agree?",vbQuestion+vbYesNo) = vbTrue then Call AskQuestionAgain(varOpinion) Else DA.AllExperts(varOpinion).Agreement = False End If End If ... It's just hard to get there! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 3:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correctbutnotvisibleindesign view) Well.. You and I are the only experts that really matter in our world right? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, December 28, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Naming Convention (Query SQL correct butnotvisibleindesign view) I agree, John. Unfortunately, I lost that battle with respect to objects in our VB.Net environment. Several "experts" wrote books and articles insisting that hungarian was dead, so the experts that insisted it wasn't got ignored. I HATE having to read the entire name of something to discover at the end that it's a form, subform, report, etc. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, December 28, 2004 12:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Convention (Query SQL correct but notvisibleindesign view) Arthur, That of course is a simple matter of preference, not a matter of one is inherently better than the other. In fact I don't much care which is used as long as something is used. I do prefer prefixes because the eye is much faster at finding the beginning of a name than the end of a name. Thus if I have a SQL statement with 5000 characters, I can scan (read) the statement and the objects pop out of every object name. tblPeople is much easier to determine that it is a table than PeopleTbl, and even more so when there are 3 or 4 words. If you are scanning something looking for a reference to a form or a control, it is just plain easier to find those objects when the "xxx" is a prefix. In the end though, for purposes of doing a search using a search tool, it really truly DOESN'T matter. tblPeople or PeopleTbl are equally distinguishable and easily found. If anything can be named People (forms, reports, queries, combos, text boxes etc. then we are talking chaos and an automated search (without an eyeball guiding it) becomes literally impossible. Again, it is a matter of opinion whether to use prefixes or suffixes. I use prefixes, I have tried suffixes and always went back to prefixes, but in the end either distinguish the object by type and that is the most important thing. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 28 16:59:55 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 14:59:55 -0800 Subject: [AccessD] Naming Convention (Query SQLcorrect butnotvisibleindesign view) Message-ID: You only see the icons in the database window. I never rely on icons for anything, especially since they're so small that they all look the same to me. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Tuesday, December 28, 2004 2:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Naming Convention (Query SQLcorrect butnotvisibleindesign view) Which is precisely why I moved the prefixes to the suffixes. The icon says it all. Mike & Doris Manning wrote: >Not using some sort of notation at all can get messy really fast. I >find myself using a mix of prefixes and suffixes to keep things >straight -- particularly in the query tab because when you are working >in an Access ADP, there is no distinction between sprocs, views and >functions other than by looking at the icon. > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Dec 28 17:46:39 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 28 Dec 2004 18:46:39 -0500 Subject: [AccessD] Naming Convention (Query SQLcorrect butnotvisibleindesign view) In-Reply-To: References: Message-ID: <41D1F05F.40404@rogers.com> I guess that either: a) you're an old fart b) you don't have a 19"+ monitor Too bad, poor baby LOL. Charlotte Foust wrote: >You only see the icons in the database window. I never rely on icons >for anything, especially since they're so small that they all look the >same to me. > >Charlotte Foust > > >-----Original Message----- >From: Arthur Fuller [mailto:artful at rogers.com] >Sent: Tuesday, December 28, 2004 2:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Naming Convention (Query SQLcorrect >butnotvisibleindesign view) > > >Which is precisely why I moved the prefixes to the suffixes. The icon >says it all. > >Mike & Doris Manning wrote: > > > >>Not using some sort of notation at all can get messy really fast. I >>find myself using a mix of prefixes and suffixes to keep things >>straight -- particularly in the query tab because when you are working >>in an Access ADP, there is no distinction between sprocs, views and >>functions other than by looking at the icon. >> >>Doris Manning >>Database Administrator >>Hargrove Inc. >>www.hargroveinc.com >> >> >> >> >> >> > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 From cfoust at infostatsystems.com Tue Dec 28 18:17:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 28 Dec 2004 16:17:50 -0800 Subject: [AccessD] Naming Convention(Query SQLcorrect butnotvisibleindesign view) Message-ID: Both! Plus I've been incredibly nearsighted since I was a child. If I don't remember where I lay my glasses down at night, I can't find them again. LOL Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Tuesday, December 28, 2004 3:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Naming Convention(Query SQLcorrect butnotvisibleindesign view) I guess that either: a) you're an old fart b) you don't have a 19"+ monitor Too bad, poor baby LOL. Charlotte Foust wrote: >You only see the icons in the database window. I never rely on icons >for anything, especially since they're so small that they all look the >same to me. > >Charlotte Foust > > >-----Original Message----- >From: Arthur Fuller [mailto:artful at rogers.com] >Sent: Tuesday, December 28, 2004 2:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Naming Convention (Query SQLcorrect >butnotvisibleindesign view) > > >Which is precisely why I moved the prefixes to the suffixes. The icon >says it all. > >Mike & Doris Manning wrote: > > > >>Not using some sort of notation at all can get messy really fast. I >>find myself using a mix of prefixes and suffixes to keep things >>straight -- particularly in the query tab because when you are working >>in an Access ADP, there is no distinction between sprocs, views and >>functions other than by looking at the icon. >> >>Doris Manning >>Database Administrator >>Hargrove Inc. >>www.hargroveinc.com >> >> >> >> >> >> > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Dec 28 19:28:44 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 28 Dec 2004 17:28:44 -0800 Subject: [AccessD] Relationship Issue Message-ID: <000001c4ed45$bf7e5370$6501a8c0@delllaptop> I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jwcolby at colbyconsulting.com Tue Dec 28 20:03:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 28 Dec 2004 21:03:30 -0500 Subject: [AccessD] Relationship Issue In-Reply-To: <000001c4ed45$bf7e5370$6501a8c0@delllaptop> Message-ID: <000001c4ed4a$9b151730$0300a8c0@ColbyM6805> It's done in the actual relationship in the BE. Open the BE. Click Tools / relationships Find the relationship between Employees and stblEmpJobs Dbl click the line for the relationship, or right click and select edit relationship from the right click menu. Click Cascade Delete related records. Hang on to your pants. Deleting records from a database is rarely a good idea. If you are going to do so, then an archive of all affected records is a must. I would doubt that this is the only sub-table of an employee. The client will likely be carving huge chunks of data out of their database every time they delete an old employee. For the rest of eternity you will be hearing "what happened to that record in table XYZ". In my Insurance call center database for example, the employee ID is logged in no fewer than 7 tables - Who is responsible for a specific policy, who created the claim record, diary records, claim event records, claim contacts, claim notes, Policy responsible employee, mail merged letters etc. Deleting any one of those employees cannot be performed without also deleting all the related records in all those tables. MASSIVE pieces of history about the claims would be missing. In fact however it gets worse, the employee cannot be deleted without the claim being deleted. The claim is parent to payment records, ATPs, NCNs etc which do not have an employee ID specifically associated with it. Likewise in this specific case, there is a "who is responsible for this policy" field. Thus deleting the claimant will force deleting the policy, and all the claims under the policy. Deleting a single employee would force deleting thousands of records in dozens of tables. NEVER a good idea, and then ONLY with an archive system in place. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, December 28, 2004 8:29 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Relationship Issue I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Tue Dec 28 20:11:36 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 28 Dec 2004 21:11:36 -0500 Subject: [AccessD] Relationship Issue References: <000001c4ed45$bf7e5370$6501a8c0@delllaptop> Message-ID: William Hindman ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 28, 2004 8:28 PM Subject: [AccessD] Relationship Issue >I have a table Employees and a subtable stblEmpJobs. > > They link on field EmpID > > The link was built when I built and dropped the forms together. The > relationship in the window says one to many ( external ). I need to edit > the > relationship to enforce referential to do permit cascade deletes. > > Any ideas ? > > The customer has signed off they do not want to archive ex employees in > the > system. She wants to pull the paper records > > > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Tue Dec 28 20:23:20 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 28 Dec 2004 21:23:20 -0500 Subject: [AccessD] Relationship Issue References: <000001c4ed45$bf7e5370$6501a8c0@delllaptop> Message-ID: ..ok ...maybe my thinking cap isn't on straight ...but I don't see how what you describe can work ...from what you say you only have two tables and yet you want to enforce referential integrity AND do cascade deletes ...setting aside for the moment my long held animus for cascade deletes, I don't see how you can have referential integrity in the first place, eh? ..in my little world I need a tblEmployees, a tblJobs, and a tblEmpJobs that holds the FK for each job assigned and the FK for each employee it was assigned to ...else I wind up with duplicate Jobs in the tblJobs and/or dupe employees in tblEmployees ...assuming jobs are not unique to employees of course but if so, then why separate tables at all. ..but like I said, its been a mind bending day and maybe I'm not quite seeing the light as well as I should ...if so, I'm sure someone here will point out the error of my ways. William Hindman ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 28, 2004 8:28 PM Subject: [AccessD] Relationship Issue >I have a table Employees and a subtable stblEmpJobs. > > They link on field EmpID > > The link was built when I built and dropped the forms together. The > relationship in the window says one to many ( external ). I need to edit > the > relationship to enforce referential to do permit cascade deletes. > > Any ideas ? > > The customer has signed off they do not want to archive ex employees in > the > system. She wants to pull the paper records > > > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Tue Dec 28 23:00:42 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 28 Dec 2004 21:00:42 -0800 Subject: [AccessD] Relationship Issue In-Reply-To: <000001c4ed4a$9b151730$0300a8c0@ColbyM6805> Message-ID: <000001c4ed63$5cc02ce0$6501a8c0@delllaptop> I am short on time to deadline. Have chosen to allow client to make employee inactive. Then related records just wont show in reports.. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 6:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue It's done in the actual relationship in the BE. Open the BE. Click Tools / relationships Find the relationship between Employees and stblEmpJobs Dbl click the line for the relationship, or right click and select edit relationship from the right click menu. Click Cascade Delete related records. Hang on to your pants. Deleting records from a database is rarely a good idea. If you are going to do so, then an archive of all affected records is a must. I would doubt that this is the only sub-table of an employee. The client will likely be carving huge chunks of data out of their database every time they delete an old employee. For the rest of eternity you will be hearing "what happened to that record in table XYZ". In my Insurance call center database for example, the employee ID is logged in no fewer than 7 tables - Who is responsible for a specific policy, who created the claim record, diary records, claim event records, claim contacts, claim notes, Policy responsible employee, mail merged letters etc. Deleting any one of those employees cannot be performed without also deleting all the related records in all those tables. MASSIVE pieces of history about the claims would be missing. In fact however it gets worse, the employee cannot be deleted without the claim being deleted. The claim is parent to payment records, ATPs, NCNs etc which do not have an employee ID specifically associated with it. Likewise in this specific case, there is a "who is responsible for this policy" field. Thus deleting the claimant will force deleting the policy, and all the claims under the policy. Deleting a single employee would force deleting thousands of records in dozens of tables. NEVER a good idea, and then ONLY with an archive system in place. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, December 28, 2004 8:29 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Relationship Issue I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 28 23:10:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 29 Dec 2004 00:10:51 -0500 Subject: [AccessD] Relationship Issue In-Reply-To: <000001c4ed63$5cc02ce0$6501a8c0@delllaptop> Message-ID: <000201c4ed64$c776ca20$0300a8c0@ColbyM6805> Good idea! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 29, 2004 12:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue I am short on time to deadline. Have chosen to allow client to make employee inactive. Then related records just wont show in reports.. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 6:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue It's done in the actual relationship in the BE. Open the BE. Click Tools / relationships Find the relationship between Employees and stblEmpJobs Dbl click the line for the relationship, or right click and select edit relationship from the right click menu. Click Cascade Delete related records. Hang on to your pants. Deleting records from a database is rarely a good idea. If you are going to do so, then an archive of all affected records is a must. I would doubt that this is the only sub-table of an employee. The client will likely be carving huge chunks of data out of their database every time they delete an old employee. For the rest of eternity you will be hearing "what happened to that record in table XYZ". In my Insurance call center database for example, the employee ID is logged in no fewer than 7 tables - Who is responsible for a specific policy, who created the claim record, diary records, claim event records, claim contacts, claim notes, Policy responsible employee, mail merged letters etc. Deleting any one of those employees cannot be performed without also deleting all the related records in all those tables. MASSIVE pieces of history about the claims would be missing. In fact however it gets worse, the employee cannot be deleted without the claim being deleted. The claim is parent to payment records, ATPs, NCNs etc which do not have an employee ID specifically associated with it. Likewise in this specific case, there is a "who is responsible for this policy" field. Thus deleting the claimant will force deleting the policy, and all the claims under the policy. Deleting a single employee would force deleting thousands of records in dozens of tables. NEVER a good idea, and then ONLY with an archive system in place. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, December 28, 2004 8:29 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Relationship Issue I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Dec 28 23:23:49 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 28 Dec 2004 21:23:49 -0800 Subject: [AccessD] Relationship Issue In-Reply-To: <000201c4ed64$c776ca20$0300a8c0@ColbyM6805> Message-ID: <000101c4ed66$970d60e0$6501a8c0@delllaptop> John, Thanks. Did you get my private email to your account? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 9:11 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue Good idea! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, December 29, 2004 12:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue I am short on time to deadline. Have chosen to allow client to make employee inactive. Then related records just wont show in reports.. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 28, 2004 6:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Relationship Issue It's done in the actual relationship in the BE. Open the BE. Click Tools / relationships Find the relationship between Employees and stblEmpJobs Dbl click the line for the relationship, or right click and select edit relationship from the right click menu. Click Cascade Delete related records. Hang on to your pants. Deleting records from a database is rarely a good idea. If you are going to do so, then an archive of all affected records is a must. I would doubt that this is the only sub-table of an employee. The client will likely be carving huge chunks of data out of their database every time they delete an old employee. For the rest of eternity you will be hearing "what happened to that record in table XYZ". In my Insurance call center database for example, the employee ID is logged in no fewer than 7 tables - Who is responsible for a specific policy, who created the claim record, diary records, claim event records, claim contacts, claim notes, Policy responsible employee, mail merged letters etc. Deleting any one of those employees cannot be performed without also deleting all the related records in all those tables. MASSIVE pieces of history about the claims would be missing. In fact however it gets worse, the employee cannot be deleted without the claim being deleted. The claim is parent to payment records, ATPs, NCNs etc which do not have an employee ID specifically associated with it. Likewise in this specific case, there is a "who is responsible for this policy" field. Thus deleting the claimant will force deleting the policy, and all the claims under the policy. Deleting a single employee would force deleting thousands of records in dozens of tables. NEVER a good idea, and then ONLY with an archive system in place. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, December 28, 2004 8:29 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Relationship Issue I have a table Employees and a subtable stblEmpJobs. They link on field EmpID The link was built when I built and dropped the forms together. The relationship in the window says one to many ( external ). I need to edit the relationship to enforce referential to do permit cascade deletes. Any ideas ? The customer has signed off they do not want to archive ex employees in the system. She wants to pull the paper records JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Wed Dec 29 12:20:36 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 29 Dec 2004 12:20:36 (MET) Subject: [AccessD] error while connecting Message-ID: <200412291120.iBTBKaGC001535@mailhostC.plex.net> Hello Group, i converted a A97 database to A2003. The conversion went ok, no compiling errors. This database is secured by an mdw. When trying to do a mailmerge from a form i am getting an error: 5922, source could not be opened. In the code itself, nothing was changed (except the name of the database, i checked the name several times). The odbc, in the user-DSN, the database, the mdw, the registrationname and password are correct. Also when doing the mailmerge from the form, i get a datalink box, where i fill in the odbc data. This is giving a message that the connection is ok. The error in the code is highlighting the following part: OpenDataSource _ Name:="P:\Cytologie\positieven\" _ & "BeveiligdPOSITIEVEN(XP).mdb", _ ReadOnly:=True, LinkToSource:=True, _ Connection:=strConnect, _ SQLStatement:="SELECT * FROM [Uitvoer], [tblHarts] WHERE Uitvoer.AanvragerID = tblHarts.AanvragerID AND Uitvoer.ControleID = " & Forms![Brief]![veld] & ";" Anybody any idea's Pedro Janssen From Gustav at cactus.dk Wed Dec 29 10:35:53 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 29 Dec 2004 17:35:53 +0100 Subject: [AccessD] ReDim Preserve a multidimensional array Message-ID: Hi all Charlotte reminded recently that a Variant can nicely hold an array. Just had to deal with how to ReDim a multidimensional array for another dimension than the last while preserving the content. You can't do that in VBA (browse the on-line help if in doubt), but here's a workaround: You can simulate it by copying the array via one temporary Variant. Here's an example: Public Sub ArrayCopy() Dim avarA() As Variant Dim avarT As Variant Dim lngX As Long Dim lngY As Long ReDim avarA(0 To 1, 0 To 1) avarA(0, 0) = "AA" avarA(1, 0) = "BA" avarA(0, 1) = "AB" avarA(1, 1) = "BB" Debug.Print UBound(avarA, 1), UBound(avarA, 2) Debug.Print LBound(avarA, 1), LBound(avarA, 2) ' Create copy of array. avarT = avarA() ' ReDim to 10 as Ubound for first dimension and erase array. ReDim avarA(LBound(avarA, 1) To 10, LBound(avarA, 2) To UBound(avarA, 2)) ' Refill array from copy. For lngX = LBound(avarT, 1) To UBound(avarT, 1) For lngY = LBound(avarT, 2) To UBound(avarT, 2) avarA(lngX, lngY) = avarT(lngX, lngY) Next Next Debug.Print UBound(avarA, 1), UBound(avarA, 2) Debug.Print LBound(avarA, 1), LBound(avarA, 2) Debug.Print UBound(avarT, 1), UBound(avarT, 2) Debug.Print LBound(avarT, 1), LBound(avarT, 2) Debug.Print avarA(0, 0) Debug.Print avarA(1, 0) Debug.Print avarA(0, 1) Debug.Print avarA(1, 1) End Sub /gustav From clh at christopherhawkins.com Wed Dec 29 17:04:44 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 29 Dec 2004 16:04:44 -0700 Subject: [AccessD] SQL Server view not updateable in Access? Message-ID: <38ef737e8a804617885fa0c232fcdc81@christopherhawkins.com> A client of mine called me to look at a view in his SQL Server instance.? It is linked in to his Access front-end like a table.? It is also not updateable (he wants to use the view instead of an Access query). OK, I think to myself.? Do all the tables in the view?have keys?? Check.? Does the view have a 'TOP x PERCENT' clause in it?? Nope.? Hmmm.? Then?another idea hits me?- the view tables may have primary keys, but the view itself does not have a key or an index of any kind.? That may be why Access can't update it.? But how would I indicate an index or key column on a view?? I know that if I manually link tables using a DSN, Access will prompt for tables or view when it cannot identify a unique index, but *this* application links to the SQL Server programmatically by creating a TableDef object,?setting the .Connect property to something like "ODBC;DRIVER=SQL Server;SERVER=ServerName;DATABASE=DatabaseName;TABLE=dbo.TableName", then appending the new TableDef to the TableDefs. Is there some parameter I can throw in the connect string to indicate the unique index of the view?? I'm pretty stumped, and my searches of Books Online and Google have left me with nothing. -Christopher- From clh at christopherhawkins.com Wed Dec 29 17:10:24 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 29 Dec 2004 16:10:24 -0700 Subject: [AccessD] re: SQL Server view not updateable in Access? Message-ID: <4a879a32b5fd4209a8d5e22ca139c5c9@christopherhawkins.com> P.S.? I checked permissions too.? The current login has full CRUD rights to the whole database (which is another problem entirely). -Christopher- ---------------------------------------- From: "Christopher Hawkins" Sent: Wednesday, December 29, 2004 4:04 PM To: accessd at databaseadvisors.com Subject: SQL Server view not updateable in Access? A client of mine called me to look at a view in his SQL Server instance.? It is linked in to his Access front-end like a table.? It is also not updateable (he wants to use the view instead of an Access query). OK, I think to myself.? Do all the tables in the view?have keys?? Check.? Does the view have a 'TOP x PERCENT' clause in it?? Nope.? Hmmm.? Then?another idea hits me?- the view tables may have primary keys, but the view itself does not have a key or an index of any kind.? That may be why Access can't update it.? But how would I indicate an index or key column on a view?? I know that if I manually link tables using a DSN, Access will prompt for tables or view when it cannot identify a unique index, but *this* application links to the SQL Server programmatically by creating a TableDef object,?setting the .Connect property to something like "ODBC;DRIVER=SQL Server;SERVER=ServerName;DATABASE=DatabaseName;TABLE=dbo.TableName", then appending the new TableDef to the TableDefs. Is there some parameter I can throw in the connect string to indicate the unique index of the view?? I'm pretty stumped, and my searches of Books Online and Google have left me with nothing. -Christopher- From cyx5 at cdc.gov Thu Dec 30 05:09:34 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 06:09:34 -0500 Subject: [AccessD] re: SQL Server view not updateable in Access? Message-ID: To update the table from Access to SQL, you have to make sure that the key fields defined in the SQL table are all included in the view. Also, check to see if there is a field in the SQL table that is an identity field. That sometimes throws it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Wednesday, December 29, 2004 6:10 PM To: accessd at databaseadvisors.com Subject: [AccessD] re: SQL Server view not updateable in Access? P.S.? I checked permissions too.? The current login has full CRUD rights to the whole database (which is another problem entirely). -Christopher- ---------------------------------------- From: "Christopher Hawkins" Sent: Wednesday, December 29, 2004 4:04 PM To: accessd at databaseadvisors.com Subject: SQL Server view not updateable in Access? A client of mine called me to look at a view in his SQL Server instance.? It is linked in to his Access front-end like a table.? It is also not updateable (he wants to use the view instead of an Access query). OK, I think to myself.? Do all the tables in the view?have keys?? Check.? Does the view have a 'TOP x PERCENT' clause in it?? Nope.? Hmmm.? Then?another idea hits me?- the view tables may have primary keys, but the view itself does not have a key or an index of any kind.? That may be why Access can't update it.? But how would I indicate an index or key column on a view?? I know that if I manually link tables using a DSN, Access will prompt for tables or view when it cannot identify a unique index, but *this* application links to the SQL Server programmatically by creating a TableDef object,?setting the .Connect property to something like "ODBC;DRIVER=SQL Server;SERVER=ServerName;DATABASE=DatabaseName;TABLE=dbo.TableName", then appending the new TableDef to the TableDefs. Is there some parameter I can throw in the connect string to indicate the unique index of the view?? I'm pretty stumped, and my searches of Books Online and Google have left me with nothing. -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 30 05:09:54 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 30 Dec 2004 12:09:54 +0100 Subject: [AccessD] Creating controls on a form table data based Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B568D@stekelbes.ithelps.local> Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Dec 30 05:33:02 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 30 Dec 2004 12:33:02 +0100 Subject: [AccessD] Creating controls on a form table data based Message-ID: Hi Erwin That's what I thought. But then you could have a main form with a listbox with the questions themself (and perhaps a summary of the answers) listed and, say, 10 questions visible at a time. And a subform or popup which displays the selected question in full and editable. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 12:09:54 >>> No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin From cyx5 at cdc.gov Thu Dec 30 05:34:50 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 06:34:50 -0500 Subject: [AccessD] Creating controls on a form table data based Message-ID: We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Dec 30 06:54:41 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 30 Dec 2004 07:54:41 -0500 Subject: [AccessD] Excel object model. Message-ID: <916187228923D311A6FE00A0CC3FAA305BBC74@ADGSERVER> Hi all, I'm trying to format a small range of cells. I want to set the format on a row-by-row basis. Basically, I am building a report from Access into an Excel spreadsheet. I am accessing the range like this With .worksheets(1).Range(.worksheets(1).cells(l, 3), .worksheets(1).cells(l, 5)) End With Does anyone know what method(s)/properties I need to use to set the range's number of decimals to display, as standard number, and as a percent? I am currently looking for this information, but if anyone already knows, it would greatly speed up my work. Thanks, Bobby From bheid at appdevgrp.com Thu Dec 30 07:07:17 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 30 Dec 2004 08:07:17 -0500 Subject: [AccessD] Excel object model. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A7A021@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBC75@ADGSERVER> Ok, I found the numberformat property which will take care of the standard number and percent formats. Now I am still looking for the decimal places. I am also looking for the property that will let me right justify text in a cell. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, December 30, 2004 7:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel object model. Hi all, I'm trying to format a small range of cells. I want to set the format on a row-by-row basis. Basically, I am building a report from Access into an Excel spreadsheet. I am accessing the range like this With .worksheets(1).Range(.worksheets(1).cells(l, 3), .worksheets(1).cells(l, 5)) End With Does anyone know what method(s)/properties I need to use to set the range's number of decimals to display, as standard number, and as a percent? I am currently looking for this information, but if anyone already knows, it would greatly speed up my work. Thanks, Bobby From jwcolby at colbyconsulting.com Thu Dec 30 07:17:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 30 Dec 2004 08:17:30 -0500 Subject: [AccessD] Donations for relief efforts Message-ID: <001101c4ee71$ee336fc0$0300a8c0@ColbyM6805> For anyone interested, you can make donations to the Red Cross for the tsunami relief effort at: https://www.redcross.org/donate/donation-form.asp You can also Google relief donation and similar phrases if you prefer to make donations to some other organization. This event has overwhelmed everyone's ability to respond and your donation to the organization of your choice will literally save lives. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bheid at appdevgrp.com Thu Dec 30 08:17:26 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 30 Dec 2004 09:17:26 -0500 Subject: [AccessD] Excel object model. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A7A025@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBC77@ADGSERVER> I have found the information as that I needed. If anyone is interested, I'll sum up the information in another email after I finish what I am working on. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, December 30, 2004 8:07 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Excel object model. Ok, I found the numberformat property which will take care of the standard number and percent formats. Now I am still looking for the decimal places. I am also looking for the property that will let me right justify text in a cell. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, December 30, 2004 7:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel object model. Hi all, I'm trying to format a small range of cells. I want to set the format on a row-by-row basis. Basically, I am building a report from Access into an Excel spreadsheet. I am accessing the range like this With .worksheets(1).Range(.worksheets(1).cells(l, 3), .worksheets(1).cells(l, 5)) End With Does anyone know what method(s)/properties I need to use to set the range's number of decimals to display, as standard number, and as a percent? I am currently looking for this information, but if anyone already knows, it would greatly speed up my work. Thanks, Bobby From Erwin.Craps at ithelps.be Thu Dec 30 08:47:22 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 30 Dec 2004 15:47:22 +0100 Subject: [AccessD] Creating controls on a form table data based Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B568F@stekelbes.ithelps.local> I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 30 08:55:47 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 09:55:47 -0500 Subject: [AccessD] Creating controls on a form table data based Message-ID: Yikes. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 9:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Thu Dec 30 09:26:50 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 30 Dec 2004 15:26:50 -0000 Subject: [AccessD] Creating controls on a form table data based Message-ID: <61F915314798D311A2F800A0C9C8318805CED98C@dibble.observatory.donnslaw.co.uk> I presume you will hold the definitions for each control in a couple of tables (one for controls one for drop-downs with answer choices?) We have a system here which allows user-defined fields in a similar way. The 'controls' table looks a bit like this: Detail ID | Label | Type (Number, Text, Flag, Value) | Mandatory Y/N And for those which are type Text you can add rows to a second table to create combos: Detail ID (FK) | Code | Description I didn't design it, but even so it works OK! :P How about tabs instead of new forms? Then your users can assign each new control to a tab and keep control without you having to build new code on the fly. Good luck! Roz -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: 30 December 2004 14:47 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From Erwin.Craps at ithelps.be Thu Dec 30 09:39:14 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 30 Dec 2004 16:39:14 +0100 Subject: [AccessD] Creating controls on a form table data based Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5690@stekelbes.ithelps.local> Good suggestion, hadn't tought about tabs. At first this was not an option because for some reasons but now I'm rewriting it to have a maximum on questions per form independent from the main groups (questions are divided in to Main groups). A main group can hold 1 or x number of questions. So now I rewriting for max questions per form I can put it onto a tab page and just call them page 1, 2 3. The advantage I will only need to delete and create one form avoiding database bloat and probably somewhat faster. I will still need to create the form on the fly, but I taking in account that when no changes have been made to the questions and posible answers/choices I will not recreate the form. Wow, the form will probably only created on the fly a couple of times a year which is good for speed. When finisched I will probably share this code with the group. I wouldn't wish this to my worst enimy :-) Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke Sent: Thursday, December 30, 2004 4:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Creating controls on a form table data based I presume you will hold the definitions for each control in a couple of tables (one for controls one for drop-downs with answer choices?) We have a system here which allows user-defined fields in a similar way. The 'controls' table looks a bit like this: Detail ID | Label | Type (Number, Text, Flag, Value) | Mandatory Y/N And for those which are type Text you can add rows to a second table to create combos: Detail ID (FK) | Code | Description I didn't design it, but even so it works OK! :P How about tabs instead of new forms? Then your users can assign each new control to a tab and keep control without you having to build new code on the fly. Good luck! Roz -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: 30 December 2004 14:47 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Thu Dec 30 09:51:37 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 30 Dec 2004 10:51:37 -0500 Subject: [AccessD] Dealing with References across versions In-Reply-To: References: Message-ID: <41D42409.4070906@rogers.com> I wasn't sure how else to title this. I know that it's been dealt with in the past, but I can't remember under which topic. Here's the issue. I develop the app under Office 2002. Some users run Office 2000, some 2002 and one 2003. I make use of both Outlook and Word in various parts of the app. Then on various machines I get busted because the reference is to Outlook 10 and they're running 9, etc. I seem to recall that there is a "late binding" solution to this, but that's all I remember. TIA, Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 From CMackin at quiznos.com Thu Dec 30 09:56:35 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 30 Dec 2004 08:56:35 -0700 Subject: [AccessD] Dealing with References across versions Message-ID: Late binding simply means that when you open an Outlook Object (or any other Automation Object) your object variable is: Dim objOtl as Object Instead of Early Binding: Dim otlApp as Outlook.Application If you use early binding during development you gain the advantage of intellisense in working with the object model, then you can change it to late binding by re-dimming the objects and clearing the reference to Outlook. THere's the brief version. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Thursday, December 30, 2004 8:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] Dealing with References across versions I wasn't sure how else to title this. I know that it's been dealt with in the past, but I can't remember under which topic. Here's the issue. I develop the app under Office 2002. Some users run Office 2000, some 2002 and one 2003. I make use of both Outlook and Word in various parts of the app. Then on various machines I get busted because the reference is to Outlook 10 and they're running 9, etc. I seem to recall that there is a "late binding" solution to this, but that's all I remember. TIA, Arthur > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Dec 30 10:01:37 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 30 Dec 2004 11:01:37 -0500 Subject: [AccessD] Dealing with References across versions In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A7A060@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBC7B@ADGSERVER> Arthur, Look up GetObject to find out information on late binding. To open a particular Excel spreadsheet instance, I am using this: dim xlApp as object Set xlApp = GetObject(strPath & "somefile.xls") Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, December 30, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] Dealing with References across versions I wasn't sure how else to title this. I know that it's been dealt with in the past, but I can't remember under which topic. Here's the issue. I develop the app under Office 2002. Some users run Office 2000, some 2002 and one 2003. I make use of both Outlook and Word in various parts of the app. Then on various machines I get busted because the reference is to Outlook 10 and they're running 9, etc. I seem to recall that there is a "late binding" solution to this, but that's all I remember. TIA, Arthur From markamatte at hotmail.com Thu Dec 30 10:14:38 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 30 Dec 2004 16:14:38 +0000 Subject: [AccessD] Creating controls on a form table data based Message-ID: Erwin, I've done something similar in 2 different apps. Both were done dynamically. Both customers can add questions and answers to the app without needing something done to the code. Here are the 2 approaches I took: 1st approach: I used subforms on a tab control. Each subform was set to continuous. In this approach the answers were predefined. Tab1 answers were 1,2,3,NA...Tab2 answers were Yes,No,NA...tab 3 answers were Sometimes, always,never,most, etc. When the user added a new question, they must select what tab they want it to appear on...where the answers were already set up. 2nd approach: This was an order form...the goal was to pick a product, then the attributes, and then the attribute values. The problem was that some attribute values had a specific limit, others would need to be free text but they would probably type the same thing over and over again, and the third was basically random descriptive words or numbers. Again I used subforms set to continuous, 3 this time...each set up with a different kind of answer (attribute value) box. (the words in quotes are just titles I chose for the explanation to the customer)The first was just a text box ('FreeText')...the second was a combo ('DropDown' that used its own source to populate)...and the third was a combo ('LimitToList' used an attribute table to populate and was limited to the list). So now when the customer adds a new product or attribute to the app he has to decide what type of attribute they are adding (FreeText,DropDown, or LimitToList) and the app places the new in the right category...and of course if they chose LimitToList...the app prompted them for the acceptable choices. Don't know if this helps at all...but it sounded similar. Each time I just separated my questions by answer type...if I had 4 answer types...I ended up with 4 subforms...and so on. The benefit of this is I could walk away after they got up and running, unless something just broke. Good Luck, Mark A. Matte >From: "Nicholson, Karen" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] Creating controls on a form table data based >Date: Thu, 30 Dec 2004 09:55:47 -0500 > >Yikes. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - >IT Helps >Sent: Thursday, December 30, 2004 9:47 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Creating controls on a form table data based > > > >I have 73 question with in total 372 posible choices/answers. >And its a dynamic thing, so questions will be added by the user, and the >forms need to adapt. >Showing a popup per question is not an option because this needs user >interaction (73 times) and slows down te data entry. > >So I dont see any other solution then generating unbound forms on the >spot and add controls (questions, answers, formatting and code) to them. >Each form will have its maximum height depending on the number of >questions/answers, so probably i will end up with 10 forms or so. > >I already noticed that I can not generate a report for this in Access >due to the limit in detailsection height, don't know if creating >sections can help in this. So I supose I will need to generate the >printed report in Word from Access, which is fine for the customer. > >Hehe, tuff nut to crack... > >Erwin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >Karen >Sent: Thursday, December 30, 2004 12:35 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Creating controls on a form table data based > >We just did a similar application, I thought that conditional formatting >would be my ticket, but alas, it is not powerful enough to change the >visibility of controls on a continuous form. So, what we did was create >one form for each question. Each question has different fields for the >answer - some are yes no, some need comments, etc. So, we had about 15 >questions. I had one form with 15 forms plopped on the one form. Looks >like a continuous form to the user but it is lots of forms all tied by >the unique identifier. We used one table for the questions and answers, >on the form we just display those relevant to each question. Pain in ze >butt butt it worked. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - >IT Helps >Sent: Thursday, December 30, 2004 6:10 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Creating controls on a form table data based > > >Yes it is an AccessD, my mistake. > >No, not one question at the time. That's just the point. >I first proposed that, but after discussing this with the customer, we >decided that this goes way to slow for data entry at location with a >tablet pc in the hand walking around. > > >Erwin > > >-----Original Message----- >From: dba-tech-bounces at databaseadvisors.com >[mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Thursday, December 30, 2004 11:46 AM >To: dba-tech at databaseadvisors.com >Subject: Re: [dba-Tech] Creating controls on a form table data based > >Hi Erwin > >First, isn't this an AccessD topic? > >Then, couldn't you use a continuous form where you display one question >at a time? >If so, you could define the type of question (yes/no, amount, etc.), the >question itself etc. dynamically. > >/gustav > > >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> >Hi > >I developing an app for a tablet pc, that will be uses by an expert to >estimate real estates. >The target is that the expert gets out his tablet pc in the building and >starts clicking predifined answers to descibe the estate. >Additional comments per answer must be posible (example wooden floor = >yes, comment= slightly damaged) For reasons of speed and overview the >several questions and respective answers need to be on a minimum of >forms to avoid form switching They now use a paper form. >The difficulty lies in the fact that questions and there choices/answers >can vary over time. >So the only solution to achieve this looks like creating forms and their >controls programaticaly on the spot. > >So I got in to creating x number of controls on x number of forms, but >I'm tumbling in to problems like a limited form length, how to entry >code (programaticaly) after a control, etc etc. > >The answers are not straigtforward yes/no but can be any of these Yes/No >(boolean) amount (Euro) number simple text long text (memo) multiple >choice (option group) 1 choice only multiple choice (option group) >multiple choices > >So I'm getting scared not beeing on the right track here, or not posible >in a reasonable time. >Some great webpage on this material would help me with some guidelines >how to achive this. > > >Thanks > > > >Erwin Craps > >Zaakvoerder > >www.ithelps.be/onsgezin > >_______________________________________________ >dba-Tech mailing list >dba-Tech at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-tech >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 30 11:38:10 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 12:38:10 -0500 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. From Gustav at cactus.dk Thu Dec 30 11:53:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 30 Dec 2004 18:53:50 +0100 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: Hi 65 What is the problem? /gustav >>> cyx5 at cdc.gov 30-12-2004 18:38:10 >>> OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. From cfoust at infostatsystems.com Thu Dec 30 11:55:30 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 30 Dec 2004 09:55:30 -0800 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: You already have two tables, but how were you planning to "track" the changes? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, December 30, 2004 9:38 AM To: accessd at databaseadvisors.com Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Dec 30 12:01:48 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 30 Dec 2004 10:01:48 -0800 Subject: [AccessD] Creating controls on a form table data based In-Reply-To: Message-ID: Erwin this sounds very much like a survey app with "branching" that I was thinking of developing at one time. As Mark mentioned, you want to design this so that the user (or owner) sets up the questions using giving all possible scenarios for the answers. Before the user walks in the building he will already know how many bedroom & bathrooms are in the house, correct? If so, he will have to enter those values then the program will have to repeat each form for each room asking the same questions (combos or list boxes): Floortype (Carpet, wood, Tile, laminate) , maybe a cascading combo (Shag, Hard wood, pergo, ceramic, clay...) With proper normalization and enough junction tables, this is quite doable. David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Thursday, December 30, 2004 8:15 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Creating controls on a form table data based Erwin, I've done something similar in 2 different apps. Both were done dynamically. Both customers can add questions and answers to the app without needing something done to the code. Here are the 2 approaches I took: 1st approach: I used subforms on a tab control. Each subform was set to continuous. In this approach the answers were predefined. Tab1 answers were 1,2,3,NA...Tab2 answers were Yes,No,NA...tab 3 answers were Sometimes, always,never,most, etc. When the user added a new question, they must select what tab they want it to appear on...where the answers were already set up. 2nd approach: This was an order form...the goal was to pick a product, then the attributes, and then the attribute values. The problem was that some attribute values had a specific limit, others would need to be free text but they would probably type the same thing over and over again, and the third was basically random descriptive words or numbers. Again I used subforms set to continuous, 3 this time...each set up with a different kind of answer (attribute value) box. (the words in quotes are just titles I chose for the explanation to the customer)The first was just a text box ('FreeText')...the second was a combo ('DropDown' that used its own source to populate)...and the third was a combo ('LimitToList' used an attribute table to populate and was limited to the list). So now when the customer adds a new product or attribute to the app he has to decide what type of attribute they are adding (FreeText,DropDown, or LimitToList) and the app places the new in the right category...and of course if they chose LimitToList...the app prompted them for the acceptable choices. Don't know if this helps at all...but it sounded similar. Each time I just separated my questions by answer type...if I had 4 answer types...I ended up with 4 subforms...and so on. The benefit of this is I could walk away after they got up and running, unless something just broke. Good Luck, Mark A. Matte >From: "Nicholson, Karen" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] Creating controls on a form table data based >Date: Thu, 30 Dec 2004 09:55:47 -0500 > >Yikes. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - >IT Helps >Sent: Thursday, December 30, 2004 9:47 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Creating controls on a form table data based > > > >I have 73 question with in total 372 posible choices/answers. >And its a dynamic thing, so questions will be added by the user, and the >forms need to adapt. >Showing a popup per question is not an option because this needs user >interaction (73 times) and slows down te data entry. > >So I dont see any other solution then generating unbound forms on the >spot and add controls (questions, answers, formatting and code) to them. >Each form will have its maximum height depending on the number of >questions/answers, so probably i will end up with 10 forms or so. > >I already noticed that I can not generate a report for this in Access >due to the limit in detailsection height, don't know if creating >sections can help in this. So I supose I will need to generate the >printed report in Word from Access, which is fine for the customer. > >Hehe, tuff nut to crack... > >Erwin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >Karen >Sent: Thursday, December 30, 2004 12:35 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Creating controls on a form table data based > >We just did a similar application, I thought that conditional formatting >would be my ticket, but alas, it is not powerful enough to change the >visibility of controls on a continuous form. So, what we did was create >one form for each question. Each question has different fields for the >answer - some are yes no, some need comments, etc. So, we had about 15 >questions. I had one form with 15 forms plopped on the one form. Looks >like a continuous form to the user but it is lots of forms all tied by >the unique identifier. We used one table for the questions and answers, >on the form we just display those relevant to each question. Pain in ze >butt butt it worked. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - >IT Helps >Sent: Thursday, December 30, 2004 6:10 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Creating controls on a form table data based > > >Yes it is an AccessD, my mistake. > >No, not one question at the time. That's just the point. >I first proposed that, but after discussing this with the customer, we >decided that this goes way to slow for data entry at location with a >tablet pc in the hand walking around. > > >Erwin > > >-----Original Message----- >From: dba-tech-bounces at databaseadvisors.com >[mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Thursday, December 30, 2004 11:46 AM >To: dba-tech at databaseadvisors.com >Subject: Re: [dba-Tech] Creating controls on a form table data based > >Hi Erwin > >First, isn't this an AccessD topic? > >Then, couldn't you use a continuous form where you display one question >at a time? >If so, you could define the type of question (yes/no, amount, etc.), the >question itself etc. dynamically. > >/gustav > > >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> >Hi > >I developing an app for a tablet pc, that will be uses by an expert to >estimate real estates. >The target is that the expert gets out his tablet pc in the building and >starts clicking predifined answers to descibe the estate. >Additional comments per answer must be posible (example wooden floor = >yes, comment= slightly damaged) For reasons of speed and overview the >several questions and respective answers need to be on a minimum of >forms to avoid form switching They now use a paper form. >The difficulty lies in the fact that questions and there choices/answers >can vary over time. >So the only solution to achieve this looks like creating forms and their >controls programaticaly on the spot. > >So I got in to creating x number of controls on x number of forms, but >I'm tumbling in to problems like a limited form length, how to entry >code (programaticaly) after a control, etc etc. > >The answers are not straigtforward yes/no but can be any of these Yes/No >(boolean) amount (Euro) number simple text long text (memo) multiple >choice (option group) 1 choice only multiple choice (option group) >multiple choices > >So I'm getting scared not beeing on the right track here, or not posible >in a reasonable time. >Some great webpage on this material would help me with some guidelines >how to achive this. > > >Thanks > > > >Erwin Craps > >Zaakvoerder > >www.ithelps.be/onsgezin > >_______________________________________________ >dba-Tech mailing list >dba-Tech at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-tech >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Dec 30 12:06:45 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 30 Dec 2004 13:06:45 -0500 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: My base table is named Parts. This is the bible as to part numbers, descriptions, etc for manufacturers. The manufacturer submits new "assemblies" comprised of parts. If the parts in the new assembly are in the existing *bible* parts and for instance, the description changes, I need an audit table of the parts table showing the part number with its original description, the new description and of course changed by and when. The new assemblies table changes as the manufacturer submits new products for approval. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 12:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Hi 65 What is the problem? /gustav >>> cyx5 at cdc.gov 30-12-2004 18:38:10 >>> OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Dec 30 12:22:31 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 30 Dec 2004 19:22:31 +0100 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Message-ID: Hi 65 Sounds like Inner Join the two tables, compare each set of fields, and write out to the track table any record where at least one set of fields doesn't match. Then, using another query, append to the track table new records not found in the *bible*. The track table could hold a date/time field with default value of Date. /gustav >>> cyx5 at cdc.gov 30-12-2004 19:06:45 >>> My base table is named Parts. This is the bible as to part numbers, descriptions, etc for manufacturers. The manufacturer submits new "assemblies" comprised of parts. If the parts in the new assembly are in the existing *bible* parts and for instance, the description changes, I need an audit table of the parts table showing the part number with its original description, the new description and of course changed by and when. The new assemblies table changes as the manufacturer submits new products for approval. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 12:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tracking Changes in the Year 2004, Almost 2005 Hi 65 What is the problem? /gustav >>> cyx5 at cdc.gov 30-12-2004 18:38:10 >>> OK, so I am losing my mind. I have a QUERY that I am going to run to update the records in my base table with records from my changes table. I want to track which fields were changed from and to. Every example I pull is form based and won't run because SOMEBODY sent me an Access 95 example. Some of you weren't even born in 95. Aughghghgh! Any help is appreciated, as usual. From artful at rogers.com Thu Dec 30 16:42:48 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 30 Dec 2004 17:42:48 -0500 Subject: [AccessD] Tracking Changes in the Year 2004, Almost 2005 In-Reply-To: References: Message-ID: <41D48468.7080706@rogers.com> From you all-too-brief description, I'll guess that T2 and T1 have identical structures, and that any change in T2 supercedes any value in T1 (else it gets WAY complex). But supposing that I'm correct.... One interesting way to do this is is to JOIN the tables and present them columnwise, i.e. T1.C1, T2.C1, T1.C2, T2.C2 etc. so you can readily compare the diffs. You can add criteria to specify that T1.C1 <> T2.C1 and so on, so you only get the rows that are different in some respect. Once you have that and you like the output, it's pretty simple change it to an update query in which you set T1.Cx = T2.Cx. I might be missing the point (wouldn't be the first time), but in my defence your description of the issue was a tad sketchy. Arthur Nicholson, Karen wrote: >OK, so I am losing my mind. I have a QUERY that I am going to run to >update the records in my base table with records from my changes table. >I want to track which fields were changed from and to. Every example I >pull is form based and won't run because SOMEBODY sent me an Access 95 >example. Some of you weren't even born in 95. Aughghghgh! Any help >is appreciated, as usual. > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 From artful at rogers.com Thu Dec 30 16:45:23 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 30 Dec 2004 17:45:23 -0500 Subject: [AccessD] JWC In-Reply-To: References: Message-ID: <41D48503.80700@rogers.com> Yesterday I met the esteemed John W. Colby for the first time. We had lunch and discussed our past lives and so on. I want to assure you all that his code is much more handsome than its author. LOL. Happy New Year, all! Arthur, king of the dorks > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 From andy at minstersystems.co.uk Thu Dec 30 17:18:48 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 30 Dec 2004 23:18:48 -0000 Subject: [AccessD] ReDim Preserve a multidimensional array In-Reply-To: Message-ID: <008501c4eec5$ea86d750$b274d0d5@minster33c3r25> Neat Gustav. Wouldn't have thought of that. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: 29 December 2004 16:36 > To: accessd at databaseadvisors.com > Subject: [AccessD] ReDim Preserve a multidimensional array > > > Hi all > > Charlotte reminded recently that a Variant can nicely hold an array. > > Just had to deal with how to ReDim a multidimensional array > for another dimension than the last while preserving the > content. You can't do that in VBA (browse the on-line help if > in doubt), but here's a workaround: > > You can simulate it by copying the array via one temporary Variant. > > Here's an example: > > Public Sub ArrayCopy() > > Dim avarA() As Variant > Dim avarT As Variant > Dim lngX As Long > Dim lngY As Long > > ReDim avarA(0 To 1, 0 To 1) > > avarA(0, 0) = "AA" > avarA(1, 0) = "BA" > avarA(0, 1) = "AB" > avarA(1, 1) = "BB" > > Debug.Print UBound(avarA, 1), UBound(avarA, 2) > Debug.Print LBound(avarA, 1), LBound(avarA, 2) > > ' Create copy of array. > avarT = avarA() > ' ReDim to 10 as Ubound for first dimension and erase array. > ReDim avarA(LBound(avarA, 1) To 10, LBound(avarA, 2) To > UBound(avarA, > 2)) > ' Refill array from copy. > For lngX = LBound(avarT, 1) To UBound(avarT, 1) > For lngY = LBound(avarT, 2) To UBound(avarT, 2) > avarA(lngX, lngY) = avarT(lngX, lngY) > Next > Next > > Debug.Print UBound(avarA, 1), UBound(avarA, 2) > Debug.Print LBound(avarA, 1), LBound(avarA, 2) > Debug.Print UBound(avarT, 1), UBound(avarT, 2) > Debug.Print LBound(avarT, 1), LBound(avarT, 2) > Debug.Print avarA(0, 0) > Debug.Print avarA(1, 0) > Debug.Print avarA(0, 1) > Debug.Print avarA(1, 1) > > End Sub > > /gustav > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Thu Dec 30 17:20:08 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 30 Dec 2004 23:20:08 -0000 Subject: [AccessD] JWC In-Reply-To: <41D48503.80700@rogers.com> Message-ID: <008601c4eec6$1a65f000$b274d0d5@minster33c3r25> LOL. Happy New Year to the both of you, and the rest of the list. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Arthur Fuller > Sent: 30 December 2004 22:45 > To: Access Developers discussion and problem solving > Subject: [AccessD] JWC > > > Yesterday I met the esteemed John W. Colby for the first time. We had > lunch and discussed our past lives and so on. > > I want to assure you all that his code is much more handsome than its > author. > > LOL. > Happy New Year, all! > > Arthur, king of the dorks > > > > > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Dec 30 18:29:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 30 Dec 2004 19:29:07 -0500 Subject: [AccessD] JWC In-Reply-To: <41D48503.80700@rogers.com> Message-ID: <002101c4eecf$bdb679b0$0300a8c0@ColbyM6805> I think I resemble that remark? ;-0 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, December 30, 2004 5:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] JWC Yesterday I met the esteemed John W. Colby for the first time. We had lunch and discussed our past lives and so on. I want to assure you all that his code is much more handsome than its author. LOL. Happy New Year, all! Arthur, king of the dorks > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Dec 30 20:20:50 2004 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 30 Dec 2004 21:20:50 -0500 Subject: [AccessD] JWC References: <002101c4eecf$bdb679b0$0300a8c0@ColbyM6805> Message-ID: ..hhhmmm ...considering how ugly some of that code has been over the years, we'd best start carrying a stick :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 30, 2004 7:29 PM Subject: RE: [AccessD] JWC >I think I resemble that remark? ;-0 > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Thursday, December 30, 2004 5:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] JWC > > > Yesterday I met the esteemed John W. Colby for the first time. We had > lunch and discussed our past lives and so on. > > I want to assure you all that his code is much more handsome than its > author. > > LOL. > Happy New Year, all! > > Arthur, king of the dorks > >> >> > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Dec 31 04:37:12 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 31 Dec 2004 11:37:12 +0100 Subject: [AccessD] JWC Message-ID: Thanks for the, ehh, warning, Arthur ... sounds like you had a great lunch time. Happy New Year to all! /gustav >>> artful at rogers.com 30-12-2004 23:45:23 >>> Yesterday I met the esteemed John W. Colby for the first time. We had lunch and discussed our past lives and so on. I want to assure you all that his code is much more handsome than its author. LOL. Happy New Year, all! Arthur, king of the dorks From BarbaraRyan at cox.net Fri Dec 31 07:30:19 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 31 Dec 2004 08:30:19 -0500 Subject: [AccessD] OT: Tsunami Relief Message-ID: <002601c4ef3c$df8c3300$0a00a8c0@cx470148a> For those wishing to donate to Tsunami Relief, here are a couple of good sites to evaluate the various charities involved in the effort. Evaluation of charities: www.give.org Forbes list of best charities: http://www.forbes.com/lists/2004/11/23/04charityland.html Some of these charities have administrative & fundraising expenses < 1% (e.g., Direct Relief and MAP Intl) Happy New Year! Barb Ryan From jwcolby at colbyconsulting.com Fri Dec 31 09:43:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 31 Dec 2004 10:43:41 -0500 Subject: [AccessD] JWC In-Reply-To: Message-ID: <000a01c4ef4f$84386600$6c01a8c0@ColbyM6805> You have NO idea! ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, December 30, 2004 9:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] JWC ..hhhmmm ...considering how ugly some of that code has been over the years, we'd best start carrying a stick :) William Hindman ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 30, 2004 7:29 PM Subject: RE: [AccessD] JWC >I think I resemble that remark? ;-0 > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur > Fuller > Sent: Thursday, December 30, 2004 5:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] JWC > > > Yesterday I met the esteemed John W. Colby for the first time. We had > lunch and discussed our past lives and so on. > > I want to assure you all that his code is much more handsome than its > author. > > LOL. > Happy New Year, all! > > Arthur, king of the dorks > >> >> > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Dec 31 11:06:40 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 31 Dec 2004 12:06:40 -0500 Subject: [AccessD] JWC In-Reply-To: <000a01c4ef4f$84386600$6c01a8c0@ColbyM6805> References: <000a01c4ef4f$84386600$6c01a8c0@ColbyM6805> Message-ID: <41D58720.1030600@rogers.com> To be fair, among all this group JWC was the first to see me since I suffered a silly accident at karate class. I walked into a back roundhouse kick that I wasn't expecting -- no, to tell the truth I was expecting it but my attempt to block it missed, and now I'm missing two front teeth. So at the moment, no matter how ugly my code might be, I think I'm uglier. Happy New Year, to one and all. Arthur John W. Colby wrote: >You have NO idea! > >;-) > >John W. Colby >www.ColbyConsulting.com > > > >> >> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 12/30/2004 From tdd-inc at shaw.ca Fri Dec 31 11:16:39 2004 From: tdd-inc at shaw.ca (Technical Designs) Date: Fri, 31 Dec 2004 09:16:39 -0800 Subject: [AccessD] Creating controls on a form table data based In-Reply-To: <61F915314798D311A2F800A0C9C8318805CED98C@dibble.observatory.donnslaw.co.uk> Message-ID: <001d01c4ef5c$807e7f60$7801a8c0@cadcam> I am no expert on this, but my thinking would be... MainForm: MFID | HouseAddress... ect SubForm: which gets created every time... insert your 73 questions into subtable from a basetable SubID | MFID | Question | Answer | Comment | Required Y/N | EditQuestion Y/N Your 73 questions will be EditQuestion = False And Required = True SubForm looks like.. 1 | 1 | Floor type Kitchen | Hard Wood | minor damage | Y | N 2 | 1 | Floor type Livingroom | Carpet | Shag | Y | N ... 74 | 1 | Would I buy this house | Yes | none | N | Y you can base the 'Answer' dropdown selection if you format your questions uniformly. Example - "mat Floor Type" could select all materials from dropdown table. You can even take the first 4 letters and make them disappear You could page through the subform You can have buttons to add new records, go back to the last record you were at or where answer = Null Maybe I'm way off here, and I'm not very good at explaining things sometimes I would appreciate some constructive feedback as I am learning Thanks Happy New Year Phil -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Thursday, December 30, 2004 7:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Creating controls on a form table data based I presume you will hold the definitions for each control in a couple of tables (one for controls one for drop-downs with answer choices?) We have a system here which allows user-defined fields in a similar way. The 'controls' table looks a bit like this: Detail ID | Label | Type (Number, Text, Flag, Value) | Mandatory Y/N And for those which are type Text you can add rows to a second table to create combos: Detail ID (FK) | Code | Description I didn't design it, but even so it works OK! :P How about tabs instead of new forms? Then your users can assign each new control to a tab and keep control without you having to build new code on the fly. Good luck! Roz -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: 30 December 2004 14:47 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based I have 73 question with in total 372 posible choices/answers. And its a dynamic thing, so questions will be added by the user, and the forms need to adapt. Showing a popup per question is not an option because this needs user interaction (73 times) and slows down te data entry. So I dont see any other solution then generating unbound forms on the spot and add controls (questions, answers, formatting and code) to them. Each form will have its maximum height depending on the number of questions/answers, so probably i will end up with 10 forms or so. I already noticed that I can not generate a report for this in Access due to the limit in detailsection height, don't know if creating sections can help in this. So I supose I will need to generate the printed report in Word from Access, which is fine for the customer. Hehe, tuff nut to crack... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, December 30, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Creating controls on a form table data based We just did a similar application, I thought that conditional formatting would be my ticket, but alas, it is not powerful enough to change the visibility of controls on a continuous form. So, what we did was create one form for each question. Each question has different fields for the answer - some are yes no, some need comments, etc. So, we had about 15 questions. I had one form with 15 forms plopped on the one form. Looks like a continuous form to the user but it is lots of forms all tied by the unique identifier. We used one table for the questions and answers, on the form we just display those relevant to each question. Pain in ze butt butt it worked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 30, 2004 6:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Creating controls on a form table data based Yes it is an AccessD, my mistake. No, not one question at the time. That's just the point. I first proposed that, but after discussing this with the customer, we decided that this goes way to slow for data entry at location with a tablet pc in the hand walking around. Erwin -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, December 30, 2004 11:46 AM To: dba-tech at databaseadvisors.com Subject: Re: [dba-Tech] Creating controls on a form table data based Hi Erwin First, isn't this an AccessD topic? Then, couldn't you use a continuous form where you display one question at a time? If so, you could define the type of question (yes/no, amount, etc.), the question itself etc. dynamically. /gustav >>> Erwin.Craps at ithelps.be 30-12-2004 11:16:26 >>> Hi I developing an app for a tablet pc, that will be uses by an expert to estimate real estates. The target is that the expert gets out his tablet pc in the building and starts clicking predifined answers to descibe the estate. Additional comments per answer must be posible (example wooden floor = yes, comment= slightly damaged) For reasons of speed and overview the several questions and respective answers need to be on a minimum of forms to avoid form switching They now use a paper form. The difficulty lies in the fact that questions and there choices/answers can vary over time. So the only solution to achieve this looks like creating forms and their controls programaticaly on the spot. So I got in to creating x number of controls on x number of forms, but I'm tumbling in to problems like a limited form length, how to entry code (programaticaly) after a control, etc etc. The answers are not straigtforward yes/no but can be any of these Yes/No (boolean) amount (Euro) number simple text long text (memo) multiple choice (option group) 1 choice only multiple choice (option group) multiple choices So I'm getting scared not beeing on the right track here, or not posible in a reasonable time. Some great webpage on this material would help me with some guidelines how to achive this. Thanks Erwin Craps Zaakvoerder www.ithelps.be/onsgezin _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 31 15:01:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 31 Dec 2004 16:01:07 -0500 Subject: [AccessD] JWC In-Reply-To: <41D58720.1030600@rogers.com> Message-ID: <000b01c4ef7b$dc2d2ae0$6c01a8c0@ColbyM6805> And I was being soooo good! Although truth be known, the teeth probably wouldn't help a great deal. ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, December 31, 2004 12:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] JWC To be fair, among all this group JWC was the first to see me since I suffered a silly accident at karate class. I walked into a back roundhouse kick that I wasn't expecting -- no, to tell the truth I was expecting it but my attempt to block it missed, and now I'm missing two front teeth. So at the moment, no matter how ugly my code might be, I think I'm uglier. Happy New Year, to one and all. Arthur John W. Colby wrote: >You have NO idea! > >;-) > >John W. Colby >www.ColbyConsulting.com > > > >> >> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 12/30/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Dec 31 15:07:53 2004 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 31 Dec 2004 15:07:53 -0600 Subject: [AccessD] JWC In-Reply-To: <29277711.1104526995803.JavaMail.root@sniper21.securence.com> Message-ID: <000601c4ef7c$cb6259a0$de1811d8@danwaters> The truth be told, we ALL write beautiful code! And as Arthur said, beautiful code means, "Don't go posting your picture here!" Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, December 31, 2004 3:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] JWC And I was being soooo good! Although truth be known, the teeth probably wouldn't help a great deal. ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, December 31, 2004 12:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] JWC To be fair, among all this group JWC was the first to see me since I suffered a silly accident at karate class. I walked into a back roundhouse kick that I wasn't expecting -- no, to tell the truth I was expecting it but my attempt to block it missed, and now I'm missing two front teeth. So at the moment, no matter how ugly my code might be, I think I'm uglier. Happy New Year, to one and all. Arthur John W. Colby wrote: >You have NO idea! > >;-) > >John W. Colby >www.ColbyConsulting.com > > > >> >> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 12/30/2004 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com